# CVE-2025-38675: xfrm: state: initialize state\_ptrs earlier in xfrm\_state\_find

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.20% (percentile 6, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2025-08-22T16:04:12.688Z
- **Modified:** 2026-10-30T13:18:07.203Z

## 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

## 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

- 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)

## Mitigation

- Upgrade Linux to 6.14 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- patch: <https://git.kernel.org/stable/c/6bf2daafc51bcb9272c0fdff2afd38217337d0d3>
- patch: <https://git.kernel.org/stable/c/463562f9591742be62ddde3b426a0533ed496955>
- patch: <https://git.kernel.org/stable/c/94d077c331730510d5611b438640a292097341f0>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38675>

HTML: <https://flawdb.com/CVE-2025-38675> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38675>
