First published: Tue Jun 06 2023(Updated: )
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.
Credit: security@ubuntu.com security@ubuntu.com security@ubuntu.com
Affected Software | Affected Version | How to fix |
---|---|---|
Canonical Ubuntu Linux | =23.04 | |
ubuntu/linux | <6.2.0-26.26 | 6.2.0-26.26 |
ubuntu/linux-aws | <6.2.0-1008.8 | 6.2.0-1008.8 |
ubuntu/linux-aws-5.19 | <5.19.0-1029.30~22.04.1 | 5.19.0-1029.30~22.04.1 |
ubuntu/linux-aws-6.2 | <6.2.0-1008.8~22.04.1 | 6.2.0-1008.8~22.04.1 |
ubuntu/linux-azure | <6.2.0-1008.8 | 6.2.0-1008.8 |
ubuntu/linux-azure-6.2 | <6.2.0-1008.8~22.04.1 | 6.2.0-1008.8~22.04.1 |
ubuntu/linux-azure-fde-6.2 | <6.2.0-1008.8~22.04.1 | 6.2.0-1008.8~22.04.1 |
ubuntu/linux-gcp | <6.2.0-1010.10 | 6.2.0-1010.10 |
ubuntu/linux-gcp-5.19 | <5.19.0-1030.32~22.04.1 | 5.19.0-1030.32~22.04.1 |
ubuntu/linux-gcp-6.2 | <6.2.0-1010.10~22.04.1 | 6.2.0-1010.10~22.04.1 |
ubuntu/linux-hwe-5.19 | <5.19.0-50.50 | 5.19.0-50.50 |
ubuntu/linux-hwe-6.2 | <6.2.0-26.26~22.04.1 | 6.2.0-26.26~22.04.1 |
ubuntu/linux-ibm | <6.2.0-1006.6 | 6.2.0-1006.6 |
ubuntu/linux-kvm | <6.2.0-1009.9 | 6.2.0-1009.9 |
ubuntu/linux-lowlatency | <6.2.0-1009.9 | 6.2.0-1009.9 |
ubuntu/linux-lowlatency-hwe-5.19 | <5.19.0-1030.30 | 5.19.0-1030.30 |
ubuntu/linux-lowlatency-hwe-6.2 | <6.2.0-1009.9~22.04.1 | 6.2.0-1009.9~22.04.1 |
ubuntu/linux-oem-6.0 | <6.0.0-1020.20 | 6.0.0-1020.20 |
ubuntu/linux-oem-6.1 | <6.1.0-1019.19 | 6.1.0-1019.19 |
ubuntu/linux-oracle | <6.2.0-1008.8 | 6.2.0-1008.8 |
ubuntu/linux-raspi | <6.2.0-1009.11 | 6.2.0-1009.11 |
ubuntu/linux-riscv | <6.2.0-27.28.1 | 6.2.0-27.28.1 |
debian/linux | 4.19.249-2 4.19.304-1 5.10.209-2 5.10.205-2 6.1.76-1 6.1.85-1 6.6.15-2 6.7.12-1 |
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
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2023-2640 is a vulnerability in Ubuntu kernels that allows an unprivileged user to set privileged extended attributes on mounted files without appropriate security checks.
The severity of CVE-2023-2640 is high with a CVSS score of 7.8.
Ubuntu Linux 23.04, ubuntu/linux 6.2.0-26.26, ubuntu/linux-hwe-5.19 5.19.0-50.50, and other Ubuntu packages are affected by CVE-2023-2640.
To fix CVE-2023-2640, update your Ubuntu kernel and packages to the recommended versions mentioned in the Ubuntu Security Notice (USN-6250-1).
You can find more information about CVE-2023-2640 on the MITRE CVE website, Ubuntu Security Notice (USN-6250-1), and the Ubuntu kernel-team mailing list.