CVE-2026-97990: vdpa_sim_net: check TX pull result before RX copy
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
vdpa_sim_net: check TX pull result before RX copy
vringh_iov_pull_iotlb() returns a signed byte count. A failed TX pull is currently added to the unsigned byte counter and then passed as a size_t length to receive_filter() and vringh_iov_push_iotlb(). A negative error can therefore become a large length in the RX path.
Handle non-positive pull results before every length use. Count the TX error and complete the consumed TX descriptor with zero bytes.
I found this bug myself, though the patch was written with AI assistance.
The Linux kernel CVE team has assigned CVE-2026-97990 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.19 with commit cfe226892913a448e83e7a19db93862baa3cb99c and fixed in 6.12.111 with commit c001abcde865b74231da8f1412c3217dbf66781e Issue introduced in 5.19 with commit cfe226892913a448e83e7a19db93862baa3cb99c and fixed in 6.18.53 with commit 3af20238a09ca180d66623e3bed16b64e9975f39 Issue introduced in 5.19 with commit cfe226892913a448e83e7a19db93862baa3cb99c and fixed in 7.2.7 with commit 2bbf1c1f69991e28787e02b0a2f826289d5fc730 Issue introduced in 5.19 with commit cfe226892913a448e83e7a19db93862baa3cb99c and fixed in 7.3-rc3 with commit 0d195797a80b77f2ec56718cd26d3ee65d0093e8
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-97990
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/vdpa/vdpa_sim/vdpa_sim_net.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/c001abcde865b74231da8f1412c3217dbf66781e https://git.kernel.org/stable/c/3af20238a09ca180d66623e3bed16b64e9975f39 https://git.kernel.org/stable/c/2bbf1c1f69991e28787e02b0a2f826289d5fc730 https://git.kernel.org/stable/c/0d195797a80b77f2ec56718cd26d3ee65d0093e8