A flaw was found in the file-psd plugin in GIMP. When processing a specially crafted PSD (Photoshop Document) image file in LAB color mode, the plugin does not properly validate that a fourth channel is present when the transparency flag is set. This mismatch causes the merged-image path to allocate buffers for three components while performing color conversion with four-component formats, resulting in a heap-based buffer overflow. This issue can result in an application crash, leading to a denial of service, or potentially allow for arbitrary code execution.
{
"binaries": [
{
"binary_name": "gimp",
"binary_version": "3.2.2-1ubuntu0.26.04.1"
},
{
"binary_name": "gimp-data",
"binary_version": "3.2.2-1ubuntu0.26.04.1"
},
{
"binary_name": "gir1.2-gimp-3.0",
"binary_version": "3.2.2-1ubuntu0.26.04.1"
},
{
"binary_name": "libgimp-3.0-0",
"binary_version": "3.2.2-1ubuntu0.26.04.1"
},
{
"binary_name": "libgimp-3.0-bin",
"binary_version": "3.2.2-1ubuntu0.26.04.1"
}
]
}{
"binaries": [
{
"binary_name": "gimp",
"binary_version": "3.2.6-1"
},
{
"binary_name": "gimp-data",
"binary_version": "3.2.6-1"
},
{
"binary_name": "gir1.2-gimp-3.0",
"binary_version": "3.2.6-1"
},
{
"binary_name": "libgimp-3.0-0",
"binary_version": "3.2.6-1"
},
{
"binary_name": "libgimp-3.0-bin",
"binary_version": "3.2.6-1"
}
]
}