CVE-2025-38352 A-425282960 ASB-A-425282960
posix-cpu-timers: fix race between handle_posix_cpu_timers() and posix_cpu_timer_del()
- Severity
- 7.8 / 10
- High · CVSS 3.1
- Exploit chance (EPSS)
- 1.36%
- Chance of exploitation in the next 30 days. Higher than 71.67% of scored vulnerabilities.
- Known exploited
- Yes
- In CISA's catalog since Sep 4, 2025
- Weakness
- CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
- Fix
6.15.3- Upgrade Kernel to this version or later
Description
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.
Affected versions
Linux
| Package | Vulnerable | Fixed in |
|---|---|---|
| Kernel | >= 2.6.36, < 5.4.295>= 5.5.0, < 5.10.239>= 5.11.0, < 5.15.186>= 5.16.0, < 6.1.142>= 6.2.0, < 6.6.94>= 6.7.0, < 6.12.34>= 6.13.0, < 6.15.3 |
5.4.2955.10.2395.15.1866.1.1426.6.946.12.346.15.3 |
How to fix
Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.
Kernel Linux → 6.15.3
Set Kernel to 6.15.3 or later in your manifest.
Severity breakdown
CVSS 3.1 7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Weakness
CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
The product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check.
How to prevent it
- Implementation: The most basic advice for TOCTOU vulnerabilities is to not perform a check before the use. This does not resolve the underlying issue of the execution of a function on a resource whose state and identity cannot be assured, but it does help to limit the false sense of security given by the check.
- Implementation: When the file being altered is owned by the current user and group, set the effective gid and uid to that of the current user and group when executing this statement.
- Architecture and Design: Limit the interleaving of operations on files from multiple processes.
- Implementation, Architecture and Design: If you cannot perform operations atomically and you must share access to the resource between multiple processes or threads, then try to limit the amount of time (CPU cycles) between the check and use of the resource. This will not fix the problem, but it could make it more difficult for an attack to succeed.
- Implementation: Recheck the resource after the use call to verify that the action was taken appropriately.
- Architecture and Design: Ensure that some environmental locking mechanism can be used to protect resources effectively.
- Implementation: Ensure that locking occurs before the check, as opposed to afterwards, such that the resource, as checked, is the same as it is when in use.
References
Advisories
Exploits and evidence
Packages
Other links
- git.kernel.org/stable/c/2c72fe18cc5f9f1750f5bc148cf1c94c29e106ff
- git.kernel.org/stable/c/2f3daa04a9328220de46f0d5c919a6c0073a9f0b
- git.kernel.org/stable/c/460188bc042a3f40f72d34b9f7fc6ee66b0b757b
- git.kernel.org/stable/c/764a7a5dfda23f69919441f2eac2a83e7db6e5bb
- git.kernel.org/stable/c/78a4b8e3795b31dae58762bc091bb0f4f74a2200
- git.kernel.org/stable/c/c076635b3a42771ace7d276de8dc3bc76ee2ba1b
- git.kernel.org/stable/c/c29d5318708e67ac13c1b6fc1007d179fb65b4d7
- git.kernel.org/stable/c/f90fff1e152dedf52b932240ebbd670d83330eca
- lists.debian.org/debian-lts-announce/2025/10/msg00007.html
- lists.debian.org/debian-lts-announce/2025/10/msg00008.html
- cisa.gov/known-exploited-vulnerabilities-catalog
Timeline
- Published
- Added to CISA's Known Exploited Vulnerabilities catalog
- Remediation due for U.S. federal agencies
- Last updated by the source
- Latest EPSS score
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| CVE-2026-53362 ipv6: account for fraggap on the paged allocation path | High Known exploited | Also affects Kernel |
| CVE-2026-53266 netfilter: bridge: make ebt_snat ARP rewrite writable | High Known exploited | Also affects Kernel |
| CVE-2026-46300 net: skbuff: preserve shared-frag marker during coalescing | High Known exploited | Also affects Kernel |
| CVE-2026-31431 crypto: algif_aead - Revert to operating out-of-place | High Known exploited | Also affects Kernel |
| CVE-2025-39964 crypto: af_alg - Disallow concurrent writes in af_alg_sendmsg | Medium Known exploited | Also affects Kernel |
| CVE-2025-39682 tls: fix handling of zero-length records on the rx_list | Critical Known exploited | Also affects Kernel |
| CVE-2024-53197 ALSA: usb-audio: Fix potential out-of-bound accesses for Extigy and Mbox devices | High Known exploited | Also affects Kernel |
| CVE-2024-53150 ALSA: usb-audio: Fix out of bounds reads when finding clock sources | High Known exploited | Also affects Kernel |
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor