CVE-2021-47558
Severity:
Pending analysis
Type:
Unavailable / Other
Publication date:
24/05/2024
Last modified:
24/05/2024
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
net: stmmac: Disable Tx queues when reconfiguring the interface<br />
<br />
The Tx queues were not disabled in situations where the driver needed to<br />
stop the interface to apply a new configuration. This could result in a<br />
kernel panic when doing any of the 3 following actions:<br />
* reconfiguring the number of queues (ethtool -L)<br />
* reconfiguring the size of the ring buffers (ethtool -G)<br />
* installing/removing an XDP program (ip l set dev ethX xdp)<br />
<br />
Prevent the panic by making sure netif_tx_disable is called when stopping<br />
an interface.<br />
<br />
Without this patch, the following kernel panic can be observed when doing<br />
any of the actions above:<br />
<br />
Unable to handle kernel paging request at virtual address ffff80001238d040<br />
[....]<br />
Call trace:<br />
dwmac4_set_addr+0x8/0x10<br />
dev_hard_start_xmit+0xe4/0x1ac<br />
sch_direct_xmit+0xe8/0x39c<br />
__dev_queue_xmit+0x3ec/0xaf0<br />
dev_queue_xmit+0x14/0x20<br />
[...]<br />
[ end trace 0000000000000002 ]---