CVE-2026-135177: LibRaw through 0.22.3 Out-of-Bounds Read via pentax_4shot_load_raw
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
Event History
Frequently Asked Questions
Which applications are exposed to this issue?
Applications using LibRaw through 0.22.3 are exposed when they process attacker-supplied four-frame Pentax DNG files with LIBRAW_RAWOPTIONS_PENTAX_PS_ALLFRAMES enabled. The stated impact is a crash, resulting in denial of service.
What conditions are required to trigger the crash?
An attacker must provide a crafted four-frame Pentax DNG containing too few IFDs that match the raw dimensions. Exploitation also depends on the application enabling the LIBRAW_RAWOPTIONS_PENTAX_PS_ALLFRAMES raw-processing option.
Is the default LibRaw configuration known to be affected?
The available information identifies the issue only when LIBRAW_RAWOPTIONS_PENTAX_PS_ALLFRAMES is enabled. It does not state whether that option is enabled by default.
What can be done if updating is not immediately possible?
Avoid enabling LIBRAW_RAWOPTIONS_PENTAX_PS_ALLFRAMES when processing untrusted files. Restrict or reject untrusted four-frame Pentax DNG input to reduce exposure to the described crash condition.