CVE-2026-99722: vringh: bound top-level re-entry into indirect tables
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
vringh: bound top-level re-entry into indirect tables
In __vringh_iov(), the F_INDIRECT branch descends into the indirect table and continues before the descriptor accounting runs. A top-level indirect descriptor is therefore never charged to count. If such a descriptor sets NEXT to point back at itself, returning from the indirect table resumes at the same top-level descriptor, which is again not counted, so the walk never makes forward progress.
Because count stays flat and indirect_count is reset to 0 on every return to the top-level table, neither bound in the loop check trips. A guest can spin the vringh worker at 100% CPU inside __vringh_iov(), an uninterruptible host DoS.
Move the descriptor accounting above the indirect switch so that a top-level indirect descriptor is charged one top-level traversal step before the walk descends into its table, bringing this re-entry under the existing vrh->vring.num bound. Each top-level descriptor is still charged at most one step and indirect_count still bounds a single table, so legitimate chains (including the multiple-indirect case in tools/virtio/vringh_test.c) stay within vring.num, while a cyclic indirect descriptor is now rejected with -ELOOP.
The Linux kernel CVE team has assigned CVE-2026-99722 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.19 with commit dbd29e0752286af74243cf891accf472b2f3edd8 and fixed in 6.12.118 with commit 8d8fae59c6b00cb6b2d48e1496b8a4cc2f4d5e8f Issue introduced in 5.19 with commit dbd29e0752286af74243cf891accf472b2f3edd8 and fixed in 6.18.64 with commit e7d831fd55e61f76d5dafe4b5e53aa9c87f7c227 Issue introduced in 5.19 with commit dbd29e0752286af74243cf891accf472b2f3edd8 and fixed in 7.3.5 with commit f6b933a9a1ebf67ae5474bfb8824500457dfbb68 Issue introduced in 5.19 with commit dbd29e0752286af74243cf891accf472b2f3edd8 and fixed in 7.4-rc2 with commit f898439ace7f89922e853b43bcbfcd26ea2e0a98 Issue introduced in 4.9.318 with commit 45984b3ae9d688a913d024551848d068b1c0ac4e Issue introduced in 4.14.283 with commit 29c3f932b422d92115e260a250fd910d46cd0c09 Issue introduced in 4.19.247 with commit 4511b505057b86a5e898b7244c715422ce59864f Issue introduced in 5.4.198 with commit 1a36f77dc23c3768e06cdc32777b2d85be7f4150 Issue introduced in 5.10.122 with commit b6ea26873edbd9ca3c0c338c9de856de7f1fcede Issue introduced in 5.15.47 with commit d3e38fdf9e1016897c897ea0d22af34e915b1219 Issue introduced in 5.17.15 with commit c30b0d14603ea0b00fad70fdc671534688e6629c Issue introduced in 5.18.4 with commit 8df021ccdf956192e7e9cb4325f47ad26dba2cae
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-99722
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/vhost/vringh.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/8d8fae59c6b00cb6b2d48e1496b8a4cc2f4d5e8f https://git.kernel.org/stable/c/e7d831fd55e61f76d5dafe4b5e53aa9c87f7c227 https://git.kernel.org/stable/c/f6b933a9a1ebf67ae5474bfb8824500457dfbb68 https://git.kernel.org/stable/c/f898439ace7f89922e853b43bcbfcd26ea2e0a98