Skip to main content
Mallory
HighExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2025-38352: Local Privilege Escalation in Linux Kernel POSIX CPU Timer Handling

Published Jul 22, 2025 · Updated 9 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.8High · v3.1
EPSS0.67%47th percentile
CISA KEVYesAdded Sep 4, 2025
In the wildActivePer CISA KEV
Vendors
Debian ProjectLinux
IdentifiersCVE-2025-38352CWE-362

CVE-2025-38352 is a race condition in Linux kernel POSIX CPU timer handling between handle_posix_cpu_timers() and posix_cpu_timer_del(). An exiting, non-autoreaping task that has passed exit_notify() can invoke timer handling from interrupt context and then be reaped by its parent or debugger immediately after unlock_task_sighand(). Concurrent timer deletion may fail to detect that the timer is firing because cpu_timer_task_rcu() or lock_task_sighand() fails, potentially resulting in use-after-free. A local attacker can exploit the flaw to escalate privileges or crash the system. The vulnerability was introduced in Linux 2.6.36. The fix adds a tsk->exit_state check to run_posix_cpu_timers(). Kernels built with CONFIG_POSIX_CPU_TIMERS_TASK_WORK=y avoid this specific race because exit_task_work() precedes exit_notify().

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can cause local privilege escalation or a kernel crash and denial of service. Elevated privileges can compromise system confidentiality and integrity, including access to protected data and unauthorized modification of system resources. Targeted exploitation has been reported on Android, where malicious applications have used the vulnerability to expand their permissions. Affected HP Workpath devices also have a vendor-documented denial-of-service impact.

Mitigation

If you can’t patch tonight, do this now.

No general runtime workaround is established; Red Hat reports no mitigation meeting its product-security criteria. Until patched, restrict untrusted local code execution and installation of untrusted applications to reduce exposure. CONFIG_POSIX_CPU_TIMERS_TASK_WORK=y prevents the specific vulnerable ordering, but it is a kernel build configuration rather than a runtime toggle. On affected HP printers, disable the Workpath Platform through the Embedded Web Server or a fleet-management tool until updated firmware is installed.

Remediation

Patch, then assume compromise.

Install the latest vendor-supported kernel or device update containing the exit-state check in run_posix_cpu_timers(), and reboot as required to activate it. Upstream fixed releases include 5.4.295, 5.10.239, 5.15.186, 6.1.142, 6.6.94, 6.12.34, 6.15.3, and 6.16-rc2; use a current supported release rather than cherry-picking the individual fix. Distribution kernels may contain backported fixes under different version numbers. For Google Container-Optimized OS, update csql-kernel-6_1 and lakitu-kernel-6_1 packages to 18244.448.6 or later. For Android, install vendor updates providing security patch level 2025-09-05 or later. For affected HP Workpath devices, install the exact model-specific FS 5.10.0.7 firmware build or a later supported release.

Public exploits

Exploits

7 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.

