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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.47% (percentile 33, 2026-11-26)
- **Published:** 2025-12-04T16:08:15.340Z
- **Modified:** 2026-10-19T19:10:00.130Z

## 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

## 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

- Linux: \>= 467ddbbe7e749d558f13e640f50f546149c930b3, \< 06f1dd1de0d33dbfbd2e1fc9fc57d8895f730de2; \>= 4d3c6d741816539b57fa1110c3f765a8c176d7b4, \< 6bf8ccaabce8cebb6cb1f255c93d0acdfe95c17a; \>= 2bd57101c3ecf3f8c0da1d26c2b6ad511adc6d50, \< 7616e2eee679746d526c7f5befd4eedb995935b5; \>= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a, \< 43096dab8cc60fc39133205fd149a54d3acebea8; \>= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a, \< 3b177b2ded563df16f6d5920671ffcfe5915d472; \>= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a, \< b9dbfb1b5699f9f1e4991f96741bdf9047147589; \>= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a, \< 7ff76f8dc6b550f8d16487bf3cebc278be720b5c; \>= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a, \< da02a1824884d6c84c5e5b5ac373b0c9e3288ec2; 36933de59f67029e5739a98393891f9b94f27e0f; d886b4292a1c5b4facdb2dfdc31f0fecc71df898; … (cvelist)
- Linux: 5.18 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- other: <https://git.kernel.org/stable/c/06f1dd1de0d33dbfbd2e1fc9fc57d8895f730de2>
- other: <https://git.kernel.org/stable/c/6bf8ccaabce8cebb6cb1f255c93d0acdfe95c17a>
- other: <https://git.kernel.org/stable/c/7616e2eee679746d526c7f5befd4eedb995935b5>
- other: <https://git.kernel.org/stable/c/43096dab8cc60fc39133205fd149a54d3acebea8>
- other: <https://git.kernel.org/stable/c/3b177b2ded563df16f6d5920671ffcfe5915d472>
- other: <https://git.kernel.org/stable/c/b9dbfb1b5699f9f1e4991f96741bdf9047147589>
- other: <https://git.kernel.org/stable/c/7ff76f8dc6b550f8d16487bf3cebc278be720b5c>
- other: <https://git.kernel.org/stable/c/da02a1824884d6c84c5e5b5ac373b0c9e3288ec2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40253>

HTML: <https://flawdb.com/CVE-2025-40253> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40253>
