AZL-115978: CVE-2026-135177 affecting package LibRaw 0.21.3-1
LibRaw through 0.22.3 contains an out-of-bounds read vulnerability in LibRaw::pentax4shotloadraw() that allows attackers to crash applications by scanning tiffifd[] beyond its 10 entries. Attackers can supply a crafted four-frame Pentax DNG with too few IFDs matching the raw dimensions to cause denial of service when LIBRAWRAWOPTIONSPENTAXPSALLFRAMES is enabled.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Disable LIBRAW_RAWOPTIONS_PENTAX_PS_ALLFRAMES to avoid the vulnerable four-frame Pentax DNG processing path.
LibRaw LIBRAW_RAWOPTIONS_PENTAX_PS_ALLFRAMES = disabled
Event History
Frequently Asked Questions
When is an application exposed to this denial-of-service issue?
An application is exposed when it processes attacker-supplied four-frame Pentax DNG files and has LIBRAW_RAWOPTIONS_PENTAX_PS_ALLFRAMES enabled. The crafted file must have too few IFDs matching the raw dimensions.
What can an attacker achieve?
An attacker can crash the application by causing LibRaw::pentax_4shot_load_raw() to scan beyond the 10 entries in tiff_ifd[]. The provided information describes denial of service, not code execution or data disclosure.
Are applications using LibRaw affected by default?
The issue is described as requiring LIBRAW_RAWOPTIONS_PENTAX_PS_ALLFRAMES to be enabled. The provided data does not state whether that option is enabled by default.