Description
LibRaw through 0.22.2 contains a heap-based out-of-bounds read in LibRaw::parseNikonMakernote() that allows attackers to read past a short ShotInfo buffer. Attackers can supply a crafted Nikon NEF/TIFF with a 5-byte ShotInfo tag declaring version 243 to crash applications decoding the image.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| LibRaw | LibRaw | ≤ 0.22.2 | — |
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 | libraw | No fix yet | — |
| Debian 13 | libraw | No fix yet | — |
| Debian 12 | libraw | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | kodi +6 | No fix yet | — |
| Ubuntu 26.04 LTS | kodi +6 | No fix yet | — |
| Ubuntu 24.04 LTS | kodi +6 | No fix yet | — |
| Ubuntu 22.04 LTS | kodi +5 | No fix yet | — |
| Ubuntu 20.04 LTS | kodi +5 | No fix yet | — |
Show 6 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | kodi +5 | No fix yet | — |
| Ubuntu 16.04 LTS | kodi +5 | No fix yet | — |
| Ubuntu Pro 22.04 LTS | digikam | No fix yet | — |
| Ubuntu Pro 20.04 LTS | digikam | No fix yet | — |
| Ubuntu Pro 18.04 LTS | libraw +1 | No fix yet | — |
| Ubuntu Pro 16.04 LTS | libraw +1 | No fix yet | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | LibRaw | No fix yet | — |
References
- https://hackmd.io/@haind-pwn/libraw-nikon-shotinfo-orientationoffset-oob-read technical-description
- https://github.com/LibRaw/LibRaw/blob/b93f6e45c194f5df9b02a43b1af9a54b4f41f33f/src/metadata/nikon.cpp#L873-L967 technical-description
- https://github.com/LibRaw/LibRaw product
- VulnCheck Advisory: LibRaw through 0.22.2 Heap Out-of-Bounds Read via parseNikonMakernote ShotInfo third-party-advisory