CVE-2023-52629

sh: push-switch: Reorder cleanup operations to avoid use-after-free bug

HIGH
8.4
CVSS Score
Published: March 29, 2024 at 09:13 AM UTC
Updated: October 3, 2026 at 11:17 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.4
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.6.20 ≤ v < 6.1.1892.6.20 ≤ v < 6.5.42.6.20 ≤ v < 6.62.6.209f5e8eee5cfe9f5e8eee5cfe1328660c71812d87c2a67bda389f
Vendor states this is fixed in 246f80a0b17f (fixed)
Vendor states this is fixed in 246f80a0b17f8f582b2c0996db02998239057c65 (fixed)
Vendor states this is fixed in 610dbd8ac271 (fixed)
Vendor states this is fixed in 610dbd8ac271aa36080aac50b928d700ee3fe4de (fixed)
Vendor states this is fixed in ff635d1f143b55fa005e9e43b16e6d8f677e90a5 (fixed)
Vendor states this is fixed in 2.6.20 (unaffected)
Vendor states this is fixed in 6.1.189 (unaffected)
Vendor states this is fixed in 6.5.4 (unaffected)
Vendor states this is fixed in 6.54 (unaffected)
Vendor states this is fixed in 6.6 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

8.4HIGHCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card