Out-of-bounds read in patchelf - CVE-2022-44940
Published: April 21, 2023
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
openEuler
Ubuntu
patchelf (Ubuntu package)
patchelf
patchelf-debuginfo
patchelf-debugsource
How to mitigate CVE-2022-44940
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