CVE-2025-38675
MediumIn the Linux kernel, the following vulnerability has been resolved: xfrm: state: initialize state_ptrs earlier in xfrm_state_find In case of preemption, xfrm_state_look_at will find a different pcpu_id and look up states for that other CPU. If we matched a state for CPU2 in the state_cache while the lookup started on CPU1, we will jump to "found", but the "best" state that we got will be ignored and we will enter the "acquire" block. This block uses state_ptrs, which isn't initialized at this point. Let's initialize state_ptrs just after taking rcu_read_lock. This will also prevent a possible misuse in the future, if someone adjusts this function.
CVSS 3.1 score
4.7
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness type
CWE-362CVE-2025-38675 is a Race Condition vulnerability
What is Race Condition?
The product contains a code sequence that can run concurrently with other code, creating unexpected states. Learn more on MITRE CWE
Affected versions
Linux kernel versions
6.12.13,
6.6.120,
6.13.2,
6.14
and later are affected. Fixed in
6.12.41,
6.15.9,
6.16
and their respective stable series.
References
The following references provide additional information about CVE-2025-38675 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
PatchKernel patch commithttps://git.kernel.org/stable/c/463562f9591742be62ddde3b426a0533ed496955
-
PatchKernel patch commithttps://git.kernel.org/stable/c/6bf2daafc51bcb9272c0fdff2afd38217337d0d3
-
PatchKernel patch commithttps://git.kernel.org/stable/c/94d077c331730510d5611b438640a292097341f0
Frequently asked questions
-
What is CVE-2025-38675?
CVE-2025-38675 is a Medium severity Linux kernel vulnerability with a CVSS score of 4.7 out of 10 , classified as a Race Condition flaw (CWE-362) . It affects Linux kernel versions from 6.12.13 onward and has been patched in 6.12.41, 6.15.9 and 6.16. CVE-2025-38675 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2025-38675?
CVE-2025-38675 has a CVSS score of 4.7 out of 10, rated Medium severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H. -
Is there a patch available for CVE-2025-38675?
Yes — CVE-2025-38675 has been patched. Fixed versions include 6.12.41, 6.15.9 and 6.16. If you are running Linux kernel 6.12.13 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2025-38675 actively exploited?
No — CVE-2025-38675 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
-
What is Race Condition (CWE-362)?
The product contains a code sequence that can run concurrently with other code, creating unexpected states. View CWE-362 on MITRE CWE →