veth: manage XDP program pointers during channel resize
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4752eeb3d891c27905a8fdf4d80e899c0efd4ec7 · < 43f6b647f209591b1e3f726bb16b8dcba6b95908| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
veth: manage XDP program pointers during channel resize
veth_set_channels() tears down XDP resources for removed RX queues without clearing rq->xdp_prog. If the program is then detached or replaced, those queues keep the old pointer after bpf_prog_put(). A later channel increase can re-enable NAPI and run the freed program.
BUG: unable to handle page fault for address: ffffc90000256048 Oops: Oops: 0000 [#1] SMP KASAN NOPTI RIP: veth_xdp_rcv_skb (include/linux/filter.h:779 include/net/xdp.h:696 drivers/net/veth.c:820) Call Trace: veth_xdp_rcv (drivers/net/veth.c:941) veth_poll (drivers/net/veth.c:986) __napi_poll (net/core/dev.c:7787) net_rx_action (net/core/dev.c:7850 net/core/dev.c:8007) handle_softirqs (kernel/softirq.c:645) Kernel panic - not syncing: Fatal exception in interrupt
From the CVE record · Linux
The Linux kernel’s veth driver can retain a pointer to a freed XDP program when RX channels are removed and the program is then detached or replaced. A later channel increase can run the freed program and cause a kernel panic. The input does not specify the access or privileges needed to trigger this sequence.
Engineers running Linux kernels that use veth with XDP should check their kernel versions; affected versions are not specified.