CVE-2022-44940 Patchelf out-of-bounds read

Critical 9.1 Published Updated

An out-of-bounds read in Patchelf allows attackers to cause denial of service or disclose sensitive memory contents via crafted binaries.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-44940?

CVE-2022-44940 is a critical memory corruption vulnerability in n/a, published on 19 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Patchelf v0.9 was discovered to contain an out-of-bounds read via the function modifyRPath at src/patchelf.cc.

Weakness: CWE-125

Which versions are affected by CVE-2022-44940?

4 open source packages ship an affected version, including patchelf and pypatchelf. It affects 1 product.

PackageAffectedFixed in
patchelf PyPIAll versions0.16.1.0
patchelf PyPIAll versions0.16.1.0
patchelf PyPIAll versions0.16.1.0
pypatchelf PyPIAll versionsNone

Products include Patchelf Project Patchelf.

How do I fix CVE-2022-44940?

Upgrade patchelf to 0.16.1.0 or later.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2022-44940 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-44940 exists.

Sources

Also known as DEBIAN-CVE-2022-44940, ECHO-cf23-5ff7-f083, GHSA-5pcj-3m26-w633, MGASA-2023-0179, OESA-2023-1001, PYSEC-2022-43144 and 3 more.

Is CVE-2022-44940 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free