CVE-2025-38675
xfrm: state: initialize state_ptrs earlier in xfrm_state_find
Mitigation
- Upgrade Linux to 6.14 or later.
Who should check
- Anyone running Linux >= a16871c7832ea6435abb6e0b58289ae7dcb7e4fc, < 6bf2daafc51bcb9272c0fdff2afd38217337d0d3; >= e952837f3ddb0ff726d5b582aa1aad9aa38d024d, < 463562f9591742be62ddde3b426a0533ed496955; >= e952837f3ddb0ff726d5b582aa1aad9aa38d024d, < 94d077c331730510d5611b438640a292097341f0; 80610185e9dd2ef7c0a4818a47390a8655b3dc27; b86dc510308d7a8955f3f47a4fea4bef887653e4; dd4c2a174994238d55ab54da2545543d36f4e0d0; >= 6.12.13, < 6.12.41; >= 6.1.191, < 6.2; >= 6.6.120, < 6.7; >= 6.13.2, < 6.14
- Anyone running Linux 6.14
Vulnerability facts
- Affected
- Linux >= a16871c7832ea6435abb6e0b58289ae7dcb7e4fc, < 6bf2daafc51bcb9272c0fdff2afd38217337d0d3; >= e952837f3ddb0ff726d5b582aa1aad9aa38d024d, < 463562f9591742be62ddde3b426a0533ed496955; >= e952837f3ddb0ff726d5b582aa1aad9aa38d024d, < 94d077c331730510d5611b438640a292097341f0; 80610185e9dd2ef7c0a4818a47390a8655b3dc27; b86dc510308d7a8955f3f47a4fea4bef887653e4; dd4c2a174994238d55ab54da2545543d36f4e0d0; >= 6.12.13, < 6.12.41; >= 6.1.191, < 6.2; >= 6.6.120, < 6.7; >= 6.13.2, < 6.14; Linux 6.14
- Fixed in
- Linux 6bf2daafc51bcb9272c0fdff2afd38217337d0d3, Linux 463562f9591742be62ddde3b426a0533ed496955, Linux 94d077c331730510d5611b438640a292097341f0, Linux 6.12.41, Linux 6.2, Linux 6.7, Linux 6.14
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.20% chance of exploitation in 30 days (percentile 6, 2026-11-26)
- CWE
- CWE-362
- Modified
Description
In 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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= a16871c7832ea6435abb6e0b58289ae7dcb7e4fc, < 6bf2daafc51bcb9272c0fdff2afd38217337d0d3; >= e952837f3ddb0ff726d5b582aa1aad9aa38d024d, < 463562f9591742be62ddde3b426a0533ed496955; >= e952837f3ddb0ff726d5b582aa1aad9aa38d024d, < 94d077c331730510d5611b438640a292097341f0; 80610185e9dd2ef7c0a4818a47390a8655b3dc27; b86dc510308d7a8955f3f47a4fea4bef887653e4; dd4c2a174994238d55ab54da2545543d36f4e0d0; >= 6.12.13, < 6.12.41; >= 6.1.191, < 6.2; >= 6.6.120, < 6.7; >= 6.13.2, < 6.14 | — | cvelist |
| Linux | 6.14 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-38675. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-38675.md Affected: Linux >= a16871c7832ea6435abb6e0b58289ae7dcb7e4fc, < 6bf2daafc51bcb9272c0fdff2afd38217337d0d3; >= e952837f3ddb0ff726d5b582aa1aad9aa38d024d, < 463562f9591742be62ddde3b426a0533ed496955; >= e952837f3ddb0ff726d5b582aa1aad9aa38d024d, < 94d077c331730510d5611b438640a292097341f0; 80610185e9dd2ef7c0a4818a47… Fixed in: Linux 6bf2daafc51bcb9272c0fdff2afd38217337d0d3, Linux 463562f9591742be62ddde3b426a0533ed496955, Linux 94d077c331730510d5611b438640a292097341f0, Linux 6.12.41, Linux 6.2, Linux 6.7, Linux 6.14 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2025-38675 being exploited?
There is no confirmed exploitation: CVE-2025-38675 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-38675?
High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-38675?
Linux >= a16871c7832ea6435abb6e0b58289ae7dcb7e4fc, < 6bf2daafc51bcb9272c0fdff2afd38217337d0d3; >= e952837f3ddb0ff726d5b582aa1aad9aa38d024d, < 463562f9591742be62ddde3b426a0533ed496955; >= e952837f3ddb0ff726d5b582aa1aad9aa38d024d, < 94d077c331730510d5611b438640a292097341f0; 80610185e9dd2ef7c0a4818a47390a8655b3dc27; b86dc510308d7a8955f3f47a4fea4bef887653e4; dd4c2a174994238d55ab54da2545543d36f4e0d0; >= 6.12.13, < 6.12.41; >= 6.1.191, < 6.2; >= 6.6.120, < 6.7; >= 6.13.2, < 6.14; Linux 6.14.
Is there a fix for CVE-2025-38675?
Yes. Fixed in Linux 6bf2daafc51bcb9272c0fdff2afd38217337d0d3, Linux 463562f9591742be62ddde3b426a0533ed496955, Linux 94d077c331730510d5611b438640a292097341f0, Linux 6.12.41, Linux 6.2, Linux 6.7, Linux 6.14. Upgrade Linux to 6.14 or later.
How do I check if I'm affected by CVE-2025-38675?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.