Out-of-bounds read in patchelf - CVE-2022-44940

 

Out-of-bounds read in patchelf - CVE-2022-44940

Published: April 21, 2023


Vulnerability identifier: #VU75394
CSH Severity: Low
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-44940
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 modifyRPath() function in src/patchelf.cc. 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

patchelf
openEuler
Ubuntu
patchelf (Ubuntu package)
patchelf
patchelf-debuginfo
patchelf-debugsource

How to mitigate CVE-2022-44940

Install updates from vendor's website.

patchelf - update to 0.16.0
patchelf (Ubuntu package) - addressed in versions Ubuntu Pro, 0.14.3-1ubuntu0.1
patchelf - update to 0.16.0-1
patchelf-debuginfo - update to 0.16.0-1
patchelf-debugsource - update to 0.16.0-1

External References

Related Security Bulletins