Vulnerability · Published Mar 29, 2024 · Assigned by Linux
CVE-2023-52629sh: push-switch: Reorder cleanup operations to avoid use-after-free bug
High 8.4
In plain English
A high-severity use-after-free in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 17% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
In the Linux kernel, the following vulnerability has been resolved: sh: push-switch: Reorder cleanup operations to avoid use-after-free bug The original code puts flush_work() before timer_shutdown_sync() in switch_drv_remove(). Although we use flush_work() to stop the worker, it could be rescheduled in switch_timer(). As a result, a use-after-free bug can occur. The details are shown below: (cpu 0) | (cpu 1) switch_drv_remove() | flush_work() | ... | switch_timer // timer | schedule_work(&psw->work) timer_shutdown_sync() | ... | switch_work_handler // worker kfree(psw) // free | | psw->state = 0 // use This patch puts timer_shutdown_sync() before flush_work() to mitigate the bugs. As a result, the worker and timer will be stopped safely before the deallocate operations.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | linux | 6.1.190-1 | DEBIAN-CVE-2023-52629 |
| Debian:13 | linux | 6.5.6-1 | DEBIAN-CVE-2023-52629 |
| Debian:14 | linux | 6.5.6-1 | DEBIAN-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux | 5.15.0-119.129 | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux | 5.15.0-119.129 | USN-6974-1 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1068.74 | USN-6974-1 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1068.74 | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | no fix listed | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | no fix listed | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1071.80 | USN-6974-1 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1071.80 | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | no fix listed | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | no fix listed | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-azure-fde | 5.15.0-1071.80.1 | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-azure-fde | 5.15.0-1071.80.1 | USN-6974-1 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | no fix listed | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1067.75 | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1067.75 | USN-6974-1 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | no fix listed | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-gcp-6.5 | no fix listed | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1065.71 | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1065.71 | USN-6974-1 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1051.58 | USN-6974-1 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1051.58 | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | no fix listed | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-hwe-6.5 | no fix listed | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1061.64 | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1061.64 | USN-6974-1 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1063.69 | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1063.69 | USN-6974-1 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1065.70 | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1065.70 | USN-6974-1 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-119.129 | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-119.129 | USN-6974-1 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | no fix listed | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.5 | no fix listed | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1063.64 | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1063.64 | USN-6974-1 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | no fix listed | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-nvidia-6.5 | 6.5.0-1014.14 | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra | 5.15.0-1028.28 | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra-igx | 5.15.0-1016.16 | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | no fix listed | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | no fix listed | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1066.72 | USN-6974-1 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1066.72 | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-oracle-6.5 | no fix listed | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1061.64 | USN-6974-1 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1061.64 | UBUNTU-CVE-2023-52629 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | no fix listed | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | no fix listed | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | 5.15.0-1035.39 | UBUNTU-CVE-2023-52629 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | 5.15.0-1035.39 | USN-7019-1 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 9f5e8eee5cfe1328660c71812d87c2a67bda389f – before ff635d1f143b55fa005e9e43b16e6d8f677e90a59f5e8eee5cfe1328660c71812d87c2a67bda389f – before 610dbd8ac271aa36080aac50b928d700ee3fe4de9f5e8eee5cfe1328660c71812d87c2a67bda389f – before 246f80a0b17f8f582b2c0996db02998239057c65 |
| Linux | Linux | 2.6.20 |
Weakness: CWE-416 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H