Description
A flaw has been found in LibRaw up to 0.22.0. This affects the function LibRaw::nikon_load_padded_packed_raw of the file src/decoders/decoders_libraw.cpp of the component TIFF/NEF. Executing a manipulation of the argument load_flags/raw_width can lead to out-of-bounds read. It is possible to launch the attack remotely. The exploit has been published and may be used. Upgrading to version 0.22.1 mitigates this issue. This patch is called b8397cd45657b84e88bd1202528d1764265f185c. It is advisable to upgrade the affected component.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | LibRaw | 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 0.10, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 0.18, 0.19, 0.20, 0.21, 0.22.0 | 0.22.1 |
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 | 0.22.1-1 | — |
| Debian 13 | libraw | 0.21.4-2+deb13u1 | — |
| Debian 12 | libraw | 0.20.2-2.1+deb12u2 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | kodi +5 | No fix yet | — |
| Ubuntu 26.04 LTS | kodi +5 | No fix yet | — |
| Ubuntu 26.04 LTS | libraw | 0.21.5b-1ubuntu1.1 | USN-8522-1 |
| Ubuntu 25.10 | kodi +6 | No fix yet | — |
| Ubuntu 24.04 LTS | kodi +5 | No fix yet | — |
| Ubuntu 24.04 LTS | libraw | 0.21.2-2.1ubuntu0.24.04.2 | USN-8522-1 |
| Ubuntu 22.04 LTS | kodi +4 | No fix yet | — |
| Ubuntu 22.04 LTS | libraw | 0.20.2-2ubuntu2.22.04.3 | USN-8522-1 |
Show 7 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | kodi +4 | No fix yet | — |
| 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 | digikam | No fix yet | — |
| Ubuntu Pro 16.04 LTS | digikam | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | libraw | 0.21.1-150600.3.10.1 | SUSE-SU-2026:1555-1 |
| SLES 15 SP6 | libraw | 0.21.1-150600.3.10.1 | SUSE-SU-2026:1555-1 |
| SLES 15 SP5 | libraw | 0.20.2-150400.3.21.1 | SUSE-SU-2026:1556-1 |
| SLES 15 SP4 | libraw | 0.20.2-150400.3.21.1 | SUSE-SU-2026:1556-1 |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP6 | libraw | 0.21.1-150600.3.10.1 | SUSE-SU-2026:1555-1 |
| SLES for SAP 15 SP5 | libraw | 0.20.2-150400.3.21.1 | SUSE-SU-2026:1556-1 |
| SLES for SAP 15 SP4 | libraw | 0.20.2-150400.3.21.1 | SUSE-SU-2026:1556-1 |
| SLE HPC 15 SP5 | libraw | 0.20.2-150400.3.21.1 | SUSE-SU-2026:1556-1 |
| SLE HPC 15 SP4 | libraw | 0.20.2-150400.3.21.1 | SUSE-SU-2026:1556-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | libraw | 0.22.1-1.1 | openSUSE-SU-2026:10565-1 |
| openSUSE Leap 16.0 | libraw | 0.21.4-160000.3.1 | openSUSE-SU-2026:20574-1 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | LibRaw | No fix yet | — |
Advisories 5
- USN-8522-1 libraw vulnerabilities Ubuntu Security Notices (USN) · Jul 9, 2026
- SUSE-SU-2026:1555-1 Security update for libraw SUSE / openSUSE Security Updates · Apr 24, 2026
- SUSE-SU-2026:1556-1 Security update for libraw SUSE / openSUSE Security Updates · Apr 24, 2026
- openSUSE-SU-2026:20574-1 Security update for libraw SUSE / openSUSE Security Updates · Apr 22, 2026
- openSUSE-SU-2026:10565-1 libraw-devel-0.22.1-1.1 on GA media SUSE / openSUSE Security Updates · Apr 17, 2026
References
- VDB-354671 | LibRaw TIFF/NEF decoders_libraw.cpp nikon_load_padded_packed_raw out-of-bounds vdb-entry technical-description
- VDB-354671 | CTI Indicators (IOB, IOC, IOA) signature permissions-required
- Submit #781223 | LibRaw 0.22.0 Out-of-Bounds Read third-party-advisory
- https://github.com/LibRaw/LibRaw/issues/795 issue-tracking
- https://github.com/LibRaw/LibRaw/issues/795#issuecomment-4073769886 issue-tracking
- https://github.com/biniamf/pocs/tree/main/libraw_nikonpadded exploit
- https://github.com/LibRaw/LibRaw/commit/b8397cd45657b84e88bd1202528d1764265f185c patch
- https://github.com/LibRaw/LibRaw/releases/tag/0.22.1 patch
- https://github.com/LibRaw/LibRaw/ product