CVE-2025-40253
s390/ctcm: Fix double-kfree
Check your servers for CVE-2025-40253
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-40253 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- adjacent: the attacker has to be on the same local network or link
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.32%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 26.8% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 15 Oct 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 467ddbbe7e749d558f13e640f50f546149c930b3, before 06f1dd1de0d33dbfbd2e1fc9fc57d8895f730de2 affected from 4d3c6d741816539b57fa1110c3f765a8c176d7b4, before 6bf8ccaabce8cebb6cb1f255c93d0acdfe95c17a affected from 2bd57101c3ecf3f8c0da1d26c2b6ad511adc6d50, before 7616e2eee679746d526c7f5befd4eedb995935b5 affected from 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a, before 43096dab8cc60fc39133205fd149a54d3acebea8 affected from 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a, before 3b177b2ded563df16f6d5920671ffcfe5915d472 affected from 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a, before b9dbfb1b5699f9f1e4991f96741bdf9047147589 affected from 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a, before 7ff76f8dc6b550f8d16487bf3cebc278be720b5c affected from 0c0b20587b9f25a2ad14db7f80ebe49bdf29920a, before da02a1824884d6c84c5e5b5ac373b0c9e3288ec2 affected 36933de59f67029e5739a98393891f9b94f27e0f affected d886b4292a1c5b4facdb2dfdc31f0fecc71df898 affected 4c9ba0fed125deba8416b995b0c274b0804c0c24 affected ea0053af5dab4d63a9c44563973fb2f3bfd9eb2b affected from 5.4.195, before 5.4.302 affected from 5.10.117, before 5.10.247 affected from 5.15.41, before 5.15.197 affected from 4.9.315, before 4.10 affected from 4.14.280, before 4.15 affected from 4.19.244, before 4.20 affected from 5.17.9, before 5.18
Other versions: unaffected
|
| Linux |
affected 5.18 unaffected before 5.18 unaffected from 5.4.302 up to and including 5.4.* unaffected from 5.10.247 up to and including 5.10.* unaffected from 5.15.197 up to and including 5.15.* unaffected from 6.1.159 up to and including 6.1.* unaffected from 6.6.118 up to and including 6.6.* unaffected from 6.12.60 up to and including 6.12.* unaffected from 6.17.10 up to and including 6.17.* unaffected 6.18 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-40253 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-40253
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-40253
trivy image --scanners vuln IMAGE | grep CVE-2025-40253
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/06f1dd1de0d33dbfbd2e1fc9fc57d8895f730de2 git.kernel.org
- https://git.kernel.org/stable/c/6bf8ccaabce8cebb6cb1f255c93d0acdfe95c17a git.kernel.org
- https://git.kernel.org/stable/c/7616e2eee679746d526c7f5befd4eedb995935b5 git.kernel.org
- https://git.kernel.org/stable/c/43096dab8cc60fc39133205fd149a54d3acebea8 git.kernel.org
- https://git.kernel.org/stable/c/3b177b2ded563df16f6d5920671ffcfe5915d472 git.kernel.org
- https://git.kernel.org/stable/c/b9dbfb1b5699f9f1e4991f96741bdf9047147589 git.kernel.org
- https://git.kernel.org/stable/c/7ff76f8dc6b550f8d16487bf3cebc278be720b5c git.kernel.org
- https://git.kernel.org/stable/c/da02a1824884d6c84c5e5b5ac373b0c9e3288ec2 git.kernel.org
Source: the record CVE-2025-40253 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse