io_uring/zcrx: fix overshooting recv limit
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
io_uring/zcrx: fix overshooting recv limit
It's reported that sometimes a zcrx request can receive more than was requested. It's caused by io_zcrx_recv_skb() adjusting desc->count for all received buffers including frag lists, but then doing recursive calls to process frag list skbs, which leads to desc->count double accounting and underflow.
From the CVE record · Linux
A Linux kernel io_uring/zcrx request can sometimes receive more data than requested when processing received buffers that include fragment lists. Recursive processing double-counts received data and can underflow the receive count. The input does not specify whether exploitation requires network or local access, authentication, or user interaction.
Engineers running the Linux kernel should check affected versions; none are specified in the input.