View more in app →
chronomalyRepository contains a standalone local privilege-escalation exploit in C (exploit.c ~64KB) plus minimal build/run scaffolding (Makefile, qemu.sh) and a marketing-style README. The exploit targets a claimed CVE-2025-38352 affecting Linux/Android kernels 5.10.x. Core exploit capabilities (from code structure/constants and visible logic): - Implements a race-condition/UAF style kernel exploit using POSIX timers and signal delivery internals. It uses multiple threads, barriers, and many timers (NUM_TIMERS) to stall kernel timer handling (comment references stalling handle_posix_cpu_timers()) to widen the race window. - Heavy heap grooming and cross-cache reallocation: constants and comments reference sigqueue_cachep slab geometry (objects per slab, cpu_partial, slab_count, object size) and a two-phase cross-cache timer allocation strategy (cross_cache_timers[][]) to influence kernel heap placement. - Signal queue and signalfd manipulation: duplicates many signalfds (SFD_DUP_COUNT) for SIGUSR1/SIGUSR2 to increase race window and later detect UAF conditions; includes a helper to drain signalfd. - Synchronization and orchestration via parent/child processes and pipes (exploit_child_to_parent / exploit_parent_to_child), with retry logic that adjusts syscall busy-loop timing (syscall_loop_times) to tune CPU usage and improve race reliability. - Second-stage privilege escalation via credential spraying: defines NUM_CRED_PROCS and hardcoded struct cred offsets (euid/egid) suggesting it attempts to overlap a freed object with struct cred and overwrite credentials to become root. Repository structure/purpose: - exploit.c: main exploit implementation (local kernel privesc). Contains timing calibration knobs (PARENT_SETTIME_DELAY_US, CPU_USAGE_THRESHOLD), race retry loop, timer creation/deletion, signalfd/epoll/poll usage, and heap-spray/cross-cache constants for sigqueue/cred. - Makefile: builds a statically linked binary named 'exploit' (gcc -static exploit.c). - qemu.sh: launches a local x86_64 QEMU VM with KVM, 4 vCPUs, 3GB RAM, user-mode networking, and KGDB options; intended as a reproduction harness with provided bzImage/initramfs.tgz paths. - README.md: claims Android kernel exploit for CVE-2025-38352 and points to GitHub releases; does not document technical steps beyond generic instructions. No hardcoded C2, IPs, or remote network targets are present in the exploit code shown; the only network-relevant artifact is QEMU user-mode networking configuration in qemu.sh and the GitHub releases URL in the README.Soikoth3010 · Disclosed Dec 16, 2024 · c · makefile · localOperationalchronomalyThis repository contains a local privilege escalation exploit for CVE-2025-38352, targeting the Linux kernel v5.10.x (tested on v5.10.157). The main exploit logic is implemented in 'exploit.c', a large C file that orchestrates a complex race condition and use-after-free (UAF) in the kernel's POSIX CPU timers subsystem. The exploit manipulates kernel memory to overwrite credential structures, ultimately granting root privileges to the attacker. The repository also includes a 'Makefile' for building the exploit statically, a 'qemu.sh' script for launching a QEMU virtual machine with the appropriate kernel and initramfs, and a detailed 'README.md' with build instructions, kernel configuration requirements, and tuning parameters for the exploit. The attack vector is local, requiring the attacker to execute code on the target system. No remote endpoints are involved; the only fingerprintable endpoints are the file paths used for the QEMU environment. The exploit is operational and requires specific kernel configuration to succeed.farazsth98 · Disclosed Jan 3, 2026 · c · bash · localOperationalchronomaly-webosRepository is a small local privilege-escalation exploit project targeting LG webOS Smart TVs vulnerable to CVE-2025-38352, a Linux kernel POSIX CPU timer race/use-after-free. The provided snapshot contains 6 files: documentation-heavy README and vulnerability report, a Makefile that builds a static binary from getroot.c for x86_64/ARM/ARM64, and a Bash deployment helper for webOS. Notably, the actual exploit source file getroot.c is referenced by the Makefile but is absent from the provided content, so the exploit logic is inferred from the documentation and deployment script. Exploit purpose: obtain root from the unprivileged 'prisoner' account on vulnerable ARM64 LG TVs, then convert that into persistent root. The documented chain is: trigger POSIX CPU timer UAF on struct sigqueue; reclaim freed object via pipe-buffer cross-cache; use overwritten list_head pointers so list_del_init() performs an arbitrary write into task_struct->cred; point cred to a fake credential structure with zeroed uid/gid fields; then use modprobe_path overwrite (/proc/sys/kernel/modprobe -> /tmp/pwn) and socket(44, SOCK_STREAM, 0) to execute a payload with full valid root credentials. Persistence is achieved by installing/elevating Homebrew Channel, after which SSH is available on port 22 after reboot. Capabilities described in the docs are advanced and operational rather than a simple PoC: deterministic arbitrary write, non-destructive pipe reads via tee(), second cross-cache for deterministic fake cred placement, keeping SIGUSR2 pending as final write trigger, and post-exploitation persistence workflow. The deployment script automates cross-compilation, SSH connectivity checks, binary upload to /tmp/exploit-arm64 over Developer Mode SSH on port 9922, permission setting, and optional upload of a Homebrew Channel IPK to /tmp/hbchannel.ipk. Attack surface is local, not remote: the attacker needs valid Developer Mode SSH access and an SSH key. The repository is not part of a known exploit framework. Because the actual exploit source is missing from the snapshot, file analysis shows only Bash/Makefile/Markdown, but the repository clearly intends to build and deploy a native exploit binary. Overall, this is a credible operational local kernel LPE package with persistence tooling, not a detection script or fake exploit.AnalyticETH · Disclosed May 30, 2026 · makefile · bash · local · fileOperationalpoc-CVE-2025-38352This repository provides a proof-of-concept (PoC) exploit for CVE-2025-38352, a race condition vulnerability in the Linux kernel's POSIX CPU timers implementation. The repository contains four files: a Makefile for building the PoC, a README.md with background and usage instructions, mdelay_patch.diff (a patch to the kernel source to make the race condition easier to trigger), and poc.c (the main exploit code). The PoC is written in C and demonstrates the race by orchestrating parent/child/thread interactions and manipulating POSIX CPU timers. The exploit is local and requires a specific kernel configuration (Linux 6.12.33 with CONFIG_POSIX_CPU_TIMERS_TASK_WORK disabled). The patch file is optional but increases the reliability of the exploit by extending the race window. The PoC does not provide a direct privilege escalation or shell, but is intended to demonstrate and analyze the vulnerability.farazsth98 · Disclosed Dec 21, 2025 · c · makefile · localPoCpoc-CVE-2025-38352This repository provides a proof-of-concept (PoC) exploit for CVE-2025-38352, a use-after-free vulnerability in the Linux kernel's POSIX CPU timers implementation. The main exploit code is in 'poc.c', which orchestrates a complex race condition using multiple threads, POSIX timers, and signal handling to trigger the bug. The exploit is local-only and requires the ability to compile and run C code on a vulnerable Linux system. The repository also includes a profiling helper ('profile_handle_posix_cpu_timers.c'), a kernel patch for profiling ('profiler_patch.diff'), example logs showing successful and unsuccessful exploitation, a Makefile for building the PoC, and a README with detailed instructions. The exploit demonstrates the vulnerability by causing kernel warnings or KASAN errors, but does not provide privilege escalation or a shell. It is intended for research and demonstration purposes only.Crime2 · Disclosed Jan 8, 2026 · c · makefile · localPoCElysium-Vanguard-Sentinel-AuditRepository purpose: a local Android KGSL driver PoC and accompanying write-up/logs for an alleged KGSL out-of-bounds read/write vulnerability (CVE-2025-38352) affecting Honor Magic V2 / Snapdragon 8 Gen 2 devices, with emphasis on demonstrating kernel integrity auditing and noting EL2 hypervisor (RKP/MagicGuard) interference. Structure: - BOUNTY_REPORT.md: Bug-bounty style report describing the claimed root cause (alignment bypass via integer overflow/type confusion in GPUOBJ_ALLOC/IMPORT), exploitation chain (dangling reference, slab reclaim to hijack pipe_buffer/msg_msg), and an info-leak via DEVICE_GETPROPERTY to bypass KASLR. - src/kread_dump.c: Main PoC tool. Opens /dev/kgsl-3d0, calls IOCTL_KGSL_DEVICE_GETPROPERTY to obtain a buffer and scans for kernel-looking pointers (0xFFFFFF..), then derives a kernel base by masking low bits. Calls IOCTL_KGSL_GPUOBJ_ALLOC as a placeholder for the mutation/OOB trigger. The ‘read’ portion is not a real kernel read primitive in this code; it prints a hardcoded 64-bit value corresponding to the ASCII signature for "kthreadd" and reports success. - POC_EXPLOIT.py: Simple automation scaffold (mostly commented out) intended to cross-compile, adb push to /data/local/tmp/, chmod, and execute the PoC binary as shell (UID 2000). - logs/audit_v7.11.log: Example output claiming stages including OOB read/write and EL2 intervention (pointer nullification to 0x1). - README.md: Positions the project as a defensive diagnostic/audit suite; references an APK/binaries under /bin, but those are not present in the provided file list. Exploit capabilities (as implemented vs. claimed): - Implemented: local kernel pointer disclosure/KASLR base derivation via KGSL DEVICE_GETPROPERTY response parsing; basic KGSL ioctl interaction; accepts an optional target address argument for the audit printout. - Claimed in docs/logs: full OOB read/write primitives via KGSL GPU object allocation/import alignment bypass and subsequent kernel object hijacking; EL2 hypervisor blocks sensitive writes. The provided C code does not implement the actual OOB read/write or object-hijack steps—those are described but not present (and a comment references missing code like exploit_bridge.cpp).jordelmir · Disclosed Feb 24, 2026 · python · c · local (Android userspace -> kernel via KGSL /dev node and ioctls)PoCCVE-2025-38352-PoCThis three-file repository is a reproducible local denial-of-service proof of concept for CVE-2025-38352 in Linux/Android Common Kernel POSIX CPU timers. poc.c is an ARM64-oriented C trigger that creates a shared-memory parent/child setup: the parent waits on a non-leader timer thread with wait4(2), while the child invokes timer_delete(2). The timer thread uses PTRACE_TRACEME to avoid automatic reaping, creates a CLOCK_THREAD_CPUTIME_ID timer that targets its own TID with SIGEV_THREAD_ID/SIGWINCH, publishes its TID and timer ID through shared anonymous mmap memory, and exits with SYS_exit. CPU affinity pins the parent, deletion process, and timer thread to separate cores to maximize concurrency. poc_gdb_script.py is a Python script executed inside GDB, not a standalone network client. It uses QEMU's remote GDB stub and AArch64 instruction patching to force a deterministic interleaving: it sets breakpoints in exit_notify, kernel_wait4, __arm64_sys_timer_delete, and handle_posix_cpu_timers; replaces current instructions with the AArch64 self-branch opcode 0x14000000 to park vCPUs; restores the instructions once all paths rendezvous; then scheduler-locks and advances the interrupt handler, reaper, and timer-deletion paths in sequence. This causes release_posix_timer() to free a timer while the CPU timer handler can subsequently access it. The README provides kernel build, configuration, QEMU, and GDB instructions, including disabling POSIX CPU timer task_work and reverting the relevant mitigation. No remote target interaction or post-exploitation payload is present.longwasu · Disclosed Sep 13, 2026 · c · python · localPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Debian ProjectDebian Linuxoperating_system
LinuxLinux Kerneloperating_system
FAQ

