Junglewise Threat Intelligence

CVE-2025-40253: Linux Kernel double-free in s390 ctcm driver

CVE-2025-40253 · Severity: high · CVSS 8.8 · Published 2025-12-04

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability was identified in the Linux kernel's s390 networking driver (CTCM). This component is responsible for channel-to-channel communications on IBM Z systems. An exploit could lead to a system crash or potentially allow an attacker to execute unauthorized code, impacting the stability and security of the mainframe environment.

Technical details

A double-free vulnerability exists in the s390/ctcm driver within the Linux kernel. The root cause is located in the 'ctcmpc_unpack_skb' function, which conditionally calls 'mpc_rcvd_sweep_req'. Both functions were attempting to free the same 'mpcginfo' structure using 'kfree'. An attacker with adjacent network access could potentially trigger this condition to cause a kernel panic (DoS) or achieve memory corruption. The issue has been resolved by removing the redundant 'kfree' call in 'mpc_rcvd_sweep_req'. Patches are available in various stable kernel branches including 5.4.y, 5.10.y, and 5.15.y.

Affected products

  • Linux Linux Kernel 5.4.195 to 5.4.302, 5.10.117 to 5.10.247, 5.15.41 to 5.15.197

Timeline

  • 2025-12-04: disclosed
  • 2025-12-04: advisory

References

Related threats