In the Linux kernel, the following vulnerability has been resolved:
net: ethernet: mvpp2_main: fix possible OOB write in mvpp2_ethtool_get_rxnfc()
rules is allocated in ethtool_get_rxnfc and the size is determined by rule_cnt from user space. So rule_cnt needs to be check before using rules to avoid OOB writing or NULL pointer dereference.
| Software | From | Fixed in |
|---|---|---|
| linux / linux_kernel | 5.2 | 5.4.257 |
| linux / linux_kernel | 5.5 | 5.10.195 |
| linux / linux_kernel | 5.11 | 5.15.132 |
| linux / linux_kernel | 5.16 | 6.1.54 |
| linux / linux_kernel | 6.2 | 6.5.4 |
| linux / linux_kernel | 6.6-rc1 | 6.6-rc1.x |