CVE-2022-24122 Use after free in n/a

High 7.8 Published Updated

A use-after-free in the Linux kernel allows local attackers to escalate privileges when unprivileged user namespaces are enabled.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-24122?

CVE-2022-24122 is a high-severity use after free vulnerability in Fedoraproject Fedora, published on 29 Jan 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

kernel/ucount.c in the Linux kernel 5.14 through 5.16.4, when unprivileged user namespaces are enabled, allows a use-after-free and privilege escalation because a ucounts object can outlive its namespace.

Weakness: CWE-416

Which versions are affected by CVE-2022-24122?

It affects 10 products.

Products include Fedoraproject Fedora, Linux kernel, Netapp H300e Firmware, Netapp H300s Firmware, Netapp H410c Firmware, Netapp H410s Firmware and 4 more.

How do I fix CVE-2022-24122?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2022-24122 being exploited?

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

Public exploit code: 1 proofs of concept on GitHub.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as AZL-8451, DEBIAN-CVE-2022-24122, GHSA-qffg-f4f5-j77v, UBUNTU-CVE-2022-24122.

Is CVE-2022-24122 in your software?

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

Check your SBOMs for free