CVE-2025-38675
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-livepatch-6.12.46-66.121 | Amazon Linux | 1:1.0-0.amzn2023 |
| python3-perf6.12 | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
| linux_kernel | linux | 6.15.9, 6.12.41 |
| Linux | Linux | 6.14 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | a16871c7832ea6435abb6e0b58289ae7dcb7e4fc, e952837f3ddb0ff726d5b582aa1aad9aa38d024d, e952837f3ddb0ff726d5b582aa1aad9aa38d024d |
| Linux | Linux | 6.14, 0, 6.12.41 |
| amazon:2023 | kernel-livepatch-6.12.46-66.121 | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| Linux | Linux | 6.15.9, 6.12.41, * |
| amazon:2023 | kernel6.12-libbpf-devel | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel6.12 | 0 |
| linux | linux_kernel | 6.1.191, 6.14, 6.14 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | kernel6.12-libbpf | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | bpftool6.12 | 0 |
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