CVE-2026-89924: KVM: s390: Fix old_data leak in guest debug error path
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
KVM: s390: Fix old_data leak in guest debug error path
__import_wp_info() allocates a per-watchpoint old_data buffer to back up the original guest memory contents. If a later watchpoint of the same KVM_SET_GUEST_DEBUG request fails to import, kvm_s390_import_bp_data() jumps to the error label, which frees the wp_info array but not the old_data buffers of the entries that were imported successfully. Up to MAX_BP_COUNT - 1 buffers of up to MAX_WP_SIZE bytes are leaked per failed request, and the request can be repeated.
Create error handling for cleaning up all created old_data memory areas.
The Linux kernel CVE team has assigned CVE-2026-89924 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.16 with commit 27291e2165b6de70c476b7b675308113edd69a60 and fixed in 5.10.270 with commit 124c81ee610e1fbdd93d4399f88d9e28ba97a941 Issue introduced in 3.16 with commit 27291e2165b6de70c476b7b675308113edd69a60 and fixed in 5.15.221 with commit e5ae7816e5ad145618f7fd568a0e8a94dd9f81f4 Issue introduced in 3.16 with commit 27291e2165b6de70c476b7b675308113edd69a60 and fixed in 6.1.188 with commit c85d402553987777cc4742751437ea5dcbf98a7b Issue introduced in 3.16 with commit 27291e2165b6de70c476b7b675308113edd69a60 and fixed in 6.6.157 with commit 5fbf319137735252eefa507193c9a619af5b7457 Issue introduced in 3.16 with commit 27291e2165b6de70c476b7b675308113edd69a60 and fixed in 6.12.110 with commit 4048d0a252163084794be3e37995b872c5178913 Issue introduced in 3.16 with commit 27291e2165b6de70c476b7b675308113edd69a60 and fixed in 6.18.51 with commit f55e4d415d95342d5753e528e05a1e8623992c3f Issue introduced in 3.16 with commit 27291e2165b6de70c476b7b675308113edd69a60 and fixed in 7.2.5 with commit 46cb8a273e2f853f89a78b59dbdff8787b6e1c86 Issue introduced in 3.16 with commit 27291e2165b6de70c476b7b675308113edd69a60 and fixed in 7.3-rc1 with commit aa9c8e8baf1e765fa65b93212522c636f25d846f
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-89924
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/124c81ee610e1fbdd93d4399f88d9e28ba97a941 https://git.kernel.org/stable/c/e5ae7816e5ad145618f7fd568a0e8a94dd9f81f4 https://git.kernel.org/stable/c/c85d402553987777cc4742751437ea5dcbf98a7b https://git.kernel.org/stable/c/5fbf319137735252eefa507193c9a619af5b7457 https://git.kernel.org/stable/c/4048d0a252163084794be3e37995b872c5178913 https://git.kernel.org/stable/c/f55e4d415d95342d5753e528e05a1e8623992c3f https://git.kernel.org/stable/c/46cb8a273e2f853f89a78b59dbdff8787b6e1c86 https://git.kernel.org/stable/c/aa9c8e8baf1e765fa65b93212522c636f25d846f