Description
Integer overflow in the ImageRegionReader::ReadIntoBuffer function in MediaStorageAndFileFormat/gdcmImageRegionReader.cxx in Grassroots DICOM (aka GDCM) before 2.6.2 allows attackers to execute arbitrary code via crafted header dimensions in a DICOM image file, which triggers a buffer overflow.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | gdcm | 2.6.2-1 | — |
| Debian 13 | gdcm | 2.6.2-1 | — |
| Debian 12 | gdcm | 2.6.2-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 14.04 LTS | gdcm | 2.2.4-1.1ubuntu4+esm1 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- Grassroots DICOM (GDCM) 2.6.0 and 2.6.1 - ImageRegionReader::ReadIntoBuffer Buffer Overflow EDB-39229 · dos · Jan 12, 2016
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- 20160111 CVE-2015-8396: GDCM buffer overflow in ImageRegionReader::ReadIntoBuffer mailing-list
- [gdcm-developers] 20151204 [Gdcm2] GDCM <2.6.1 two vulnerabilites mailing-list
- 39229 exploit
- http://sourceforge.net/p/gdcm/gdcm/ci/e547b1ded3fd21e0b0ad149f13045aa12d4b9b7c/
- [gdcm-developers] 20151221 Re: [Gdcm2] GDCM <2.6.1 two vulnerabilites mailing-list
- http://census-labs.com/news/2016/01/11/gdcm-buffer-overflow-imageregionreaderreadintobuffer/
- 20160111 CVE-2015-8396: GDCM buffer overflow in ImageRegionReader::ReadIntoBuffer mailing-list
- http://packetstormsecurity.com/files/135205/GDCM-2.6.0-2.6.1-Integer-Overflow.html