Junglewise Threat Intelligence

CVE-2026-31495: Linux Kernel undefined behavior in netfilter ctnetlink

CVE-2026-31495 · Severity: medium · CVSS 5.5 · Published 2026-04-22

Technologies: Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP, Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP, Linux Kernel, Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP. Vendors: Siemens, Linux.

Executive brief

A vulnerability in the Linux kernel's networking subsystem could allow a local user to cause undefined system behavior or a crash. The issue exists in the component responsible for managing network connection states (conntrack), where certain configuration values were not properly restricted. This could lead to a denial-of-service, impacting the availability of affected systems, including certain Siemens industrial controllers that utilize the Linux kernel.

Technical details

A vulnerability in the ctnetlink component of the Linux kernel netfilter subsystem stems from insufficient validation of Netlink attributes. Specifically, CTA_PROTOINFO_TCP_WSCALE_ORIGINAL and REPLY attributes accepted values between 0-255, whereas the TCP protocol maximum is 14. When an out-of-range value is used as a shift count for a u32 variable, it results in undefined behavior. Additionally, CTA_PROTOINFO_TCP_STATE lacked strict range checking at the policy level. An attacker with local access to Netlink sockets could exploit this to cause kernel instability or a denial-of-service. The fix implements NLA_POLICY_MAX and NLA_POLICY_MASK annotations to ensure the Netlink core rejects invalid values before they reach the conntrack logic.

Affected products

  • Linux Linux Kernel All versions prior to the April 2026 patches
  • 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.6

Timeline

  • 2026-03-25: other: Patch authored
  • 2026-04-22: disclosed: CVE published
  • 2026-07-14: advisory: Siemens advisory updated with affected industrial products

References

Related threats