PatchSiren

PatchSiren cyber security CVE debrief

CVE-2024-36940 Siemens CVE debrief

A double-free vulnerability exists in the Linux kernel's pinctrl subsystem. The `pctldev` structure is allocated via `devm_pinctrl_register_and_init()` as a managed resource, meaning it is automatically freed by `devm_pinctrl_dev_release()`. However, `pinctrl_enable()` incorrectly frees this same structure, causing a double-free condition. This flaw can lead to kernel memory corruption and system instability. The vulnerability was resolved by removing the erroneous free operation in `pinctrl_enable()`.

Vendor
Siemens
Product
RUGGEDCOM RST2428P (6GK6242-6PA00)
CVSS
MEDIUM 5.5
CISA KEV
Not listed in stored evidence
Original CVE published
2025-08-12
Original CVE updated
2026-02-25
Advisory published
2025-08-12
Advisory updated
2026-02-25

Who should care

Organizations operating Siemens industrial networking infrastructure, particularly those deploying SCALANCE XC/XR series switches or RUGGEDCOM RST2428P devices in critical infrastructure environments. System administrators responsible for maintaining firmware versions and security posture of OT/ICS networks should prioritize this update.

Technical summary

The vulnerability stems from improper resource management in the Linux kernel's pin control (pinctrl) subsystem. The `pctldev` structure is allocated as a device-managed resource using `devm_pinctrl_register_and_init()`, which registers a release callback (`devm_pinctrl_dev_release()`) to automatically free the structure when the device is unbound. However, `pinctrl_enable()` contained an explicit `kfree()` call on this same structure, resulting in a double-free when the device is later released. The `devm_pinctrl_dev_release()` function also handles freeing of `pindescs` and mutex destruction, meaning the erroneous free in `pinctrl_enable()` could occur while these dependent resources are still in use, potentially causing use-after-free conditions. The fix removes the incorrect free operation, allowing proper managed resource cleanup.

Defensive priority

medium

Recommended defensive actions

  • Apply vendor-provided firmware updates to version 3.1 or later for affected SCALANCE and RUGGEDCOM devices
  • Review device inventory to identify systems running SINEC OS versions prior to 3.1
  • Implement network segmentation for industrial control systems to limit local access
  • Monitor for anomalous system behavior or unexpected reboots on affected devices
  • Follow CISA ICS recommended practices for defense-in-depth strategies

Evidence notes

The vulnerability description is sourced from CISA CSAF advisory ICSA-25-226-15, which references Siemens ProductCERT advisory SSA-613116. The issue affects Siemens industrial networking products running SINEC OS, specifically the RUGGEDCOM RST2428P and SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family devices. The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) indicates a local attack vector with low attack complexity, requiring low privileges and resulting in high availability impact.

Sources and references

Verified primary and authoritative sources

  • CVE-2024-36940 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2024-36940

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2024-36940 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2024-36940

    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/2025/icsa-25-226-15.json

    cisa_csaf

  • Source reference

    Unverified legacy reference

    URL: https://cert-portal.siemens.com/productcert/csaf/ssa-613116.json

    Reference

  • Source reference

    Unverified legacy reference

    URL: https://cert-portal.siemens.com/productcert/html/ssa-613116.html

    Reference

  • Source reference

    Unverified legacy reference

    URL: https://www.cisa.gov/news-events/ics-advisories/icsa-25-226-15

    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.