Home / Linux / Linux / CVE-2025-40341
CVE-2025-40341: is it exploited, and which versions of Linux are affected and fixed?
CVE-2025-40341 is a vulnerability in Linux. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 11:38 UTC). Affected: Linux from 2.6.17 until the fixed versions (CVE record by Linux). Fixed in 6.1.159, 6.6.117, 6.12.58, 6.17.8 and 1 more (CVE record by Linux).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:38 UTC, CVE record November 28, 2026, 17:36 UTC and NVD November 19, 2026, 07:15 UTC.
What is CVE-2025-40341?
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.
From the CVE record by Linux, last updated May 11, 2026, 21:47 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Linux | Linux | not stated | |
| Linux | Linux | from 2.6.17 until the fixed versions | 6.1.159, 6.6.117, 6.12.58, 6.17.8, 6.18 |
As the CVE record by Linux states it, last updated May 11, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Is CVE-2025-40341 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 0.25% probability of exploitation activity in the next 30 days, percentile 16.9 (FIRST EPSS, scores of December 2, 2026)
Where are the vendor advisories and references?
- https://git.kernel.org/stable/c/6511984d1aa1360181bcafb1ca75df7f291ef237
- https://git.kernel.org/stable/c/4aced32596ead1820b7dbd8e40d30b30dc1f3ad4
- https://git.kernel.org/stable/c/3b4222494489f6d4b8705a496dab03384b7ca998
- https://git.kernel.org/stable/c/b524455a51feb6013df3a5dba3160487b2e8e22a
- https://git.kernel.org/stable/c/6b54082c3ed4dc9821cdf0edb17302355cc5bb45
When was it published, and where is the official record?
- Reserved
- April 16, 2025
- Published
- December 9, 2025, 04:09 UTC
- CVE record updated
- May 11, 2026, 21:47 UTC by Linux
- NVD
- Deferred, last modified October 14, 2026, 21:10 UTC
- Last checked
- CVE list November 28, 2026, 17:36 UTC; NVD November 19, 2026, 07:15 UTC; KEV December 3, 2026, 11:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Linux?
- Jul 4, 2026CVE-2026-53362 Linux: heap buffer overflow exploited
- Jun 25, 2026CVE-2026-53266 Linux: out-of-bounds write (memory corruption) exploited
- May 23, 2026CVE-2026-46300 Linux: write-what-where Condition exploited
- Apr 22, 2026CVE-2026-31431 Linux: incorrect resource transfer exploited
- Oct 13, 2025CVE-2025-39964 Linux: race condition exploited
- Sep 5, 2025CVE-2025-39682 Linux: unusual condition not checked exploited
- Jul 22, 2025CVE-2025-38352 Linux: time-of-check time-of-use race condition exploited
- Dec 27, 2024CVE-2024-53197 Linux: out-of-bounds write (memory corruption) exploited
Questions about CVE-2025-40341
Is CVE-2025-40341 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:38 UTC. FIRST's EPSS gives it a 0.25% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Linux are affected by CVE-2025-40341?
Linux from 2.6.17 until the fixed versions, per the CVE record by Linux. The tables above give every range the sources list.
Which version fixes CVE-2025-40341?
6.1.159, 6.6.117, 6.12.58, 6.17.8 and 6.18, per the CVE record by Linux. Check the vendor's advisory before you rely on it.
Where is the official record of CVE-2025-40341?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.