Quick answers
- Is CVE-2025-38704 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2025-38704 being exploited in the wild.
- How severe is CVE-2025-38704?
- High severity, with a CVSS score of 7.8, published 4 September 2025.
- Which products and versions are affected?
- Linux Kernel versions prior to 6.1.x, 6.6.x, 6.10.x, 6.11.x; Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP V3.1.5, V3.1.6; Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP V3.1.5, V3.1.6; Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP V3.1.5, V3.1.6.
- Is there a fix for CVE-2025-38704?
- A patch was published on 2025-05-07: Original patch authored by Zqiang Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2025-38704 attacked?
- It is attacked with local access, in an operating system.
- Am I affected by CVE-2025-38704?
- Check whether you run Linux Kernel, Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP, Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
The vulnerability exists in the RCU NOCB (no-callback) subsystem of the Linux kernel, specifically within the `rcu_nocb_rdp_offload` function in `kernel/rcu/tree_nocb.h`. During CPU online preparation, if the creation of RCU offload kthreads (`rcuop`) fails and the CPU is subsequently de-offloaded, the `rdp->nocb_cb_kthread` pointer may remain unassigned or invalid while other related pointers remain valid. A subsequent re-offload operation can bypass safety checks and trigger `kthread_unpark()` on the invalid pointer. The fix involves updating the safety check to use `rdp->nocb_gp_kthread` instead of the potentially inconsistent `rdp_gp->nocb_gp_kthread`. This is a local vulnerability requiring the ability to trigger CPU hotplug or RCU offload events.
Affected products
- Linux Linux Kernel versions prior to 6.1.x, 6.6.x, 6.10.x, 6.11.x
- Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP V3.1.5, V3.1.6
- Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP V3.1.5, V3.1.6
- Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP V3.1.5, V3.1.6
Timeline
- 2025-09-04: advisory: Initial NVD publication date
- 2025-05-07: patched: Original patch authored by Zqiang
References
- https://git.kernel.org/stable/c/1bba3900ca18bdae28d1b9fa10f16a8f8cb2ada1
- https://git.kernel.org/stable/c/1c951683a720b17c9ecaad1932bc95b29044611f
- https://git.kernel.org/stable/c/3da45ec1e485a1a5ad31fe9ddd467c7ee5ae4ef9
- https://git.kernel.org/stable/c/9b5ec8e6b31755288a07b3abeeab8cd38e9d3c9d
- https://git.kernel.org/stable/c/b097ae798298885695c339d390b48b4e39619fa7
- https://git.kernel.org/stable/c/cce3d027227c69e85896af9fbc6fa9af5c68f067
- https://cert-portal.siemens.com/productcert/html/ssa-019113.html