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.
Problem types
Timeline
| 2026-04-01: | Advisory disclosed |
| 2026-04-01: | VulDB entry created |
| 2026-04-07: | VulDB entry last update |
Credits
biniam (VulDB User)
References
vuldb.com/vuln/354671 (VDB-354671 | LibRaw TIFF/NEF decoders_libraw.cpp nikon_load_padded_packed_raw out-of-bounds)
vuldb.com/vuln/354671/cti (VDB-354671 | CTI Indicators (IOB, IOC, IOA))
vuldb.com/submit/781223 (Submit #781223 | LibRaw 0.22.0 Out-of-Bounds Read)
github.com/LibRaw/LibRaw/issues/795
github.com/LibRaw/LibRaw/issues/795
github.com/biniamf/pocs/tree/main/libraw_nikonpadded
github.com/...ommit/b8397cd45657b84e88bd1202528d1764265f185c
github.com/LibRaw/LibRaw/releases/tag/0.22.1
github.com/LibRaw/LibRaw/