dcmtk: DCMTK through 3.6.6 does not handle memory free properly
CVE-2021-41687 is fixed in 4 products on 1 platform, first by dcmtk 3.6.2-3ubuntu0.1~esm3, released June 28, 2022. It is not reported as exploited. Patch Radar priority: High.
DCMTK through 3.6.6 does not handle memory free properly. The program malloc a heap memory for parsing data, but does not free it when error in parsing. Sending specific requests to the dcmqrdb program incur the memory leak. An attacker can use it to launch a DoS attack.
Where it's fixed
| Product | Fixed in | Fix | Released |
|---|---|---|---|
| Linux | |||
| dcmtk · Debian 11.6 (bullseye) | 3.6.5-1+deb11u1 | DLA-4038-1 | Jan 31, 2025 |
| dcmtk · Debian 12.15 (bookworm) | 3.6.7-1 | DEBIAN-CVE-2021-41687 | Jun 28, 2022 |
| dcmtk · Debian 13.5 (trixie) | 3.6.7-1 | DEBIAN-CVE-2021-41687 | Jun 28, 2022 |
| dcmtk · Debian 14 | 3.6.7-1 | DEBIAN-CVE-2021-41687 | Jun 28, 2022 |
| dcmtk · Ubuntu 18.04.6 LTS (bionic) | 3.6.2-3ubuntu0.1~esm3 | dcmtk 3.6.2-3ubuntu0.1~esm3 | Jun 28, 2022 |
| dcmtk · Ubuntu 20.04 LTS (focal) | 3.6.4-2.1ubuntu0.1~esm1 | dcmtk 3.6.4-2.1ubuntu0.1~esm1 | Dec 2, 2022 |
| dcmtk · Ubuntu 22.04.1 LTS (jammy) | 3.6.6-5ubuntu0.1~esm1 | dcmtk 3.6.6-5ubuntu0.1~esm1 | Dec 2, 2022 |
| libdcmtk12 · Ubuntu 18.04.6 LTS (bionic) | 3.6.2-3ubuntu0.1~esm3 | libdcmtk12 3.6.2-3ubuntu0.1~esm3 | Jun 28, 2022 |
| libdcmtk14 · Ubuntu 20.04 LTS (focal) | 3.6.4-2.1ubuntu0.1~esm1 | libdcmtk14 3.6.4-2.1ubuntu0.1~esm1 | Dec 2, 2022 |
| libdcmtk16 · Ubuntu 22.04.1 LTS (jammy) | 3.6.6-5ubuntu0.1~esm1 | libdcmtk16 3.6.6-5ubuntu0.1~esm1 | Dec 2, 2022 |
Patch Radar data is free to use with attribution. Terms and how to credit it.
Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.