In FreeImage 3.18.0, an out-of-bounds access occurs because of mishandling of the OpenJPEG j2kreadppmv3 function in j2k.c. The value of lNppm comes from the file read in, and the code does not consider that lNppm may be greater than the size of pheader_data.
{
"binaries": [
{
"binary_version": "3.18.0+ds2-1ubuntu3.1",
"binary_name": "libfreeimage-dev"
},
{
"binary_version": "3.18.0+ds2-1ubuntu3.1",
"binary_name": "libfreeimage3"
},
{
"binary_version": "3.18.0+ds2-1ubuntu3.1",
"binary_name": "libfreeimageplus-dev"
},
{
"binary_version": "3.18.0+ds2-1ubuntu3.1",
"binary_name": "libfreeimageplus3"
}
]
}{
"binaries": [
{
"binary_version": "3.18.0+ds2-6ubuntu5.1",
"binary_name": "libfreeimage-dev"
},
{
"binary_version": "3.18.0+ds2-6ubuntu5.1",
"binary_name": "libfreeimage3"
},
{
"binary_version": "3.18.0+ds2-6ubuntu5.1",
"binary_name": "libfreeimageplus-dev"
},
{
"binary_version": "3.18.0+ds2-6ubuntu5.1",
"binary_name": "libfreeimageplus3"
}
]
}{
"binaries": [
{
"binary_version": "3.18.0+ds2-10build4",
"binary_name": "libfreeimage-dev"
},
{
"binary_version": "3.18.0+ds2-10build4",
"binary_name": "libfreeimage3"
},
{
"binary_version": "3.18.0+ds2-10build4",
"binary_name": "libfreeimageplus-dev"
},
{
"binary_version": "3.18.0+ds2-10build4",
"binary_name": "libfreeimageplus3"
}
]
}{
"binaries": [
{
"binary_version": "3.18.0+ds2-11",
"binary_name": "libfreeimage-dev"
},
{
"binary_version": "3.18.0+ds2-11",
"binary_name": "libfreeimage3"
},
{
"binary_version": "3.18.0+ds2-11",
"binary_name": "libfreeimageplus-dev"
},
{
"binary_version": "3.18.0+ds2-11",
"binary_name": "libfreeimageplus3"
}
]
}{
"binaries": [
{
"binary_version": "3.18.0+ds2-11",
"binary_name": "libfreeimage-dev"
},
{
"binary_version": "3.18.0+ds2-11",
"binary_name": "libfreeimage3"
},
{
"binary_version": "3.18.0+ds2-11",
"binary_name": "libfreeimageplus-dev"
},
{
"binary_version": "3.18.0+ds2-11",
"binary_name": "libfreeimageplus3"
}
]
}{
"binaries": [
{
"binary_version": "3.17.0+ds1-2ubuntu0.1+esm1",
"binary_name": "libfreeimage-dev"
},
{
"binary_version": "3.17.0+ds1-2ubuntu0.1+esm1",
"binary_name": "libfreeimage3"
},
{
"binary_version": "3.17.0+ds1-2ubuntu0.1+esm1",
"binary_name": "libfreeimageplus-dev"
},
{
"binary_version": "3.17.0+ds1-2ubuntu0.1+esm1",
"binary_name": "libfreeimageplus3"
}
]
}{
"binaries": [
{
"binary_version": "3.17.0+ds1-5+deb9u1ubuntu0.1~esm1",
"binary_name": "libfreeimage-dev"
},
{
"binary_version": "3.17.0+ds1-5+deb9u1ubuntu0.1~esm1",
"binary_name": "libfreeimage3"
},
{
"binary_version": "3.17.0+ds1-5+deb9u1ubuntu0.1~esm1",
"binary_name": "libfreeimageplus-dev"
},
{
"binary_version": "3.17.0+ds1-5+deb9u1ubuntu0.1~esm1",
"binary_name": "libfreeimageplus3"
}
]
}