Vulnerability · Published Jul 26, 2023 · Assigned by canonical
CVE-2023-2640
High 7.8
In plain English
A high-severity incorrect authorization in Ubuntu Kernel from Canonical. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 15.2% (higher than 97% of all known vulnerabilities). Ready-made attack tooling exists: Metasploit, public proof-of-concept code. Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu:22.04:LTS | linux | 5.15.0-177.187 | USN-8255-1 |
| Ubuntu:22.04:LTS | linux | 5.15.0-177.187 | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1106.113 | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1106.113 | USN-8255-1 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | 5.19.0-1029.30~22.04.1 | USN-6260-1 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | 5.19.0-1029.30~22.04.1 | UBUNTU-CVE-2023-2640 |
| Ubuntu:24.04:LTS | linux-aws-6.14 | no fix listed | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | 6.2.0-1008.8~22.04.1 | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | no fix listed | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1111.120 | USN-8255-1 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1111.120 | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | 6.2.0-1008.8~22.04.1 | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | no fix listed | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-azure-fde | 5.15.0-1114.123 | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1106.115 | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1106.115 | USN-8255-1 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | 5.19.0-1030.32~22.04.1 | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | 5.19.0-1030.32~22.04.1 | USN-6260-1 |
| Ubuntu:24.04:LTS | linux-gcp-6.14 | no fix listed | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | 6.2.0-1010.10~22.04.1 | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-gcp-6.5 | no fix listed | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1102.108 | USN-8255-1 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1102.108 | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1089.97 | USN-8255-1 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1089.97 | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | 5.19.0-50.50 | USN-6260-1 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | 5.19.0-50.50 | UBUNTU-CVE-2023-2640 |
| Ubuntu:24.04:LTS | linux-hwe-6.14 | no fix listed | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | 6.2.0-26.26~22.04.1 | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-hwe-6.5 | no fix listed | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1100.103 | USN-8255-1 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1100.103 | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-intel-iot-realtime | no fix listed | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1101.107 | USN-8255-1 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1101.107 | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1098.103 | USN-8255-1 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1098.103 | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-177.187 | USN-8255-1 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-177.187 | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | 5.19.0-1030.30 | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | 6.2.0-1009.9~22.04.1 | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.5 | no fix listed | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1101.102 | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1101.102 | USN-8255-1 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | 6.2.0-1009.9 | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-nvidia-6.5 | no fix listed | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra | 5.15.0-1058.58 | USN-8255-1 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra | 5.15.0-1058.58 | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra-igx | 5.15.0-1047.47 | USN-8255-1 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra-igx | 5.15.0-1047.47 | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | 6.0.0-1020.20 | USN-6248-1 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | 6.0.0-1020.20 | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | 6.1.0-1019.19 | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | 6.1.0-1019.19 | USN-6285-1 |
| Ubuntu:24.04:LTS | linux-oem-6.14 | no fix listed | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | no fix listed | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1103.109 | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1103.109 | USN-8255-1 |
| Ubuntu:24.04:LTS | linux-oracle-6.14 | no fix listed | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-oracle-6.5 | no fix listed | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1100.103 | UBUNTU-CVE-2023-2640 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | no fix listed | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-riscv-6.5 | no fix listed | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | no fix listed | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-starfive-6.5 | no fix listed | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | 5.15.0-1070.74 | UBUNTU-CVE-2023-2640 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | 5.15.0-1070.74 | USN-8275-1 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Canonical | Ubuntu Kernel | see references |
Weakness: CWE-863 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://ubuntu.com/security/notices/USN-6250-1 vendor-advisory
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-2640 issue-tracking
- https://wiz.io/blog/ubuntu-overlayfs-vulnerability technical-description
- https://lists.ubuntu.com/archives/kernel-team/2023-July/140923.html mailing-list