# CVE-2025-38675: xfrm: state: initialize state_ptrs earlier in xfrm_state_find

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2025-08-22T16:04:12.688Z
- Modified: 2026-10-30T13:18:07.203Z
- Weaknesses: CWE-362
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from a16871c7832ea6435abb6e0b58289ae7dcb7e4fc before 6bf2daafc51bcb9272c0fdff2afd38217337d0d3; from e952837f3ddb0ff726d5b582aa1aad9aa38d024d before 463562f9591742be62ddde3b426a0533ed496955; from e952837f3ddb0ff726d5b582aa1aad9aa38d024d before 94d077c331730510d5611b438640a292097341f0; 80610185e9dd2ef7c0a4818a47390a8655b3dc27; b86dc510308d7a8955f3f47a4fea4bef887653e4; dd4c2a174994238d55ab54da2545543d36f4e0d0; from 6.12.13 before 6.12.41; from 6.1.191 before 6.2; from 6.6.120 before 6.7; from 6.13.2 before 6.14; 6.14 (not affected: before 6.14; from 6.12.41 up to 6.12.*; from 6.15.9 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 6.12.13 before 6.12.41; from 6.13.2 before 6.15.9; 6.16

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

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

## Sources

- CVE List: [CVE-2025-38675](https://www.cve.org/CVERecord?id=CVE-2025-38675), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2025-38675](https://nvd.nist.gov/vuln/detail/CVE-2025-38675), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2025-38675 · Whole record: https://cve.day/CVE-2025-38675.json · Rebuilt by cve.day 2026-11-25T22:59:03.558Z
