CVE-2025-38675
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-38675 is a race condition vulnerability in the Linux kernel's xfrm (IPsec transform) state management subsystem, specifically within the xfrm_state_find function. During preemption, xfrm_state_look_at may identify a different per-CPU ID and look up states for another CPU; if a state match is found for CPU2 during a lookup initiated on CPU1, execution jumps to the "found" label while bypassing initialization of state_ptrs, leaving those pointers uninitialized when the "acquire" block is entered. The vulnerability was published on August 22, 2025, and affects Linux kernel versions 6.12.13 through 6.12.40, 6.13.2 through 6.15.8, and 6.16 release candidates (rc1–rc7). It carries a CVSS v3.1 base score of 4.7 (Medium) (Feedly).

Technical details

The root cause is classified as CWE-362 (Concurrent Execution using Shared Resource with Improper Synchronization / Race Condition). In xfrm_state_find, the state_ptrs variable is not initialized before the code path that handles preemption-induced CPU ID changes; when a preemption occurs between the CPU ID read and the state cache lookup, the function can jump to the "acquire" block with uninitialized state_ptrs, leading to undefined kernel behavior. The fix initializes state_ptrs immediately after acquiring rcu_read_lock, ensuring the pointers are always valid regardless of which code path is taken. Three patch commits addressing this issue are available on git.kernel.org (Feedly, Kernel Patch 1, Kernel Patch 2).

Impact

Successful exploitation of this vulnerability by a low-privileged local attacker could cause kernel instability or system crashes, resulting in a denial of service. The impact is limited to availability — there is no confidentiality or integrity impact — and the scope is confined to the affected system without lateral movement potential. Systems using IPsec/xfrm with preemption enabled on multi-CPU configurations are most at risk (Feedly).

Mitigation and workarounds

The primary remediation is to update the Linux kernel to a patched version: 6.12.41 or later (for the 6.12.x stable branch) or 6.15.9 or later (for the 6.15.x branch). Three patch commits are available on git.kernel.org: 463562f, 6bf2daa, and 94d077c. As a short-term measure, restricting local user access to systems running xfrm/IPsec and minimizing exposure of affected kernel versions reduces risk until patching is feasible (Feedly).

Community reactions

Coverage of CVE-2025-38675 has been limited to standard vulnerability tracking and aggregation platforms, including VulDB, CIRCL Vulnerability Lookup, and security digest sites such as security.sios.jp and pro-linux.de. No notable researcher commentary, vendor statements beyond the kernel patch commits, or significant social media discussion has been observed (Feedly).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-64181HIGH7.8
  • Linux Kernel logoLinux Kernel
  • linux-azure-4.15
NoYesJul 19, 2026
CVE-2026-64186NONEN/A
  • Linux Kernel logoLinux Kernel
  • libperf
NoYesJul 19, 2026
CVE-2026-64183NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-aws-6.14
NoYesJul 19, 2026
CVE-2026-64182NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-oracle-6.17
NoYesJul 19, 2026
CVE-2026-64180NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-5.4
NoYesJul 19, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management