Fixed issue rendering invalid monochrome image.
authorJoerg Riesmeier <dicom@jriesmeier.com>
Fri, 21 Mar 2025 11:45:44 +0000 (12:45 +0100)
committerdgit client-side .dsc importer <dgit@packages.debian.invalid>
Fri, 21 Mar 2025 11:45:44 +0000 (12:45 +0100)
commite5d4ee5069d5afdbe743279974e77cbf99fe3ef3
treec31d55b64da04e04d1de1c026425ec688e481d9d
parent2bb5de1d8b4ab03431fd7528ebe22db36fd96632
Fixed issue rendering invalid monochrome image.

Forwarded: https://git.dcmtk.org/?p=dcmtk.git;a=commit;h=89a6e399f1e17d08a8bc8cdaa05b2ac9a50cd4f6
Bug-Debian: https://bugs.debian.org/1093043
Reviewed-By: Étienne Mollier <emollier@debian.org>
Last-Update: 2025-01-18

Fixed issue when rendering an invalid monochrome DICOM image where the
number of pixels stored does not match the expected number of pixels.
If the stored number is less than the expected number, the rest of the
pixel matrix for the intermediate representation was always filled with
the value 0. Under certain, very rare conditions, this could result in
memory problems reported by an Address Sanitizer (ASAN). Now, the rest
of the matrix is filled with the smallest possible value for the image.

Thanks to Emmanuel Tacheau from the Cisco Talos team
<vulndiscovery@external.cisco.com> for the original report, the sample
file (PoC) and further details. See TALOS-2024-2122 and CVE-2024-47796.

Gbp-Pq: Name 0007-CVE-2024-47796.patch
dcmimgle/include/dcmtk/dcmimgle/dimoipxt.h