CVE-2021-35939 Privilege escalation in RPM

Medium 6.7 Published Updated

A local unprivileged user can gain root privileges due to an incomplete directory permission check in RPM.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2021-35939?

CVE-2021-35939 is a medium-severity vulnerability in Redhat Enterprise Linux, published on 26 Aug 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

It was found that the fix for CVE-2017-7500 and CVE-2017-7501 was incomplete: the check was only implemented for the parent directory of the file to be created. A local unprivileged user who owns another ancestor directory could potentially use this flaw to gain root privileges. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.

Weakness: CWE-59

Which versions are affected by CVE-2021-35939?

It affects 2 products.

Products include Redhat Enterprise Linux, Rpm Rpm.

How do I fix CVE-2021-35939?

Apply the vendor's patch.

Is CVE-2021-35939 being exploited?

There is no known exploitation of CVE-2021-35939 in the wild and no public exploit code.

All Redhat Enterprise Linux vulnerabilities

Sources

Also known as AZL-10769, DEBIAN-CVE-2021-35939, GHSA-prgv-w33h-5m73, UBUNTU-CVE-2021-35939.

Is CVE-2021-35939 in your software?

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

Check your SBOMs for free