---
id: CVE-2025-40253
title: 's390/ctcm: Fix double-kfree'
summary: |-
  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…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cvssSource: cna
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 467ddbbe7e749d558f13e640f50f546149c930b3 <
    06f1dd1de0d33dbfbd2e1fc9fc57d8895f730de2
  - >-
    Linux >= 4d3c6d741816539b57fa1110c3f765a8c176d7b4 <
    6bf8ccaabce8cebb6cb1f255c93d0acdfe95c17a
  - >-
    Linux >= 2bd57101c3ecf3f8c0da1d26c2b6ad511adc6d50 <
    7616e2eee679746d526c7f5befd4eedb995935b5
  - >-
    Linux >= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a <
    43096dab8cc60fc39133205fd149a54d3acebea8
  - >-
    Linux >= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a <
    3b177b2ded563df16f6d5920671ffcfe5915d472
  - >-
    Linux >= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a <
    b9dbfb1b5699f9f1e4991f96741bdf9047147589
  - >-
    Linux >= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a <
    7ff76f8dc6b550f8d16487bf3cebc278be720b5c
  - >-
    Linux >= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a <
    da02a1824884d6c84c5e5b5ac373b0c9e3288ec2
  - Linux 36933de59f67029e5739a98393891f9b94f27e0f
  - Linux d886b4292a1c5b4facdb2dfdc31f0fecc71df898
  - Linux 4c9ba0fed125deba8416b995b0c274b0804c0c24
  - Linux ea0053af5dab4d63a9c44563973fb2f3bfd9eb2b
  - Linux >= 5.4.195 < 5.4.302
  - Linux >= 5.10.117 < 5.10.247
  - Linux >= 5.15.41 < 5.15.197
  - Linux >= 4.9.315 < 4.10
  - Linux >= 4.14.280 < 4.15
  - Linux >= 4.19.244 < 4.20
  - Linux >= 5.17.9 < 5.18
  - Linux 5.18
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-10-15T21:58:29.186367Z'
published: '2025-12-04'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T22:02:41.932Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2025-40253'
references:
  - url: 'https://git.kernel.org/stable/c/06f1dd1de0d33dbfbd2e1fc9fc57d8895f730de2'
  - url: 'https://git.kernel.org/stable/c/6bf8ccaabce8cebb6cb1f255c93d0acdfe95c17a'
  - url: 'https://git.kernel.org/stable/c/7616e2eee679746d526c7f5befd4eedb995935b5'
  - url: 'https://git.kernel.org/stable/c/43096dab8cc60fc39133205fd149a54d3acebea8'
  - url: 'https://git.kernel.org/stable/c/3b177b2ded563df16f6d5920671ffcfe5915d472'
  - url: 'https://git.kernel.org/stable/c/b9dbfb1b5699f9f1e4991f96741bdf9047147589'
  - url: 'https://git.kernel.org/stable/c/7ff76f8dc6b550f8d16487bf3cebc278be720b5c'
  - url: 'https://git.kernel.org/stable/c/da02a1824884d6c84c5e5b5ac373b0c9e3288ec2'
tags:
  - cve.org
epss: 0.003
epssPercentile: 0.21141
ingestedAt: '2026-10-15T22:48:25.553Z'
---

## Overview

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

- `Linux >= 467ddbbe7e749d558f13e640f50f546149c930b3 < 06f1dd1de0d33dbfbd2e1fc9fc57d8895f730de2`
- `Linux >= 4d3c6d741816539b57fa1110c3f765a8c176d7b4 < 6bf8ccaabce8cebb6cb1f255c93d0acdfe95c17a`
- `Linux >= 2bd57101c3ecf3f8c0da1d26c2b6ad511adc6d50 < 7616e2eee679746d526c7f5befd4eedb995935b5`
- `Linux >= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a < 43096dab8cc60fc39133205fd149a54d3acebea8`
- `Linux >= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a < 3b177b2ded563df16f6d5920671ffcfe5915d472`
- `Linux >= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a < b9dbfb1b5699f9f1e4991f96741bdf9047147589`
- `Linux >= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a < 7ff76f8dc6b550f8d16487bf3cebc278be720b5c`
- `Linux >= 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a < da02a1824884d6c84c5e5b5ac373b0c9e3288ec2`
- `Linux 36933de59f67029e5739a98393891f9b94f27e0f`
- `Linux d886b4292a1c5b4facdb2dfdc31f0fecc71df898`
- `Linux 4c9ba0fed125deba8416b995b0c274b0804c0c24`
- `Linux ea0053af5dab4d63a9c44563973fb2f3bfd9eb2b`
- `Linux >= 5.4.195 < 5.4.302`
- `Linux >= 5.10.117 < 5.10.247`
- `Linux >= 5.15.41 < 5.15.197`
- `Linux >= 4.9.315 < 4.10`
- `Linux >= 4.14.280 < 4.15`
- `Linux >= 4.19.244 < 4.20`
- `Linux >= 5.17.9 < 5.18`
- `Linux 5.18`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