Frequently asked questions

Is CVE-2025-38352 exploited in the wild?
Yes. As of Nov 19, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Sep 4, 2025.
Is there a public exploit for CVE-2025-38352?
Yes. Mallory tracks 7 public exploits or proofs of concept for CVE-2025-38352, the earliest disclosed Dec 16, 2024.
Is there a patch for CVE-2025-38352?
Install the latest vendor-supported kernel or device update containing the exit-state check in run_posix_cpu_timers(), and reboot as required to activate it. Upstream fixed releases include 5.4.295, 5.10.239, 5.15.186, 6.1.142, 6.6.94, 6.12.34, 6.15.3, and 6.16-rc2; use a current supported release rather than cherry-picking the individual fix.
What products are affected by CVE-2025-38352?
Linux Kernel and Debian Project Debian Linux.
How severe is CVE-2025-38352?
CVE-2025-38352 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.67% (47th percentile) as of Nov 19, 2026.
Activity feed

Recent activity

172 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
tenable nessus pluginsNews · Oct 1, 2026Rocky Linux 9 [CIQ] Security Update: kernel / kernel-64k / ker... | Tenable®A Linux kernel POSIX CPU timers race condition between handle_posix_cpu_timers() and posix_cpu_timer_del().Read more ↗tenable nessus pluginsNews · Oct 1, 2026Rocky Linux 10.0 [CIQ] Security Update: kernel / kernel-64k / ... | Tenable®A Linux kernel race condition involving POSIX CPU timer handling and deletion, affecting Rocky Linux 10.0 packages covered by CIQ advisory crlsa-2025_15662.Read more ↗tenable cloud security pluginsNews · Oct 1, 2026Google: sys-kernel/csql-kernel-6_1, sys-kernel/lakitu-kernel-6... | Tenable®A Linux kernel race condition in POSIX CPU timer handling affecting exiting non-autoreaping tasks. A concurrent timer deletion can fail to recognize an active firing timer after the task is reaped, potentially affecting confidentiality, integrity, and availability.Read more ↗support hpNews · Sep 29, 2026Certain HP LaserJet Enterprise and HP LaserJet Managed Printers - Potential Denial of Service | HP® SupportA race-condition vulnerability in the Android kernel used by HP Workpath Applications potentially affects numerous HP printers and document-processing devices. HP identifies denial of service and buffer overflow as potential impacts and assigns a Medium severity rating with a CVSS 4.0 score of 4.6. Model-specific firmware updates to FS 5.10.0.7 or later resolve the vulnerability. Disabling the Workpath Platform through EWS or a Fleet Management Tool is the documented mitigation.Read more ↗
+45 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signatures2YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity98Community discussion across Reddit, Mastodon, and other social sources.