CVE-2025-40341 in Kernel products
In the Linux kernel, the following vulnerability has been resolved: futex: Don't leak robust_list pointer on exec race sys_get_robust_list() and compat_get_robust_list() use ptrace_may_access() to check if the calling task is allowed to access another task's robust_list pointer. This check is racy against a concur...
Affects 1 product from 4 vendors. Facts below cite their sources.
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: futex: Don't leak robust_list pointer on exec race sys_get_robust_list() and compat_get_robust_list() use ptrace_may_access() to check if the calling task is allowed to access another task's robust_list pointer. This check is racy against a concurrent exec() in the target process. During exec(), a task may transition from a non-privileged binary to a privileged one (e.g., setuid binary) and its credentials/memory mappings may change. If get_robust_list() performs ptrace_may_access() before this transition, it may erroneously allow access to sensitive information after the target becomes privileged. A racy access allows an attacker to exploit a window during which ptrace_may_access() passes before a target process transitions to a privileged state via exec(). For example, consider a non-privileged task T that is about to execute a setuid-root binary. An attacker task A calls get_robust_list(T) while T is still unprivileged. Since ptrace_may_access() checks permissions based on current credentials, it succeeds. However, if T begins exec immediately afterwards, it becomes privileged and may change its memory mappings. Because get_robust_list() proceeds to access T->robust_list without synchronizing with exec() it may read user-space pointers from a now-privileged process. This violates the intended post-exec access restrictions and could expose sensitive memory addresses or be used as a primitive in a larger exploit chain. Consequently, the race can lead to unauthorized disclosure of information across privilege boundaries and poses a potential security risk. Take a read lock on signal->exec_update_lock prior to invoking ptrace_may_access() and accessing the robust_list/compat_robust_list. This ensures that the target task's exec state remains stable during the check, allowing for consistent and synchronized validation of credentials.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-40341 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-259141-I |
| Published | 2025-12-09 |
| Last modified | 2026-10-14 |
| Source | NVD |
Analysis AI-written, not human-reviewed
A race condition vulnerability exists in the Linux kernel's futex implementation, specifically in the sys_get_robust_list() and compat_get_robust_list() functions, which could allow unauthorized access to a task's robust_list pointer during an exec() call.
An attacker could exploit this race condition to leak sensitive information about a task's robust_list pointer, potentially leading to further privilege escalation or information disclosure.
Questions
What is CVE-2025-40341?
A race condition vulnerability exists in the Linux kernel's futex implementation, specifically in the sys_get_robust_list() and compat_get_robust_list() functions, which could allow unauthorized access to a task's robust_list pointer during an exec() call.
Is CVE-2025-40341 actively exploited?
No confirmed active exploitation of CVE-2025-40341 as of 2026-10-15.
How do I remediate CVE-2025-40341?
Priority: MEDIUM.
What systems are affected by CVE-2025-40341?
CVE-2025-40341 affects Kernel; Linux Linux; Signal; Target.
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-14.