#1150506 dcmtk: CVE-2026-44038

Package:
src:dcmtk
Source:
src:dcmtk
Submitter:
Salvatore Bonaccorso
Date:
2026-11-03 13:51:05 UTC
Severity:
normal
Tags:
#1150506#5
Date:
2026-10-10 09:13:01 UTC
From:
To:
Hi,

The following vulnerability was published for dcmtk.

CVE-2026-44038[0]:
| A global out-of-bounds read in the Huffman decoder of the bundled
| IJG JPEG libraries (dcmjpeg/libijg8, libijg12 and libijg16) of OFFIS
| DCMTK 3.7.0 allows an attacker to read memory beyond the
| extend_test[] and extend_offset[] tables, causing incorrectly
| decoded pixel data or a crash, via a DICOM file with a crafted JPEG
| stream whose Huffman table defines a difference category above 15.
| Huffman symbol values are not range-checked unless DCMTK is built
| with DCMTK_ENABLE_STRICT_HUFFMAN_TABLE_CHECK, which is disabled by
| default. dcmdjpeg and any application that decompresses JPEG DICOM
| images with DCMTK are affected. The issue is fixed in commit
| d6ae1bc8d5b9ae9c7300013c8c85cc2ea0fd8cf5.


If you fix the vulnerability please also make sure to include the
CVE (Common Vulnerabilities & Exposures) id in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-44038
https://www.cve.org/CVERecord?id=CVE-2026-44038
[1] https://support.dcmtk.org/redmine/issues/1221
[2] https://github.com/DCMTK/dcmtk/commit/d6ae1bc8d5b9ae9c7300013c8c85cc2ea0fd8cf5

Please adjust the affected versions in the BTS as needed.

Regards,
Salvatore

#1150506#12
Date:
2026-11-03 13:49:31 UTC
From:
To:
Hi,

All of the upstream fix commits from the security tracker for these five
bugs are in the DCMTK-3.7.1 tag. I applied each one, in order and without
the test-only files, to the sources of unstable 3.7.0+really3.7.0-7
(including the Debian patch series) and trixie 3.6.9-5+deb13u3, as
served by
https://www.google.com/url?q=http://sources.debian.org&source=gmail&ust=1793800171426000&sa=E
:

#1150501 CVE-2026-44033 d12e350e6875 "Fixed unbounded recursion in
XMLParser library."
sid: clean trixie: applies with offsets -1/-2

#1150502 CVE-2026-44034 45469f3c3003 "Fixed RLE decodeFrame() heap-OOB
read."
sid: clean trixie: applies with offset -15
(I checked: dcrleccd.cc in -7 does not already contain this change.)

#1150503 CVE-2026-44035 ca761f7f3dca "Fixed unbounded recursion in
DICOMDIR parser."
sid: clean trixie: clean

#1150506 CVE-2026-44038 d6ae1bc8d5b9 "Fix OOB read in IJG JPEG Huffman
DC decoding"
sid: clean trixie: clean

#1149131 CVE-2026-97059 18379d5b8d23 "Fixed heap over-read in
ConcatenationLoader." +
c33790827a19 "Validate buffer length in
extractBinaryFrames."
sid: clean + offsets -25/-510 trixie: both FAIL, needs a backport

For completeness, the fixes for the other open dcmtk CVE bugs are also
in 3.7.1, but they do not apply to 3.7.0 as they are: #1150500
(885ff0f10372), #1150504 (87f256d73e30) and #1150505 (cf955e64c35a; its
dcjsonrd.* files do not exist in 3.6.9 at all).

So for unstable, either 3.7.1 or cherry-picking the five commits above
looks straightforward. This is a mechanical patch-applies check only. I
have not built dcmtk or run its tests with these patches.

Regards