CVE-2023-52629sh: push-switch: Reorder cleanup operations to avoid use-after-free bug
- 8.4HighCVSS base score
- 0.25%Exploitation in 30 daysEPSS · top 83% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By Linux
- 23 days later
· 23 days later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| CISA-ADPADP (enrichment) | 3.1 | High8.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Modified | 3.1 | High8.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.25% · top 83% of all CVEs (16 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.4.
Affected products
- affected 9f5e8eee5cfe1328660c71812d87c2a67bda389f – < ff635d1f143b55fa005e9e43b16e6d8f677e90a5
- affected 9f5e8eee5cfe1328660c71812d87c2a67bda389f – < 610dbd8ac271aa36080aac50b928d700ee3fe4de
- affected 9f5e8eee5cfe1328660c71812d87c2a67bda389f – < 246f80a0b17f8f582b2c0996db02998239057c65
- affected 2.6.20
- unaffected < 2.6.20
- unaffected 6.1.189 – ≤ 6.1.*
- unaffected 6.5.4 – ≤ 6.5.*
- unaffected 6.6 – ≤ *
References
References3
- https://git.kernel.org/stable/c/ff635d1f143b55fa005e9e43b16e6d8f677e90a5 (opens in a new tab)
- https://git.kernel.org/stable/c/610dbd8ac271aa36080aac50b928d700ee3fe4de (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/246f80a0b17f8f582b2c0996db02998239057c65 (opens in a new tab)x_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2023-57253 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2023-52629)Record last updated .