VDB

CVE-2025-38675

CVE-2025-38675 PUBLISHED CVSS 7.8 HIGH

xfrm: state: initialize state_ptrs earlier in xfrm_state_find

Reported by linux · Published August 22, 2025

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.

EPSS 0.13% · 2.7th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-livepatch-6.12.46-66.121Amazon Linux1:1.0-0.amzn2023
python3-perf6.12Amazon Linux1:6.12.46-66.121.amzn2023
linux_kernellinux6.15.9, 6.12.41
LinuxLinux6.14

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score
0.13%
2.7th percentile

Affected products

VendorProductVersions
LinuxLinuxa16871c7832ea6435abb6e0b58289ae7dcb7e4fc, e952837f3ddb0ff726d5b582aa1aad9aa38d024d, e952837f3ddb0ff726d5b582aa1aad9aa38d024d
LinuxLinux6.14, 0, 6.12.41
amazon:2023kernel-livepatch-6.12.46-66.1210
amazon:2023python3-perf6.120
LinuxLinux6.15.9, 6.12.41, *
amazon:2023kernel6.12-libbpf-devel0
amazon:2023kernel6.12-tools0
amazon:2023kernel6.12-libbpf-static0
amazon:2023perf6.120
amazon:2023kernel6.12-devel0
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel6.120
linuxlinux_kernel6.1.191, 6.14, 6.14
amazon:2023kernel6.12-headers0
amazon:2023kernel6.12-libbpf0
amazon:2023kernel6.12-modules-extra-common0
amazon:2023bpftool6.120

Timeline

  • Aug 22, 2025 Coalition ESS Score (8 in total, the first dated here)
  • Aug 22, 2025 CVE Published
  • Aug 23, 2025 EPSS Score (30 in total, the first dated here)
  • Dec 15, 2025 Security Advisory (222 in total, the first dated here)
  • Dec 18, 2025 PoC Published (2 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (174 in total, the first dated here)
  • Oct 12, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-38675
vulnetix vdb fixes CVE-2025-38675

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-38675/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›