vdpa_sim_net: check TX pull result before RX copy
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
In the Linux kernel's vdpa_sim_net component, a failed TX pull can turn a negative error into a large length used in the RX path. The input does not specify an attacker action, access requirements, or whether user interaction is needed.
Engineers running Linux kernels with vdpa_sim_net should check their versions; affected versions are not specified.