What’s Vulnerable › Vulnerabilities

CVE-2025-40253: s390/ctcm: Fix double-kfree

Description

In the Linux kernel, the following vulnerability has been resolved: s390/ctcm: Fix double-kfree The function 'mpc_rcvd_sweep_req(mpcginfo)' is called conditionally from function 'ctcmpc_unpack_skb'. It frees passed mpcginfo. After that a call to function 'kfree' in function 'ctcmpc_unpack_skb' frees it again. Remove 'kfree' call in function 'mpc_rcvd_sweep_req(mpcginfo)'. Bug detected by the clang static analyzer.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 4.10, 4.15, 4.20, 5.10.247. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-40253 or the next vulnerability affects your stack