HIGH
irdma NetEvent OOB
CVE-2025-71133
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
KernelScan AI7.1HIGH
01Description
In the Linux kernel, the following vulnerability has been resolved: RDMA/irdma: avoid invalid read in irdma_net_event irdma_net_event() should not dereference anything from "neigh" (alias "ptr") until it has checked that the event is NETEVENT_NEIGH_UPDATE. Other events come with different structures pointed to by "ptr" and they may be smaller than struct neighbour. Move the read of neigh->dev under the NETEVENT_NEIGH_UPDATE case. The bug is mostly harmless, but it triggers KASAN on debug kernels: BUG: KASAN: stack-out-of-bounds in irdma_net_event+0x32e/0x3b0 [irdma] Read of size 8 at addr ffffc900075e07f0 by task kworker/27:2/542554 CPU: 27 PID: 542554 Comm: kworker/27:2 Kdump: loaded Not tainted 5.14.0-630.el9.x86_64+debug #1 Hardware name: [...] Workqueue: events rt6_probe_deferred Call Trace: <IRQ> dump_stack_lvl+0x60/0xb0 print_address_description.constprop.0+0x2c/0x3f0 print_report+0xb4/0x270 kasan_report+0x92/0xc0 irdma_net_event+0x32e/0x3b0 [irdma] notifier_call_chain+0x9e/0x180 atomic_notifier_call_chain+0x5c/0x110 rt6_do_redirect+0xb91/0x1080 tcp_v6_err+0xe9b/0x13e0 icmpv6_notify+0x2b2/0x630 ndisc_redirect_rcv+0x328/0x530 icmpv6_rcv+0xc16/0x1360 ip6_protocol_deliver_rcu+0xb84/0x12e0 ip6_input_finish+0x117/0x240 ip6_input+0xc4/0x370 ipv6_rcv+0x420/0x7d0 __netif_receive_skb_one_core+0x118/0x1b0 process_backlog+0xd1/0x5d0 __napi_poll.constprop.0+0xa3/0x440 net_rx_action+0x78a/0xba0 handle_softirqs+0x2d4/0x9c0 do_softirq+0xad/0xe0 </IRQ>
02KernelScan AI Analysis
Risk summary
This vulnerability causes out-of-bounds memory reads when processing network events on systems with Intel RDMA hardware. While the bug is described as 'mostly harmless' and primarily triggers KASAN warnings on debug kernels, it could potentially lead to information disclosure or system instability. The vulnerability is triggered by normal network traffic processing, making it accessible to network-based attackers.
Vulnerability analysis
Summary: The irdma_net_event() function in the Intel RDMA driver performs an out-of-bounds read by dereferencing a pointer before validating the event type, potentially accessing memory beyond the bounds of smaller structures.
Root Cause: The function immediately dereferences 'neigh->dev' from the 'ptr' parameter without first checking if the event is NETEVENT_NEIGH_UPDATE. For other network events, 'ptr' points to different structures that may be smaller than 'struct neighbour', causing the read to access memory beyond the structure's bounds.
Attack Surface: This vulnerability is triggered through network events processed by the kernel's network stack. It requires the presence of Intel RDMA hardware and the irdma driver to be loaded. The bug is triggered by legitimate network traffic processing, particularly IPv6 redirect messages, making it reachable through network interfaces.
Fix Mechanism: The patch moves the 'neigh->dev' dereference inside the NETEVENT_NEIGH_UPDATE case block, ensuring the pointer is only accessed when it's guaranteed to point to a valid 'struct neighbour' object.
03Fix Versions
| Branch | Fixed in | Patch commit |
|---|---|---|
| 5.15 | 5.15.198 | db93ae6fa66f |
| 6.1 | 6.1.160 | 305c02e541be |
| 6.12 | 6.12.64 | bf197c7c79ef |
| 6.18 | 6.18.4 | d9b9affd103f |
| 6.6 | 6.6.120 | fc23d05f0b3f |
| mainline | 6.19 | 6f05611728e9 |