Local kernel memory corruption via KUnit kthread race
Published Jun 19, 2024 · Updated May 11, 2026
Use-after-free in the KUnit try-catch runner in Linux allows local users to corrupt kernel memory via a timed-out test thread. kunit_try_catch_run starts the kthread without retaining its task_struct reference, so an exit after the completion deadline can free the object before kthread_stop uses it. Public sources identify no attacker-controlled path to the race; KUnit must be configured, and exploitation requires local access and precise scheduling.
Summary
What happened
Use-after-free in the KUnit try-catch runner in Linux allows local users to corrupt kernel memory via a timed-out test thread. kunit_try_catch_run starts the kthread without retaining its task_struct reference, so an exit after the completion deadline can free the object before kthread_stop uses it. Public sources identify no attacker-controlled path to the race; KUnit must be configured, and exploitation requires local access and precise scheduling.
The record
- CVE
- CVE-2024-38561
- Published
- Jun 19, 2024
- Updated
- May 11, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-416
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Jun 19, 2024CVE publishedPublication date reported by the CVE source.
- May 11, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=5.18
- Affected versionversion=adf505457032c11b79b5a7c277c62ff5d61b17c2 <1ec7ccb4cd4b6f72c2998b07880fa7aaf8dfe1d4
- Affected versionversion=adf505457032c11b79b5a7c277c62ff5d61b17c2 <1f2ebd3758e1cef6a1f998a1f7ea73310dcb1699
- Affected versionversion=adf505457032c11b79b5a7c277c62ff5d61b17c2 <8f5c841a559ccb700c8d27a3ca645b7a5f59b4f5
- Affected versionversion=adf505457032c11b79b5a7c277c62ff5d61b17c2 <b0b755cb5a5e0d7168c3ab1b3814b0d3cad9f017
- Affected versionversion=adf505457032c11b79b5a7c277c62ff5d61b17c2 <f8aa1b98ce40184521ed95ec26cc115a255183b2
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo