CVE-2025-40201 in Kernel products
In the Linux kernel, the following vulnerability has been resolved: kernel/sys.c: fix the racy usage of task_lock(tsk->group_leader) in sys_prlimit64() paths The usage of task_lock(tsk->group_leader) in sys_prlimit64()->do_prlimit() path is very broken. sys_prlimit64() does get_task_struct(tsk) but this only prot...
Affects 1 product from 3 vendors. Facts below cite their sources.
Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
In the Linux kernel, the following vulnerability has been resolved: kernel/sys.c: fix the racy usage of task_lock(tsk->group_leader) in sys_prlimit64() paths The usage of task_lock(tsk->group_leader) in sys_prlimit64()->do_prlimit() path is very broken. sys_prlimit64() does get_task_struct(tsk) but this only protects task_struct itself. If tsk != current and tsk is not a leader, this process can exit/exec and task_lock(tsk->group_leader) may use the already freed task_struct. Another problem is that sys_prlimit64() can race with mt-exec which changes ->group_leader. In this case do_prlimit() may take the wrong lock, or (worse) ->group_leader may change between task_lock() and task_unlock(). Change sys_prlimit64() to take tasklist_lock when necessary. This is not nice, but I don't see a better fix for -stable.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-40201 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-258941-I |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Published | 2025-11-12 |
| Last modified | 2026-10-19 |
| Source | NVD |
Analysis AI-written, not human-reviewed
A race condition vulnerability exists in the Linux kernel due to improper usage of task_lock(tsk->group_leader) in the sys_prlimit64() function, which could potentially allow unauthorized access or privilege escalation.
An attacker could exploit this race condition to manipulate the task limits of a process, potentially leading to unauthorized access or privilege escalation if the attacker can control the timing of the race condition.
Questions
What is CVE-2025-40201?
A race condition vulnerability exists in the Linux kernel due to improper usage of task_lock(tsk->group_leader) in the sys_prlimit64() function, which could potentially allow unauthorized access or privilege escalation.
What is the CVSS score for CVE-2025-40201?
CVE-2025-40201 has CVSS 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 0.2%.
Is CVE-2025-40201 actively exploited?
No confirmed active exploitation of CVE-2025-40201 as of 2026-10-25.
How do I remediate CVE-2025-40201?
Priority: HIGH.
What systems are affected by CVE-2025-40201?
CVE-2025-40201 affects Kernel; Linux Linux; Nice.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Kernel","product":"EDS-518A","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-19.