CVE-2022-49227 Information
Description
In the Linux kernel the following vulnerability has been resolved:
igc: avoid kernel warning when changing RX ring parameters
Calling ethtool changing the RX ring parameters like this:
$ ethtool -G eth0 rx 1024
on igc triggers kernel warnings like this:
[ 225.198467] ————[ cut here ]————
[ 225.198473] Missing unregister handled but fix driver
[ 225.198485] WARNING: CPU: 7 PID: 959 at net/core/xdp.c:168
xdp_rxq_info_reg+0x79/0xd0
[…]
[ 225.198601] Call Trace:
[ 225.198604]
igc_ethtool_set_ringparam() copies the igc_ring structure but neglects to reset the xdp_rxq_info member before calling igc_setup_rx_resources(). This in turn calls xdp_rxq_info_reg() with an already registered xdp_rxq_info.
Make sure to unregister the xdp_rxq_info structure first in igc_setup_rx_resources.
Reference
https://git.kernel.org/stable/c/3ddb49af08094ebee250b461172ee7b8e27a35d3 https://git.kernel.org/stable/c/453307b569a0d41bddd07f26bf41b784cd82a4c9 https://git.kernel.org/stable/c/65aebcf1e05bd97d2e7ffcdff36efea1757c9450 https://git.kernel.org/stable/c/ab8c107470d12e7ef99030bf0911a10cdef62d16
Share on: