Patchfirst
CVE-2023-2640 Public exploit High · 7.8 EPSS 16.1%

On Ubuntu kernels carrying both c914c0e27eb0 and "UBUNTU: SAUCE: overlayfs: Skip permission checking for…

Workaround:the vendor lists a workaround. No fixed version in the CVE record. See workaround ↓

Canonical · Ubuntu Kernel

Summary

The flaw is in the overlayfs component of the Ubuntu Kernel, specifically on kernels that carry both upstream commit c914c0e27eb0 and the Ubuntu SAUCE patch that skips permission checking for trusted.overlayfs.* extended attributes. An attacker with local, low-privileged access and no user interaction can set privileged extended attributes on files in an overlay mount, which are then written to the upper layer without the appropriate security checks.

Official description · CVE.org

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.

Breakdown
67.9 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 13 months after disclosure. Public exploit code (Metasploit) was available the same day.

  1. DisclosedPublic exploit codeMetasploitday 0
  2. First seen exploitedVulnCheck KEV evidence+13 mo

Affected versions and fixes

as published in the CVE record

Workaround

If not needed, disable the ability for unprivileged users to create namespaces. To do this temporarily, do: sudo sysctl -w kernel.unprivileged_userns_clone=0 To disable across reboots, do: echo kernel.unprivileged_userns_clone=0 | \ sudo tee /etc/sysctl.d/99-disable-unpriv-userns.conf

What security researchers reported

Not named in any threat report yet

Also mentioned in 22 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

4 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close