Runtime this information is stored in the active_color_attribute and default_color_attribute strings on the mesh, however when saving it is still saved in the old format with flags on the CustomData layers. When converting from the strings to the layers not all flags were properly cleared from the CustomData layers, leading to multiple layers having the CD_FLAG_COLOR_ACTIVE/RENDER flag.