VDB

CVE-2023-52629

CVE-2023-52629 PUBLISHED CVSS 8.4 HIGH

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.

PackageEcosystemFixed in
linux_kernellinux610dbd8ac271, 6.6, 246f80a0b17f, 2.6.20

Risk scores

CVSS 3.1
8.4
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux9f5e8eee5cfe1328660c71812d87c2a67bda389f, 9f5e8eee5cfe1328660c71812d87c2a67bda389f, 9f5e8eee5cfe1328660c71812d87c2a67bda389f
LinuxLinux2.6.20, 0, 6.1.189
linuxlinux_kernel9f5e8eee5cfe, 9f5e8eee5cfe, 2.6.20
linuxlinux_kernel2.6.20, 2.6.20, 2.6.20
LinuxLinux9f5e8eee5cfe1328660c71812d87c2a67bda389f, 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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›