CVE-2026-89925: KVM: s390: Fix memory leak in guest debug handling
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
KVM: s390: Fix memory leak in guest debug handling
bp_data is freed only for the error case by kfree(bp_data). Every successful KVM_SET_GUEST_DEBUG will leak bp_data.
The Linux kernel CVE team has assigned CVE-2026-89925 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.16 with commit 27291e2165b6de70c476b7b675308113edd69a60 and fixed in 5.10.270 with commit 39e7cebb889839b5762c9ad22e2d715b5883b288 Issue introduced in 3.16 with commit 27291e2165b6de70c476b7b675308113edd69a60 and fixed in 5.15.221 with commit 58b1b729a9f90c80b508fc3e2174cbc0ee50859e Issue introduced in 3.16 with commit 27291e2165b6de70c476b7b675308113edd69a60 and fixed in 6.1.188 with commit 9071f75cbde3bf46119cb28e92cfbef830c4bf97 Issue introduced in 3.16 with commit 27291e2165b6de70c476b7b675308113edd69a60 and fixed in 6.6.157 with commit 5940418e4232a2ff1d30ba12e0d213dbf48f0a83 Issue introduced in 3.16 with commit 27291e2165b6de70c476b7b675308113edd69a60 and fixed in 6.12.110 with commit fc2034c431adcbaabf5f8a01912358f07355349e Issue introduced in 3.16 with commit 27291e2165b6de70c476b7b675308113edd69a60 and fixed in 6.18.51 with commit 44bf3792c10f4bb3de507391f1837e020d92eaa2 Issue introduced in 3.16 with commit 27291e2165b6de70c476b7b675308113edd69a60 and fixed in 7.2.5 with commit 581be9f6085834188cef1ad2f07babf3b421e409 Issue introduced in 3.16 with commit 27291e2165b6de70c476b7b675308113edd69a60 and fixed in 7.3-rc1 with commit 121ea1de927c8b9bfdf53c31cad27b86d5de0293
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-89925
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:
arch/s390/kvm/guestdbg.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/39e7cebb889839b5762c9ad22e2d715b5883b288 https://git.kernel.org/stable/c/58b1b729a9f90c80b508fc3e2174cbc0ee50859e https://git.kernel.org/stable/c/9071f75cbde3bf46119cb28e92cfbef830c4bf97 https://git.kernel.org/stable/c/5940418e4232a2ff1d30ba12e0d213dbf48f0a83 https://git.kernel.org/stable/c/fc2034c431adcbaabf5f8a01912358f07355349e https://git.kernel.org/stable/c/44bf3792c10f4bb3de507391f1837e020d92eaa2 https://git.kernel.org/stable/c/581be9f6085834188cef1ad2f07babf3b421e409 https://git.kernel.org/stable/c/121ea1de927c8b9bfdf53c31cad27b86d5de0293