CVE-2023-52629: sh: push-switch: Reorder cleanup operations to avoid use-after-free bug
Vulnerability summary
CVE-2023-52629 is a high (CVSS 8.4) Use After Free vulnerability in linux. EPSS estimates a 0.25% chance of exploitation in the next 30 days, higher than 16.9% of scored vulnerabilities.
Not severe (CVSS 8.4, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 13 · Related 13Timeline
- 29-03-2024PublishedVulnerability first disclosed.
- 03-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated8.4HighCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.4HighCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- NVDNIST8.4HighCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.25%
Chance of exploitation in the next 30 days
Percentile
17%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.25% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu114 products
- linuxAll versions (No fix recorded) | < 4.4.0-258.292 | < 4.15.0-228.240 | < 5.4.0-193.213 | < 5.15.0-119.129
- linux-allwinner-5.19All versions (No fix recorded)
- linux-aws< 4.4.0-1135.141 | < 4.4.0-1173.188 | < 4.15.0-1172.185 | < 5.4.0-1131.141 | < 5.15.0-1068.74
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ 9f5e8eee5cfe1328660c71812d87c2a67bda389f, < ff635d1f143b55fa005e9e43b16e6d8f677e90a5 | ≥ 9f5e8eee5cfe1328660c71812d87c2a67bda389f, < 610dbd8ac271aa36080aac50b928d700ee3fe4de | ≥ 9f5e8eee5cfe1328660c71812d87c2a67bda389f, < 246f80a0b17f8f582b2c0996db02998239057c65 | 2.6.20
- linux_kernel≥ 2.6.20, < 6.5.4
Debian1 product
- linuxAll versions (No fix recorded) | < 6.1.190-1 | < 6.5.6-1
3 vendors · 117 products