CVE-2025-43962
LibRaw: Out-of-Bounds Read in LibRaw's phase_one_correct Function
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, Julia. Rated lower by Amazon (medium), Ubuntu (medium), Red Hat (low).
Description
In LibRaw before 0.21.4, phase_one_correct in decoders/load_mfbacks.cpp has out-of-bounds reads for tag 0x412 processing, related to large w0 or w1 values or the frac and mult calculations.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| julia::Julia Ecosystem Security Advisories | LibRaw_jll | 0.22.1+0 |
| amazon linux 2 | LibRaw, LibRaw-debuginfo, LibRaw-devel and 1 more | 0.19.4-1.amzn2.0.5 |
| debian 11 | libraw | 0.20.2-1+deb11u2 |
| debian 12 | libraw | 0.20.2-2.1+deb12u1 |
| debian 13 | libraw | 0.21.4-1 |
| debian 14 | libraw | 0.21.4-1 |
| echo | libraw | 0.20.2-2.1+deb12u1 |
| rapidfort alma 8 | LibRaw | no fix listed |
| rapidfort alma 9 | LibRaw | no fix listed |
| rapidfort alpine 3.20 | libraw | 0.21.4-r0 |
| rapidfort alpine 3.21 | libraw | 0.21.4-r0 |
| rapidfort alpine 3.22 | libraw | 0.21.4-r0 |
Show all 38 entries from 29 sources
| Source | Package | Fixed in |
|---|---|---|
| julia::Julia Ecosystem Security Advisories | LibRaw_jll | 0.22.1+0 |
| amazon linux 2 | LibRaw | 0.19.4-1.amzn2.0.5 |
| amazon linux 2 | LibRaw-debuginfo | 0.19.4-1.amzn2.0.5 |
| amazon linux 2 | LibRaw-devel | 0.19.4-1.amzn2.0.5 |
| amazon linux 2 | LibRaw-static | 0.19.4-1.amzn2.0.5 |
| debian 11 | libraw | 0.20.2-1+deb11u2 |
| debian 12 | libraw | 0.20.2-2.1+deb12u1 |
| debian 13 | libraw | 0.21.4-1 |
| debian 14 | libraw | 0.21.4-1 |
| echo | libraw | 0.20.2-2.1+deb12u1 |
| rapidfort alma 8 | LibRaw | no fix listed |
| rapidfort alma 9 | LibRaw | no fix listed |
| rapidfort alpine 3.20 | libraw | 0.21.4-r0 |
| rapidfort alpine 3.21 | libraw | 0.21.4-r0 |
| rapidfort alpine 3.22 | libraw | 0.21.4-r0 |
| rapidfort alpine 3.23 | libraw | 0.21.4-r0 |
| rapidfort alpine 3.24 | libraw | 0.21.4-r0 |
| rapidfort debian 12 | libraw | 0:0.21.4-1 |
| rapidfort debian 12 | rf-libraw | 0:0.21.4-2 |
| rapidfort debian 13 | libraw | 0:0.21.4-1 |
| rapidfort debian 13 | rf-libraw | 0:0.21.4-2 |
| rapidfort Oracle Linux 9 | LibRaw | no fix listed |
| rapidfort rocky 8 | LibRaw | no fix listed |
| rapidfort rocky 9 | LibRaw | no fix listed |
| Red Hat | LibRaw | no fix listed |
| Red Hat | LibRaw-devel | no fix listed |
| Red Hat | LibRaw-static | no fix listed |
| Red Hat | libraw1394 | no fix listed |
| Red Hat | libraw1394-devel | no fix listed |
| root.io debian 13 | rootio-libraw | 0.21.4-1 |
| ubuntu 16.04-ESM | libraw | 0.17.1-1ubuntu0.5+esm1 |
| ubuntu 18.04-ESM | libraw | 0.18.8-1ubuntu0.4+esm1 |
| ubuntu 20.04 | libraw | 0.19.5-1ubuntu1.4 |
| ubuntu 20.04-ESM | libraw | 0.19.5-1ubuntu1.4 |
| ubuntu 22.04 | libraw | 0.20.2-2ubuntu2.22.04.2 |
| ubuntu 24.04 | libraw | 0.21.2-2.1ubuntu0.24.04.1 |
| ubuntu 24.10 | libraw | 0.21.2-2.1ubuntu0.24.10.1 |
| ubuntu 25.04 | libraw | 0.21.3-1ubuntu0.25.04.1 |
References
- https://access.redhat.com/security/cve/CVE-2025-43962
- https://github.com/LibRaw/LibRaw/commit/66fe663e02a4dd610b4e832f5d9af326709336c2
- https://github.com/LibRaw/LibRaw/compare/0.21.3...0.21.4
- https://github.com/advisories/GHSA-gr77-83rx-v97c
- https://lists.debian.org/debian-lts-announce/2025/04/msg00038.html
- https://nvd.nist.gov/vuln/detail/CVE-2025-43962
- https://ubuntu.com/security/notices/USN-7485-1
- https://www.cve.org/CVERecord?id=CVE-2025-43962