Out-of-bounds read in LibRaw - CVE-2025-43963

 

Out-of-bounds read in LibRaw - CVE-2025-43963

Published: April 23, 2025


Vulnerability identifier: #VU107890
CSH Severity: Medium
CVSS v4: 4.6 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-43963
CWE-ID: CWE-125
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to gain access to potentially sensitive information.

The vulnerability exists due to a boundary condition within the phase_one_correct() function in decoders/load_mfbacks.cpp. A remote attacker can create a specially crafted file, trick the victim into opening it, trigger an out-of-bounds read error and read contents of memory on the system.


Affected software

LibRaw
SUSE Linux Enterprise Workstation Extension 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Real Time 15
Desktop Applications Module
SUSE Package Hub 15
openSUSE Leap
Ubuntu
openEuler
Anolis OS
Fedora
libraw15 (Ubuntu package)
libraw16 (Ubuntu package)
libraw-bin (Ubuntu package)
libraw16
libraw16-debuginfo
libraw-debugsource
libraw-debuginfo
libraw19 (Ubuntu package)
libraw20 (Ubuntu package)
libraw20-debuginfo
libraw20
libraw20-64bit
libraw20-64bit-debuginfo
libraw20-32bit
libraw-devel
libraw-tools-debuginfo
libraw20-32bit-debuginfo
libraw-tools
libraw-devel-static
LibRaw
LibRaw-devel
LibRaw-samples
LibRaw-debugsource
LibRaw-debuginfo
LibRaw-static
LibRaw-doc
libraw23
libraw23-debuginfo
libraw23-64bit
libraw23-32bit-debuginfo
libraw23-32bit
libraw23-64bit-debuginfo
libraw23t64 (Ubuntu package)
mingw-LibRaw
darktable
digikam

How to mitigate CVE-2025-43963

Install updates from vendor's website.

LibRaw - update to 0.21.4
libraw15 (Ubuntu package) - update to Ubuntu Pro
libraw16 (Ubuntu package) - update to Ubuntu Pro
libraw-bin (Ubuntu package) - addressed in versions Ubuntu Pro, 0.19.5-1ubuntu1.4, 0.20.2-2ubuntu2.22.04.2, 0.21.2-2.1ubuntu0.24.04.1, 0.21.2-2.1ubuntu0.24.10.1, 0.21.3-1ubuntu0.25.04.1
libraw16 - update to 0.18.9-150000.3.30.1
libraw16-debuginfo - update to 0.18.9-150000.3.30.1
libraw-debugsource - addressed in versions 0.18.9-150000.3.30.1, 0.20.2-150400.3.16.1, 0.21.1-150600.3.5.1
libraw-debuginfo - update to 0.18.9-150000.3.30.1
libraw19 (Ubuntu package) - update to 0.19.5-1ubuntu1.4
libraw20 (Ubuntu package) - update to 0.20.2-2ubuntu2.22.04.2
libraw20-debuginfo - update to 0.20.2-150400.3.16.1
libraw20 - update to 0.20.2-150400.3.16.1
libraw20-64bit - update to 0.20.2-150400.3.16.1
libraw20-64bit-debuginfo - update to 0.20.2-150400.3.16.1
libraw20-32bit - update to 0.20.2-150400.3.16.1
libraw-devel - addressed in versions 0.20.2-150400.3.16.1, 0.21.1-150600.3.5.1
libraw-tools-debuginfo - addressed in versions 0.20.2-150400.3.16.1, 0.21.1-150600.3.5.1
libraw20-32bit-debuginfo - update to 0.20.2-150400.3.16.1
libraw-tools - addressed in versions 0.20.2-150400.3.16.1, 0.21.1-150600.3.5.1
libraw-devel-static - addressed in versions 0.20.2-150400.3.16.1, 0.21.1-150600.3.5.1
LibRaw - update to 0.21.1-4
LibRaw-devel - update to 0.21.1-4
LibRaw-samples - update to 0.21.1-4
LibRaw-devel - update to 0.21.1-4
LibRaw-debugsource - update to 0.21.1-4
LibRaw-debuginfo - update to 0.21.1-4
LibRaw - update to 0.21.1-4
LibRaw-static - update to 0.21.1-4
LibRaw-doc - update to 0.21.1-4
libraw23 - update to 0.21.1-150600.3.5.1
libraw23-debuginfo - update to 0.21.1-150600.3.5.1
libraw23-64bit - update to 0.21.1-150600.3.5.1
libraw23-32bit-debuginfo - update to 0.21.1-150600.3.5.1
libraw23-32bit - update to 0.21.1-150600.3.5.1
libraw23-64bit-debuginfo - update to 0.21.1-150600.3.5.1
libraw23t64 (Ubuntu package) - addressed in versions 0.21.2-2.1ubuntu0.24.04.1, 0.21.2-2.1ubuntu0.24.10.1, 0.21.3-1ubuntu0.25.04.1
mingw-LibRaw - addressed in versions 0.21.4-1.fc40, 0.21.4-1.fc41, 0.21.4-1.fc42
darktable - addressed in versions 5.2.0-1.fc41, 5.2.0-1.fc42
digikam - addressed in versions 8.6.0-4.fc40, 8.6.0-4.fc41, 8.6.0-4.fc42

External References

Related Security Bulletins