Local kernel compromise via sys_prlimit64 task race
Published Nov 12, 2025 · Updated Aug 5, 2026
Use-after-free in sys_prlimit64() in Linux allows local users to disclose or corrupt kernel memory through a process race. do_prlimit() locks tsk->group_leader without stabilizing that pointer, so concurrent exec or exit can change it or free the referenced task_struct between lock and unlock. An unprivileged local user can race prlimit64() against an owned nonleader thread's exec or exit, enabling kernel memory corruption, disclosure, deadlock, or panic.
Summary
What happened
Use-after-free in sys_prlimit64() in Linux allows local users to disclose or corrupt kernel memory through a process race. do_prlimit() locks tsk->group_leader without stabilizing that pointer, so concurrent exec or exit can change it or free the referenced task_struct between lock and unlock. An unprivileged local user can race prlimit64() against an owned nonleader thread's exec or exit, enabling kernel memory corruption, disclosure, deadlock, or panic.
The record
- CVE
- CVE-2025-40201
- Published
- Nov 12, 2025
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Nov 12, 2025CVE publishedPublication date reported by the CVE source.
- Aug 5, 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=18c91bb2d87268d23868bf13508f5bc9cf04e89a <132f827e7bac7373e1522e89709d70b43cae5342
- Affected versionversion=18c91bb2d87268d23868bf13508f5bc9cf04e89a <19b45c84bd9fd42fa97ff80c6350d604cb871c75
- Affected versionversion=18c91bb2d87268d23868bf13508f5bc9cf04e89a <1bc0d9315ef5296abb2c9fd840336255850ded18
- Affected versionversion=18c91bb2d87268d23868bf13508f5bc9cf04e89a <6796412decd2d8de8ec708213bbc958fab72f143
- Affected versionversion=18c91bb2d87268d23868bf13508f5bc9cf04e89a <a15f37a40145c986cdf289a4b88390f35efdecc4
- Affected versionversion=5.18
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