Skip to content
OpenAdvisories
Medium · 4.3 CVE-2026-5318 EUVD-2026-18116GHSA-8qw7-rqx6-9gqj

LibRaw JPEG DHT losslessjpeg.cpp initval out-of-bounds write

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

Description

A weakness has been identified in LibRaw up to 0.22.0. This impacts the function HuffTable::initval of the file src/decompressors/losslessjpeg.cpp of the component JPEG DHT Parser. This manipulation of the argument bits[] causes out-of-bounds write. It is possible to initiate the attack remotely. The exploit has been made available to the public and could be used for attacks. Upgrading to version 0.22.1 will fix this issue. Patch name: a6734e867b19d75367c05f872ac26322464e3995. 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 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 kodi +5 No fix yet —
Ubuntu 26.04 LTS kodi +5 No fix yet —
Ubuntu 25.10 kodi +5 No fix yet —
Ubuntu 24.04 LTS kodi +5 No fix yet —
Ubuntu 22.04 LTS kodi +4 No fix yet —
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 —

References