Skip to content
OpenAdvisories
Medium · 5.3 CVE-2026-5342 EUVD-2026-18344GHSA-jp35-q64r-j6gf

LibRaw TIFF/NEF decoders_libraw.cpp nikon_load_padded_packed_raw out-of-bounds

Published Apr 2, 2026 · Updated Apr 7, 2026 · Assigned by VulDB

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

VendorProductAffectedFixed
— 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.

ReleasePackageFixed inAdvisory
Debian 14 libraw 0.22.1-1 —
Debian 13 libraw 0.21.4-2+deb13u1 —
Debian 12 libraw 0.20.2-2.1+deb12u2 —
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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 —
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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

ReleasePackageFixed inAdvisory
Azure Linux 3 LibRaw No fix yet —

Advisories 5

References