Advisory
UBUNTU-CVE-2026-5318
Also known as: CVE-2026-5318
Summary
The record has no summary.
Details
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.
Severity
Medium Basis: CVSS v3 score 4.3, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
Dates
- Published
- 2026-04-02 03:16 UTC
- Modified
- 2026-10-17 13:00 UTC
Affected packages and fixes
| Package | System | Fix |
|---|---|---|
| darktable | Debian packages (deb) · Ubuntu 16.04 | No fixed version is listed. |
| dcraw | Debian packages (deb) · Ubuntu 16.04 | No fixed version is listed. |
| exactimage | Debian packages (deb) · Ubuntu 16.04 | No fixed version is listed. |
| kodi | Debian packages (deb) · Ubuntu 16.04 | No fixed version is listed. |
| rawtherapee | Debian packages (deb) · Ubuntu 16.04 | No fixed version is listed. |
| ufraw | Debian packages (deb) · Ubuntu 16.04 | No fixed version is listed. |
| darktable | Debian packages (deb) · Ubuntu 18.04 | No fixed version is listed. |
| dcraw | Debian packages (deb) · Ubuntu 18.04 | No fixed version is listed. |
| exactimage | Debian packages (deb) · Ubuntu 18.04 | No fixed version is listed. |
| kodi | Debian packages (deb) · Ubuntu 18.04 | No fixed version is listed. |
| rawtherapee | Debian packages (deb) · Ubuntu 18.04 | No fixed version is listed. |
| ufraw | Debian packages (deb) · Ubuntu 18.04 | No fixed version is listed. |
| darktable | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| dcraw | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| exactimage | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| kodi | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| rawtherapee | Debian packages (deb) · Ubuntu 20.04 | No fixed version is listed. |
| darktable | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| dcraw | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| exactimage | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| kodi | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| rawtherapee | Debian packages (deb) · Ubuntu 22.04 | No fixed version is listed. |
| darktable | Debian packages (deb) · Ubuntu 24.04 | No fixed version is listed. |
| dcraw | Debian packages (deb) · Ubuntu 24.04 | No fixed version is listed. |
| digikam | Debian packages (deb) · Ubuntu 24.04 | No fixed version is listed. |
| exactimage | Debian packages (deb) · Ubuntu 24.04 | No fixed version is listed. |
| kodi | Debian packages (deb) · Ubuntu 24.04 | No fixed version is listed. |
| rawtherapee | Debian packages (deb) · Ubuntu 24.04 | No fixed version is listed. |
| darktable | Debian packages (deb) · Ubuntu 25.10 | No fixed version is listed. |
| dcraw | Debian packages (deb) · Ubuntu 25.10 | No fixed version is listed. |
| digikam | Debian packages (deb) · Ubuntu 25.10 | No fixed version is listed. |
| exactimage | Debian packages (deb) · Ubuntu 25.10 | No fixed version is listed. |
| kodi | Debian packages (deb) · Ubuntu 25.10 | No fixed version is listed. |
| rawtherapee | Debian packages (deb) · Ubuntu 25.10 | No fixed version is listed. |
| darktable | Debian packages (deb) · Ubuntu 26.10 | No fixed version is listed. |
| dcraw | Debian packages (deb) · Ubuntu 26.10 | No fixed version is listed. |
| digikam | Debian packages (deb) · Ubuntu 26.10 | No fixed version is listed. |
| exactimage | Debian packages (deb) · Ubuntu 26.10 | No fixed version is listed. |
| kodi | Debian packages (deb) · Ubuntu 26.10 | No fixed version is listed. |
| rawtherapee | Debian packages (deb) · Ubuntu 26.10 | No fixed version is listed. |
| darktable | Debian packages (deb) · Ubuntu 26.04 | No fixed version is listed. |
| dcraw | Debian packages (deb) · Ubuntu 26.04 | No fixed version is listed. |
| digikam | Debian packages (deb) · Ubuntu 26.04 | No fixed version is listed. |
| exactimage | Debian packages (deb) · Ubuntu 26.04 | No fixed version is listed. |
| kodi | Debian packages (deb) · Ubuntu 26.04 | No fixed version is listed. |
| rawtherapee | Debian packages (deb) · Ubuntu 26.04 | No fixed version is listed. |
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Links
- https://ubuntu.com/security/CVE-2026-5318
- https://www.cve.org/CVERecord?id=CVE-2026-5318
- https://github.com/LibRaw/LibRaw/issues/794
- https://github.com/LibRaw/LibRaw/
- https://github.com/LibRaw/LibRaw/commit/a6734e867b19d75367c05f872ac26322464e3995
- https://github.com/LibRaw/LibRaw/issues/794#issuecomment-4065342499
- https://github.com/biniamf/pocs/tree/main/libraw_lljpeg
- https://vuldb.com/submit/780538
- https://vuldb.com/vuln/354650
- https://vuldb.com/vuln/354650/cti
Source
Source: Ubuntu Security Notices · CC BY-SA 4.0