cve.bz

CVE-2023-52629 linux linux kernel: Use After Free

8.4 highEPSS 0.3%Fix available

High (8.4) in linux linux kernel. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.4 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 17th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2024-04-01. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-52629 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-52629?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-52629?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-52629 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2023-52629

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2023-52629](https://cve.bz/cve/badge/CVE-2023-52629.svg)](https://cve.bz/cve/CVE-2023-52629)

HTML:

<a href="https://cve.bz/cve/CVE-2023-52629"><img src="https://cve.bz/cve/badge/CVE-2023-52629.svg" alt="CVE-2023-52629"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linux2.6.20 and later

Fixed in

ProductRelease lineFixed in
Linux6.16.1.189
Linux6.56.5.4
Linuxlater releases6.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12linux6.1.190-1DEBIAN-CVE-2023-52629
Debian13, 14linux6.5.6-1DEBIAN-CVE-2023-52629
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2023-52629
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2023-52629
Ubuntu20.04:LTSlinux5.4.0-193.213UBUNTU-CVE-2023-52629 USN-6973-1
Ubuntu20.04:LTSlinux-aws5.4.0-1131.141UBUNTU-CVE-2023-52629 USN-6973-1
Ubuntu20.04:LTSlinux-aws-5.155.15.0-1068.74~20.04.1UBUNTU-CVE-2023-52629 USN-6974-1
Ubuntu20.04:LTSlinux-azure5.4.0-1136.143UBUNTU-CVE-2023-52629 USN-6973-1
Ubuntu20.04:LTSlinux-azure-5.155.15.0-1071.80~20.04.1UBUNTU-CVE-2023-52629 USN-6974-1
Ubuntu20.04:LTSlinux-azure-fde-5.155.15.0-1071.80~20.04.1.1USN-6974-1
Ubuntu20.04:LTSlinux-bluefield5.4.0-1091.98UBUNTU-CVE-2023-52629 USN-6973-1
Ubuntu20.04:LTSlinux-gcp5.4.0-1135.144UBUNTU-CVE-2023-52629 USN-6973-1
Ubuntu20.04:LTSlinux-gcp-5.155.15.0-1067.75~20.04.1UBUNTU-CVE-2023-52629 USN-6974-1
Ubuntu20.04:LTSlinux-gke, linux-riscv, linux-raspi2 and 24 moreno fix listedUBUNTU-CVE-2023-52629
75 more for Ubuntu in the JSON and on Ubuntu's page.
Alpaquita23linux-lts6.1.189-r0BELL-CVE-2023-52629
Alpaquitastreamlinux-lts6.6.58-r0BELL-CVE-2023-52629

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected
Red Hat Enterprise Linux 9kernelNot affected
Red Hat Enterprise Linux 9kernel-rtNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-52629.

References

Check your stackJSON