diff options
| author | 2026-05-19 22:15:53 -0700 | |
|---|---|---|
| committer | 2026-05-21 08:14:11 -0700 | |
| commit | b809d0409991b75a6cff846a5ac27c3062953f84 (patch) | |
| tree | c2805438cf187f213804b4ca3b415d6c4c1a72a1 /tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com | |
| parent | octeontx2-af: npc: Fix allmulticast skip logic for LBK and SDP VFs (diff) | |
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.
Fixes: ca9c54d2d6a5 ("net: mana: Add a driver for Microsoft Azure Network Adapter (MANA)")
Signed-off-by: Aditya Garg <gargaditya@linux.microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Link: https://patch.msgid.link/20260520051553.857120-1-gargaditya@linux.microsoft.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
