CVE-2025-40253
s390/ctcm: Fix double-kfree
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 467ddbbe7e749d558f13e640f50f546149c930b3, < 06f1dd1de0d33dbfbd2e1fc9fc57d8895f730de2; >= 4d3c6d741816539b57fa1110c3f765a8c176d7b4, < 6bf8ccaabce8cebb6cb1f255c93d0acdfe95c17a; >= 2bd57101c3ecf3f8c0da1d26c2b6ad511adc6d50, < 7616e2eee679746d526c7f5befd4eedb995935b5; >= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a, < 43096dab8cc60fc39133205fd149a54d3acebea8; >= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a, < 3b177b2ded563df16f6d5920671ffcfe5915d472; >= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a, < b9dbfb1b5699f9f1e4991f96741bdf9047147589; >= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a, < 7ff76f8dc6b550f8d16487bf3cebc278be720b5c; >= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a, < da02a1824884d6c84c5e5b5ac373b0c9e3288ec2; 36933de59f67029e5739a98393891f9b94f27e0f; d886b4292a1c5b4facdb2dfdc31f0fecc71df898; …
- Anyone running Linux 5.18
Vulnerability facts
- Affected
- Linux >= 467ddbbe7e749d558f13e640f50f546149c930b3, < 06f1dd1de0d33dbfbd2e1fc9fc57d8895f730de2; >= 4d3c6d741816539b57fa1110c3f765a8c176d7b4, < 6bf8ccaabce8cebb6cb1f255c93d0acdfe95c17a; >= 2bd57101c3ecf3f8c0da1d26c2b6ad511adc6d50, < 7616e2eee679746d526c7f5befd4eedb995935b5; >= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a, < 43096dab8cc60fc39133205fd149a54d3acebea8; >= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a, < 3b177b2ded563df16f6d5920671ffcfe5915d472; >= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a, < b9dbfb1b5699f9f1e4991f96741bdf9047147589; >= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a, < 7ff76f8dc6b550f8d16487bf3cebc278be720b5c; >= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a, < da02a1824884d6c84c5e5b5ac373b0c9e3288ec2; 36933de59f67029e5739a98393891f9b94f27e0f; d886b4292a1c5b4facdb2dfdc31f0fecc71df898; …; Linux 5.18
- Fixed in
- Linux 06f1dd1de0d33dbfbd2e1fc9fc57d8895f730de2, Linux 6bf8ccaabce8cebb6cb1f255c93d0acdfe95c17a, Linux 7616e2eee679746d526c7f5befd4eedb995935b5, Linux 43096dab8cc60fc39133205fd149a54d3acebea8, Linux 3b177b2ded563df16f6d5920671ffcfe5915d472, Linux 7ff76f8dc6b550f8d16487bf3cebc278be720b5c
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 8.8 (v3.1, CNA)CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Adjacent network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.47% chance of exploitation in 30 days (percentile 33, 2026-11-26)
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 467ddbbe7e749d558f13e640f50f546149c930b3, < 06f1dd1de0d33dbfbd2e1fc9fc57d8895f730de2; >= 4d3c6d741816539b57fa1110c3f765a8c176d7b4, < 6bf8ccaabce8cebb6cb1f255c93d0acdfe95c17a; >= 2bd57101c3ecf3f8c0da1d26c2b6ad511adc6d50, < 7616e2eee679746d526c7f5befd4eedb995935b5; >= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a, < 43096dab8cc60fc39133205fd149a54d3acebea8; >= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a, < 3b177b2ded563df16f6d5920671ffcfe5915d472; >= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a, < b9dbfb1b5699f9f1e4991f96741bdf9047147589; >= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a, < 7ff76f8dc6b550f8d16487bf3cebc278be720b5c; >= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a, < da02a1824884d6c84c5e5b5ac373b0c9e3288ec2; 36933de59f67029e5739a98393891f9b94f27e0f; d886b4292a1c5b4facdb2dfdc31f0fecc71df898; … | — | cvelist |
| Linux | 5.18 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-40253. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-40253.md Affected: Linux >= 467ddbbe7e749d558f13e640f50f546149c930b3, < 06f1dd1de0d33dbfbd2e1fc9fc57d8895f730de2; >= 4d3c6d741816539b57fa1110c3f765a8c176d7b4, < 6bf8ccaabce8cebb6cb1f255c93d0acdfe95c17a; >= 2bd57101c3ecf3f8c0da1d26c2b6ad511adc6d50, < 7616e2eee679746d526c7f5befd4eedb995935b5; >= 0c0b20587b9f25a2ad14db7… Fixed in: Linux 06f1dd1de0d33dbfbd2e1fc9fc57d8895f730de2, Linux 6bf8ccaabce8cebb6cb1f255c93d0acdfe95c17a, Linux 7616e2eee679746d526c7f5befd4eedb995935b5, Linux 43096dab8cc60fc39133205fd149a54d3acebea8, Linux 3b177b2ded563df16f6d5920671ffcfe5915d472, Linux 7ff76f8dc6b550f8d16487bf3cebc278be720b5c Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Other
- https://git.kernel.org/stable/c/06f1dd1de0d33dbfbd2e1fc9fc57d8895f730de2
- https://git.kernel.org/stable/c/6bf8ccaabce8cebb6cb1f255c93d0acdfe95c17a
- https://git.kernel.org/stable/c/7616e2eee679746d526c7f5befd4eedb995935b5
- https://git.kernel.org/stable/c/43096dab8cc60fc39133205fd149a54d3acebea8
- https://git.kernel.org/stable/c/3b177b2ded563df16f6d5920671ffcfe5915d472
- https://git.kernel.org/stable/c/b9dbfb1b5699f9f1e4991f96741bdf9047147589
- https://git.kernel.org/stable/c/7ff76f8dc6b550f8d16487bf3cebc278be720b5c
- https://git.kernel.org/stable/c/da02a1824884d6c84c5e5b5ac373b0c9e3288ec2
FAQ
Is CVE-2025-40253 being exploited?
There is no confirmed exploitation: CVE-2025-40253 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.47% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-40253?
High: CVSS 8.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-40253?
Linux >= 467ddbbe7e749d558f13e640f50f546149c930b3, < 06f1dd1de0d33dbfbd2e1fc9fc57d8895f730de2; >= 4d3c6d741816539b57fa1110c3f765a8c176d7b4, < 6bf8ccaabce8cebb6cb1f255c93d0acdfe95c17a; >= 2bd57101c3ecf3f8c0da1d26c2b6ad511adc6d50, < 7616e2eee679746d526c7f5befd4eedb995935b5; >= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a, < 43096dab8cc60fc39133205fd149a54d3acebea8; >= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a, < 3b177b2ded563df16f6d5920671ffcfe5915d472; >= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a, < b9dbfb1b5699f9f1e4991f96741bdf9047147589; >= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a, < 7ff76f8dc6b550f8d16487bf3cebc278be720b5c; >= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a, < da02a1824884d6c84c5e5b5ac373b0c9e3288ec2; 36933de59f67029e5739a98393891f9b94f27e0f; d886b4292a1c5b4facdb2dfdc31f0fecc71df898; …; Linux 5.18.
Is there a fix for CVE-2025-40253?
Yes. Fixed in Linux 06f1dd1de0d33dbfbd2e1fc9fc57d8895f730de2, Linux 6bf8ccaabce8cebb6cb1f255c93d0acdfe95c17a, Linux 7616e2eee679746d526c7f5befd4eedb995935b5, Linux 43096dab8cc60fc39133205fd149a54d3acebea8, Linux 3b177b2ded563df16f6d5920671ffcfe5915d472, Linux 7ff76f8dc6b550f8d16487bf3cebc278be720b5c. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2025-40253?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.