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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libraw | 0.22.1-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
- VDB-354650 | LibRaw JPEG DHT losslessjpeg.cpp initval out-of-bounds write vdb-entry technical-description
- VDB-354650 | CTI Indicators (IOB, IOC, IOA) signature permissions-required
- Submit #780538 | LibRaw 0.22.0 Out-of-bounds Write third-party-advisory
- https://github.com/LibRaw/LibRaw/issues/794 issue-tracking
- https://github.com/LibRaw/LibRaw/issues/794#issuecomment-4065342499 issue-tracking
- https://github.com/biniamf/pocs/tree/main/libraw_lljpeg exploit
- https://github.com/LibRaw/LibRaw/commit/a6734e867b19d75367c05f872ac26322464e3995 patch
- https://github.com/LibRaw/LibRaw/releases/tag/0.22.1 patch
- https://github.com/LibRaw/LibRaw/ product