PatchSiren cyber security CVE debrief
CVE-2025-39866 Siemens CVE debrief
CVE-2025-39866 is a high-severity use-after-free in the Linux kernel writeback path, specifically in __mark_inode_dirty(). The supplied advisory material shows the bug can occur when the inode writeback context is switching and __mark_inode_dirty() races with wb_wakeup_delayed() after the old bdi_writeback has been released. CISA published the advisory on 2026-05-12 and republished it on 2026-05-14. The source corpus maps the issue to a Siemens SIMATIC CN 4100 advisory, but that product mapping is explicitly low-confidence and should be validated before assuming exposure.
- Vendor
- Siemens
- Product
- SIMATIC CN 4100
- CVSS
- HIGH 7.8
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2025-06-10
- Original CVE updated
- 2026-05-14
- Advisory published
- 2025-06-10
- Advisory updated
- 2026-05-14
Who should care
Linux kernel maintainers, platform owners running Siemens SIMATIC CN 4100 deployments covered by SSA-032379/ICSA-26-134-10, and security teams responsible for systems using the affected writeback code path. Because the CVSS vector is local and low-privilege, teams should pay special attention to environments where local users or services can trigger file writes.
Technical summary
The advisory describes a race in fs/writeback: __mark_inode_dirty() can obtain a bdi_writeback that is in the middle of switching. The root cause summary in the source states that inode_switch_wbs_work_fn and inode_do_switch_wbs can release the old wb, after which wb_wakeup_delayed() still accesses that wb object, creating a use-after-free. The described fix is to hold the inode spinlock until wb_wakeup_delayed() has finished, closing the race between wb switching and delayed wakeup handling.
Defensive priority
High. The advisory scores the issue CVSS 3.1 7.8 (HIGH) with local attack vector, low privileges, and high confidentiality, integrity, and availability impact. Prioritize validation and patching for any exposed affected build.
Recommended defensive actions
- If your deployment matches the Siemens advisory, update to V5.0 or later as directed in the remediation guidance.
- Validate whether the affected Siemens SIMATIC CN 4100 image actually includes the vulnerable Linux kernel writeback code path before assuming exposure.
- Apply the vendor-provided fix or firmware update on a maintenance window and confirm the corrected build is running afterward.
- Inventory systems that permit local user or service activity that can trigger filesystem writes, since the CVSS vector is local and low-privilege.
- Monitor for kernel warnings, crashes, or instability around filesystem writeback activity while remediation is being planned.
- Cross-check the advisory documents at the official Siemens and CISA links for any product-specific backports or installation notes.
Evidence notes
The debrief is based only on the supplied CISA CSAF source item and its linked official references. The corpus includes the kernel root-cause summary, the fix summary, the CVSS vector, and the official publication/republication dates. The product mapping in the source is marked low-confidence and needs review, so the debrief avoids claiming exact exposure beyond what the advisory supports. No KEV entry is present in the supplied enrichment data.
Sources and references
Verified primary and authoritative sources
-
CVE-2025-39866 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2025-39866
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2025-39866 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2025-39866
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source item URL
Unverified legacy reference
URL: https://raw.githubusercontent.com/cisagov/CSAF/develop/csaf_files/OT/white/2026/icsa-26-134-10.json
cisa_csaf
-
Source reference
Unverified legacy reference
URL: https://cert-portal.siemens.com/productcert/csaf/ssa-032379.json
Reference
-
Source reference
Unverified legacy reference
URL: https://cert-portal.siemens.com/productcert/html/ssa-032379.html
Reference
-
Source reference
Unverified legacy reference
URL: https://www.cisa.gov/news-events/ics-advisories/icsa-26-134-10
Reference
-
Source reference
Unverified legacy reference
URL: https://www.cisa.gov/news-events/ics-alerts/ics-alert-10-301-01
Reference
-
Source reference
Unverified legacy reference
URL: https://www.cisa.gov/resources-tools/resources/ics-recommended-practices
Reference
-
Source reference
Unverified legacy reference
URL: https://www.cisa.gov/topics/industrial-control-systems
Reference
-
Source reference
Unverified legacy reference
URL: https://www.cisa.gov/sites/default/files/recommended_practices/NCCIC_ICS-CERT_Defense_in_Depth_2016_S508C.pdf
Reference
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.