CVE-2023-52629
sh: push-switch: Reorder cleanup operations to avoid use-after-free bug
Reported by linux · Published March 29, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux_kernel | linux | 610dbd8ac271, 6.6, 246f80a0b17f, 2.6.20 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 9f5e8eee5cfe1328660c71812d87c2a67bda389f, 9f5e8eee5cfe1328660c71812d87c2a67bda389f, 9f5e8eee5cfe1328660c71812d87c2a67bda389f |
| Linux | Linux | 2.6.20, 0, 6.1.189 |
| linux | linux_kernel | 9f5e8eee5cfe, 9f5e8eee5cfe, 2.6.20 |
| linux | linux_kernel | 2.6.20, 2.6.20, 2.6.20 |
| Linux | Linux | 9f5e8eee5cfe1328660c71812d87c2a67bda389f, 9f5e8eee5cfe1328660c71812d87c2a67bda389f, 2.6.20 |
Timeline
- Mar 29, 2024 CVE Published
- Mar 30, 2024 EPSS Score (30 in total, the first dated here)
- Oct 5, 2024 Coalition ESS Score (14 in total, the first dated here)
- Dec 5, 2024 PoC Published (3 in total, the first dated here)
- Jan 25, 2026 Security Advisory (137 in total, the first dated here)
- Jan 25, 2026 CVE Updated
- Mar 30, 2026 Distribution Patch (132 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-52629
vulnetix vdb fixes CVE-2023-52629
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-52629/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart