CVE-2023-2640 Privilege escalation in Ubuntu Kernel

High 7.8 Published Updated

An unprivileged user can bypass security checks to set privileged extended attributes on overlayfs files, potentially leading to privilege escalation.

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-2023-2640?

CVE-2023-2640 is a high-severity vulnerability in Canonical Ubuntu Linux, published on 26 Jul 2023. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

On Ubuntu kernels carrying both c914c0e27eb0 and "UBUNTU: SAUCE: overlayfs: Skip permission checking for trusted.overlayfs.* xattrs", an unprivileged user may set privileged extended attributes on the mounted files, leading them to be set on the upper files without the appropriate security checks.

Weakness: CWE-863

Which versions are affected by CVE-2023-2640?

It affects 1 product.

Products include Canonical Ubuntu Linux.

How do I fix CVE-2023-2640?

Apply the vendor's patch.

Is CVE-2023-2640 being exploited?

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

Public exploit code: 1 Metasploit module and 10 proofs of concept on GitHub.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as GHSA-38f7-vv5r-859m, UBUNTU-CVE-2023-2640, USN-8255-2, USN-8255-3.

Is CVE-2023-2640 in your software?

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

Check your SBOMs for free