# CVE-2026-5342: libraw: A flaw has been found in LibRaw up to 0.22.0

CVE-2026-5342 is fixed in 11 products on 1 platform, first by DEBIAN-CVE-2026-5342, released April 2, 2026. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2026-5342
- Priority: Routine
- CVSS: n/a (Medium)
- EPSS: 0.0076
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Apr 2, 2026

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | darktable Fedora 43 | 5.6.1-2.fc43 | [FEDORA-2026-0B55B49B93](https://patchblox.com/security/data/fix/linux/fedora-2026-0b55b49b93.md) | Sep 1, 2026 |
| Linux | darktable-debuginfo Fedora 43 | 5.6.1-2.fc43 | [FEDORA-2026-0B55B49B93](https://patchblox.com/security/data/fix/linux/fedora-2026-0b55b49b93.md) | Sep 1, 2026 |
| Linux | darktable-debugsource Fedora 43 | 5.6.1-2.fc43 | [FEDORA-2026-0B55B49B93](https://patchblox.com/security/data/fix/linux/fedora-2026-0b55b49b93.md) | Sep 1, 2026 |
| Linux | darktable-tools-basecurve Fedora 43 | 5.6.1-2.fc43 | [FEDORA-2026-0B55B49B93](https://patchblox.com/security/data/fix/linux/fedora-2026-0b55b49b93.md) | Sep 1, 2026 |
| Linux | darktable-tools-basecurve-debuginfo Fedora 43 | 5.6.1-2.fc43 | [FEDORA-2026-0B55B49B93](https://patchblox.com/security/data/fix/linux/fedora-2026-0b55b49b93.md) | Sep 1, 2026 |
| Linux | darktable-tools-noise Fedora 43 | 5.6.1-2.fc43 | [FEDORA-2026-0B55B49B93](https://patchblox.com/security/data/fix/linux/fedora-2026-0b55b49b93.md) | Sep 1, 2026 |
| Linux | darktable-tools-noise-debuginfo Fedora 43 | 5.6.1-2.fc43 | [FEDORA-2026-0B55B49B93](https://patchblox.com/security/data/fix/linux/fedora-2026-0b55b49b93.md) | Sep 1, 2026 |
| Linux | libraw Debian 12.15 (bookworm) | 0.20.2-2.1+deb12u2 | [DEBIAN-CVE-2026-5342](https://patchblox.com/security/data/fix/linux/debian-cve-2026-5342.md) | Apr 2, 2026 |
| Linux | libraw Debian 13.5 (trixie) | 0.21.4-2+deb13u1 | [DEBIAN-CVE-2026-5342](https://patchblox.com/security/data/fix/linux/debian-cve-2026-5342.md) | Apr 2, 2026 |
| Linux | libraw Debian 14 | 0.22.1-1 | [DEBIAN-CVE-2026-5342](https://patchblox.com/security/data/fix/linux/debian-cve-2026-5342.md) | Apr 2, 2026 |
| Linux | libraw opensuse-leap 16.0 | 0.21.4-160000.3.1 | [OPENSUSE-SU-2026:20574-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-20574-1.md) | Apr 20, 2026 |
| Linux | libraw sles 15.6 | 0.21.1-150600.3.10.1 | [SUSE-SU-2026:1555-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-1555-1.md) | Apr 22, 2026 |
| Linux | libraw sles 15.7 | 0.21.1-150600.3.10.1 | [SUSE-SU-2026:1555-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-1555-1.md) | Apr 22, 2026 |
| Linux | libraw-bin Ubuntu 22.04.1 LTS (jammy) | 0.20.2-2ubuntu2.22.04.3 | [libraw-bin 0.20.2-2ubuntu2.22.04.3](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libraw-bin-0.20.2-2ubuntu2.22.04.3.md) | Apr 7, 2026 |
| Linux | libraw-bin Ubuntu 24.04.5 LTS (noble) | 0.21.2-2.1ubuntu0.24.04.2 | [libraw-bin 0.21.2-2.1ubuntu0.24.04.2](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libraw-bin-0.21.2-2.1ubuntu0.24.04.2.md) | Apr 7, 2026 |
| Linux | libraw-bin Ubuntu 26.04.1 LTS (resolute) | 0.21.5b-1ubuntu1.1 | [libraw-bin 0.21.5b-1ubuntu1.1](https://patchblox.com/security/data/fix/linux/ubuntu-resolute-libraw-bin-0.21.5b-1ubuntu1.1.md) | Apr 7, 2026 |
| Linux | libraw20 Ubuntu 22.04.1 LTS (jammy) | 0.20.2-2ubuntu2.22.04.3 | [libraw20 0.20.2-2ubuntu2.22.04.3](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libraw20-0.20.2-2ubuntu2.22.04.3.md) | Apr 7, 2026 |
| Linux | libraw23t64 Ubuntu 24.04.5 LTS (noble) | 0.21.2-2.1ubuntu0.24.04.2 | [libraw23t64 0.21.2-2.1ubuntu0.24.04.2](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libraw23t64-0.21.2-2.1ubuntu0.24.04.2.md) | Apr 7, 2026 |
| Linux | libraw23t64 Ubuntu 26.04.1 LTS (resolute) | 0.21.5b-1ubuntu1.1 | [libraw23t64 0.21.5b-1ubuntu1.1](https://patchblox.com/security/data/fix/linux/ubuntu-resolute-libraw23t64-0.21.5b-1ubuntu1.1.md) | Apr 7, 2026 |

---

Data as of 2026-11-08T00:53:09Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

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.
