CVE-2026-90129: virtio_balloon: quiesce balloon work before device shutdown
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
virtio_balloon: quiesce balloon work before device shutdown
Commit 8bd2fa086a04 ("virtio: break and reset virtio devices on device_shutdown()") added a generic virtio bus .shutdown handler that breaks and resets every virtio device during device_shutdown(), i.e. on reboot and kexec.
virtio_balloon provides no .shutdown of its own, so that generic path runs while the balloon's asynchronous work is still armed. Once the device has been broken, virtqueue_add_inbuf() in virtballoon_free_page_report() returns -EIO and trips its WARN_ON_ONCE(). On a kernel booted with panic_on_warn that turns an ordinary reboot, for example a kexec based upgrade, into a fatal panic in the middle of device_shutdown(), so the machine never reaches the new kernel.
Relaxing that single WARN_ON_ONCE() would only hide the symptom: the inflate/deflate and OOM paths do not warn, they call wait_event(vb->acked, ...) and would instead block forever on a broken queue that can no longer complete. The device has to be quiesced, not just kept quiet.
Add a .shutdown handler that quiesces the balloon via the shared virtballoon_quiesce() helper while the device is still alive, and only then breaks and resets it via virtio_device_shutdown(). Unlike virtballoon_remove() the balloon workqueue is not destroyed, as shutdown does not free the device and cancel_work_sync() together with stop_update already prevent any further work from being queued.
The Linux kernel CVE team has assigned CVE-2026-90129 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.15 with commit 8bd2fa086a04886798b505f28db4002525895203 and fixed in 6.18.52 with commit 6dd28e32f4d81a0d57c732b9900de24184e60a7d Issue introduced in 6.15 with commit 8bd2fa086a04886798b505f28db4002525895203 and fixed in 7.2.6 with commit bdef50a8226fc04899ef6815dd08a002247d47d5 Issue introduced in 6.15 with commit 8bd2fa086a04886798b505f28db4002525895203 and fixed in 7.3-rc1 with commit 7e17eef04600c399c7e0f5ce765da5cf9d40d8e1 Issue introduced in 6.14.9 with commit aee42f3d57bfa37b2716df4584edeecf63b9df4c
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-90129
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/virtio/virtio_balloon.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/6dd28e32f4d81a0d57c732b9900de24184e60a7d https://git.kernel.org/stable/c/bdef50a8226fc04899ef6815dd08a002247d47d5 https://git.kernel.org/stable/c/7e17eef04600c399c7e0f5ce765da5cf9d40d8e1