CVE-2025-38704
rcu/nocb: Fix possible invalid rdp's->nocb_cb_kthread pointer access
Check your servers for CVE-2025-38704
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-38704 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:
rcu/nocb: Fix possible invalid rdp's->nocb_cb_kthread pointer access
In the preparation stage of CPU online, if the corresponding the rdp's->nocb_cb_kthread does not exist, will be created, there is a situation where the rdp's rcuop kthreads creation fails, and then de-offload this CPU's rdp, does not assign this CPU's rdp->nocb_cb_kthread pointer, but this rdp's->nocb_gp_rdp and rdp's->rdp_gp->nocb_gp_kthread is still valid.
This will cause the subsequent re-offload operation of this offline CPU, which will pass the conditional check and the kthread_unpark() will access invalid rdp's->nocb_cb_kthread pointer.
This commit therefore use rdp's->nocb_gp_kthread instead of rdp_gp's->nocb_gp_kthread for safety check.
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 11.6% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 3a5761dc025da47960755ac64d9fbf1c32e8cd80, before b097ae798298885695c339d390b48b4e39619fa7 affected from 3a5761dc025da47960755ac64d9fbf1c32e8cd80, before 3da45ec1e485a1a5ad31fe9ddd467c7ee5ae4ef9 affected from 3a5761dc025da47960755ac64d9fbf1c32e8cd80, before cce3d027227c69e85896af9fbc6fa9af5c68f067 affected from 3a5761dc025da47960755ac64d9fbf1c32e8cd80, before 1c951683a720b17c9ecaad1932bc95b29044611f affected from 3a5761dc025da47960755ac64d9fbf1c32e8cd80, before 9b5ec8e6b31755288a07b3abeeab8cd38e9d3c9d affected from 3a5761dc025da47960755ac64d9fbf1c32e8cd80, before 1bba3900ca18bdae28d1b9fa10f16a8f8cb2ada1
Other versions: unaffected
|
| Linux |
affected 6.0 unaffected before 6.0 unaffected from 6.1.167 up to and including 6.1.* unaffected from 6.6.130 up to and including 6.6.* unaffected from 6.12.43 up to and including 6.12.* unaffected from 6.15.11 up to and including 6.15.* unaffected from 6.16.2 up to and including 6.16.* unaffected 6.17 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-38704 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38704
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-38704
trivy image --scanners vuln IMAGE | grep CVE-2025-38704
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/b097ae798298885695c339d390b48b4e39619fa7 git.kernel.org
- https://git.kernel.org/stable/c/3da45ec1e485a1a5ad31fe9ddd467c7ee5ae4ef9 git.kernel.org
- https://git.kernel.org/stable/c/cce3d027227c69e85896af9fbc6fa9af5c68f067 git.kernel.org
- https://git.kernel.org/stable/c/1c951683a720b17c9ecaad1932bc95b29044611f git.kernel.org
- https://git.kernel.org/stable/c/9b5ec8e6b31755288a07b3abeeab8cd38e9d3c9d git.kernel.org
- https://git.kernel.org/stable/c/1bba3900ca18bdae28d1b9fa10f16a8f8cb2ada1 git.kernel.org
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-019113.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-457936.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-784472.html cert-portal.siemens.com
Source: the record CVE-2025-38704 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