net: ethernet: ti: am65-cpsw: Fix NULL dereference on XDP_TX
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:
net: ethernet: ti: am65-cpsw: Fix NULL dereference on XDP_TX
If number of TX queues are set to 1 we get a NULL pointer dereference during XDP_TX.
~# ethtool -L eth0 tx 1 ~# ./xdp-trafficgen udp -A <ipv6-src> -a <ipv6-dst> eth0 -t 2 Transmitting on eth0 (ifindex 2) [ 241.135257] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000030
Fix this by using actual TX queues instead of max TX queues when picking the TX channel in am65_cpsw_ndo_xdp_xmit().
From the CVE record · Linux
The Linux kernel's am65-cpsw Ethernet driver can dereference a NULL pointer during XDP_TX when the number of TX queues is set to one. Triggering XDP_TX under that configuration can cause a kernel fault; the input does not specify an authentication requirement.
Engineers running Linux kernels that use the am65-cpsw Ethernet driver should check their systems; affected versions are not specified.