CVE-2025-38352: Linux Kernel Time-of-Check Time-of-Use (TOCTOU) Race Condition Vulnerability
Advisory generated from the CVE record, CISA, Exploit Observer and VEDAS: what it is, whether it is exploited, who is affected, and how to fix and detect it.
Generated by VEDAS. Scores as of 2026-11-01 19:19 UTC. Rebuilt every few hours from cve-scores, CISA KEV and vedas-signatures. How this works and its limits.
What it is
In the Linux kernel, the following vulnerability has been resolved: posix-cpu-timers: fix race between handle_posix_cpu_timers() and posix_cpu_timer_del() If an exiting non-autoreaping task has already passed exit_notify() and calls handle_posix_cpu_timers() from IRQ, it can be reaped by its parent or debugger right after unlock_task_sighand(). If a concurrent posix_cpu_timer_del() runs at that moment, it won’t be able to detect timer->it.cpu.firing != 0: cpu_timer_task_rcu() and/or lock_task_sighand() will fail. Add the tsk->exit_state check into run_posix_cpu_timers() to fix this. This fix is not needed if CONFIG_POSIX_CPU_TIMERS_TASK_WORK=y, because exit_task_work() is called before exit_notify(). But the check still makes sense, task_work_add(&tsk->posix_cputimers_work.work) will fail anyway in this case.
Description quoted from the CVE record (assigned by Linux, published 2025-07-22).
Weakness: CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
How it can be exploited
Exploitable with local access with low attack complexity needing low privileges and no user interaction. Impact: confidentiality high, integrity high, availability high. CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CISA assessment (SSVC): CISA assesses exploitation as active. Automatable: no. Technical impact: total.
- On CISA KEV since
- 2025-09-04
- US federal deadline
- 2025-09-25
- Ransomware use
- Not known
Public exploit evidence (Exploit Observer)
Also known as: BDU:2025-10870, CNNVD-202507-2859, EUVD-2025-22297, GHSA-mr4j-mh66-4679, SNYK-AMZN2-KERNELTOOLSDEVEL-12508430, SNYK-CENTOS7-KERNELDOC-10877038, SNYK-CENTOS8-KERNELHEADERS-10876878, SNYK-CENTOS8-KERNELMODULESINTERNAL-10876884, SNYK-CENTOS8-KERNELRTKVM-10876892, SNYK-CENTOS8-PYTHON3PERF-10876912, SNYK-CENTOS9-KERNEL64KDEBUGDEVEL-10875659, SNYK-CENTOS9-KERNELDEBUGMODULESCORE-10875823, SNYK-RHEL10-KERNELZFCPDUMPDEVEL-10917573, SNYK-ROCKY9-KERNEL64KMODULESEXTRA-13514531, SNYK-ROCKY9-KERNELDEBUGMODULESCORE-13514571
VEDAS cluster: VEDAS:ARTICHOKEALLIGATOR
Exploit Observer links 3 pieces of public exploit code or detection modules that name this CVE or one of its aliases.
Exploit code and modules (3)
Code that names this CVE. A repository can be a working exploit, a scanner, a fake or malware; read it before running anything.
- Code repository: https://github.com/crime2/poc-cve-2025-38352
- Code repository: https://github.com/farazsth98/poc-cve-2025-38352
- Code repository: https://github.com/longwasu/cve-2025-38352-poc
Vulnerability databases and vendor advisories (23)
Catalogue entries, not exploit evidence.
- Vulnerability database or vendor advisory: https://access.redhat.com/security/cve/cve-2025-38352
- Vulnerability database or vendor advisory: https://euvd.enisa.europa.eu/enisa/EUVD-2025-22297
- Vulnerability database or vendor advisory: https://github.com/advisories/GHSA-mr4j-mh66-4679
- Vulnerability database or vendor advisory: https://nvd.nist.gov/vuln/detail/CVE-2025-38352
- Vulnerability database or vendor advisory: https://osv.dev/vulnerability/ROOT-OS-DEBIAN-11-CVE-2025-38352
- Vulnerability database or vendor advisory: https://osv.dev/vulnerability/ROOT-OS-DEBIAN-12-CVE-2025-38352
- Vulnerability database or vendor advisory: https://osv.dev/vulnerability/ROOT-OS-UBUNTU-2204-CVE-2025-38352
- Vulnerability database or vendor advisory: https://osv.dev/vulnerability/ROOT-OS-UBUNTU-2404-CVE-2025-38352
- Vulnerability database or vendor advisory: https://security.snyk.io/vuln/SNYK-AMZN2-KERNELTOOLSDEVEL-12508430
- Vulnerability database or vendor advisory: https://security.snyk.io/vuln/SNYK-CENTOS7-KERNELDOC-10877038
- Vulnerability database or vendor advisory: https://security.snyk.io/vuln/SNYK-CENTOS8-KERNELHEADERS-10876878
- Vulnerability database or vendor advisory: https://security.snyk.io/vuln/SNYK-CENTOS8-KERNELMODULESINTERNAL-10876884
- and 11 more
189 more references returned by Exploit Observer did not name this CVE or an alias, so they are left out.
VEDAS data as of 2026-11-01T17:12 UTC; fetched 2026-11-02.
Live scores
- EPSS
- 0.014
some chance of attack soon - VEDAS
- 0.969
strong exploit evidence - On CISA KEV
- Yes, since 2025-09-04
- Detection rule
- None yet
Thin horizontal line: the “likely” (EPSS 0.10) or “strong” (VEDAS 0.90) threshold. Shaded “no data” areas are periods when cve-scores did not publish. The vertical line is the day CISA added it to its exploited list.
Who is affected
| Product | Affected | Not affected |
|---|---|---|
| Linux Linux | from 0bdd2ed4138e before 78a4b8e3795b (git commit) from 0bdd2ed4138e before c076635b3a42 (git commit) from 0bdd2ed4138e before 2f3daa04a932 (git commit) from 0bdd2ed4138e before 764a7a5dfda2 (git commit) from 0bdd2ed4138e before 2c72fe18cc5f (git commit) from 0bdd2ed4138e before c29d5318708e (git commit) from 0bdd2ed4138e before 460188bc042a (git commit) from 0bdd2ed4138e before f90fff1e152d (git commit) | Not stated |
| Linux Linux | version 2.6.36 | 0 is not affected (up to 2.6.36); 5.4.295 is not affected; 5.10.239 is not affected; 5.15.186 is not affected |
Version ranges exactly as the CVE record states them. “Before X” means X is the first fixed version.
Exploit Observer also maps it to: debian debian_linux, linux linux_kernel.
How to fix it
CISA required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Vendor guidance:
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=2c72fe18cc5f9f1750f5bc148cf1c94c29e106ff
- https://source.android.com/docs/security/bulletin/2025-09-01
- https://nvd.nist.gov/vuln/detail/CVE-2025-38352
How to detect it
There is no open VEDAS detection rule for this bug yet. It is listed on the detection gaps page if CISA has confirmed attacks.
References
Exploits and technical analysis
- https://github.com/farazsth98/chronomaly (exploit)
Government sources
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-38352 (government-resource)
Other references
- https://git.kernel.org/stable/c/78a4b8e3795b31dae58762bc091bb0f4f74a2200
- https://git.kernel.org/stable/c/c076635b3a42771ace7d276de8dc3bc76ee2ba1b
- https://git.kernel.org/stable/c/2f3daa04a9328220de46f0d5c919a6c0073a9f0b
- https://git.kernel.org/stable/c/764a7a5dfda23f69919441f2eac2a83e7db6e5bb
- https://git.kernel.org/stable/c/2c72fe18cc5f9f1750f5bc148cf1c94c29e106ff
- https://git.kernel.org/stable/c/c29d5318708e67ac13c1b6fc1007d179fb65b4d7
- https://git.kernel.org/stable/c/460188bc042a3f40f72d34b9f7fc6ee66b0b757b
- https://git.kernel.org/stable/c/f90fff1e152dedf52b932240ebbd670d83330eca
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html
- https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html
Other databases
Where this comes from
This advisory is generated automatically by VEDAS from: CVE.org record, CISA KEV, cve-scores (EPSS and VEDAS), Exploit Observer. Text in quotes is reproduced from the source; everything else is a fixed template filled with source fields. Nothing here is written by a language model. Check the vendor advisory before acting, and read how VEDAS and Exploit Observer work, and their limits.