CVE-2026-80555: s390/vfio_ccw: Free all memory if cp_init() fails
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
s390/vfio_ccw: Free all memory if cp_init() fails
The routine cp_free() is called to unpin/free any memory once an I/O is completed successfully, or if cp_prefetch() fails. But if cp_init() fails, and cp->initialized is not enabled, the same routine cannot be used to free all the memory.
An attempt to address this exists in ccwchain_handle_ccw(), where a single call to ccwchain_free() is made for the currently-processed CCW segment. But this will leak other segments (created as a result of a Transfer in Channel) that had been allocated as part of the same channel program.
Address this by performing the cleanup outside of the recursive ccwchain_handle_ccw()/ccwchain_loop_tic() logic.
The Linux kernel CVE team has assigned CVE-2026-80555 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.3 with commit 8b515be512a2435bb8aedc6390cbe140167f9eb9 and fixed in 6.12.105 with commit 6a917199aaf97904f5619afe3dfdacb155b03e8c Issue introduced in 5.3 with commit 8b515be512a2435bb8aedc6390cbe140167f9eb9 and fixed in 6.18.46 with commit 32e3d364a7b8295120d37e6a6bd433d2de26f748 Issue introduced in 5.3 with commit 8b515be512a2435bb8aedc6390cbe140167f9eb9 and fixed in 7.1.10 with commit 4699b54fada156534cbb39834d47fc9374d7a1f5 Issue introduced in 5.3 with commit 8b515be512a2435bb8aedc6390cbe140167f9eb9 and fixed in 7.2 with commit 74186c2968f8f756ac3226b545b598457c910c75
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-80555
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/s390/cio/vfio_ccw_cp.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/6a917199aaf97904f5619afe3dfdacb155b03e8c https://git.kernel.org/stable/c/32e3d364a7b8295120d37e6a6bd433d2de26f748 https://git.kernel.org/stable/c/4699b54fada156534cbb39834d47fc9374d7a1f5 https://git.kernel.org/stable/c/74186c2968f8f756ac3226b545b598457c910c75