net: mana: validate rx_req_idx to prevent out-of-bounds array access
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ca9c54d2d6a5ab2430c4eda364c77125d62e5e0f · < 355e9f2b2a7887ca38100127989af3e422ba71d0| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: mana: validate rx_req_idx to prevent out-of-bounds array access
In mana_hwc_rx_event_handler(), rx_req_idx is derived from sge->address in DMA-coherent memory. In Confidential VMs (SEV-SNP/TDX), this memory is shared unencrypted and HW can modify WQE contents at any time. No bounds check exists on rx_req_idx, which can lead to an out-of-bounds access into reqs[].
Add bounds check on rx_req_idx in mana_hwc_rx_event_handler() before using it to index the reqs[] array.
From the CVE record · Linux
The Linux kernel's mana receive-event handler does not check an index derived from DMA-coherent memory before accessing an array. In Confidential VMs using SEV-SNP or TDX, hardware can modify that shared memory, potentially causing an out-of-bounds access. The input does not specify network or local attack access, authentication requirements, or user interaction.
Engineers running Linux kernels with the mana driver, particularly in SEV-SNP or TDX Confidential VMs, should check their kernel versions; affected versions are not specified.