CVE-2025-38675
xfrm: state: initialize state_ptrs earlier in xfrm_state_find
Check your servers for CVE-2025-38675
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38675 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.14%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 3.60% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from a16871c7832ea6435abb6e0b58289ae7dcb7e4fc, before 6bf2daafc51bcb9272c0fdff2afd38217337d0d3 affected from e952837f3ddb0ff726d5b582aa1aad9aa38d024d, before 463562f9591742be62ddde3b426a0533ed496955 affected from e952837f3ddb0ff726d5b582aa1aad9aa38d024d, before 94d077c331730510d5611b438640a292097341f0 affected 80610185e9dd2ef7c0a4818a47390a8655b3dc27 affected b86dc510308d7a8955f3f47a4fea4bef887653e4 affected dd4c2a174994238d55ab54da2545543d36f4e0d0 affected from 6.12.13, before 6.12.41 affected from 6.1.191, before 6.2 affected from 6.6.120, before 6.7 affected from 6.13.2, before 6.14
Other versions: unaffected
|
| Linux |
affected 6.14 unaffected before 6.14 unaffected from 6.12.41 up to and including 6.12.* unaffected from 6.15.9 up to and including 6.15.* unaffected 6.16 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38675 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38675
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-38675
trivy image --scanners vuln IMAGE | grep CVE-2025-38675
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/6bf2daafc51bcb9272c0fdff2afd38217337d0d3 git.kernel.org
- https://git.kernel.org/stable/c/463562f9591742be62ddde3b426a0533ed496955 git.kernel.org
- https://git.kernel.org/stable/c/94d077c331730510d5611b438640a292097341f0 git.kernel.org
Source: the record CVE-2025-38675 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse