net: ethernet: mvpp2_main: fix possible OOB write in mvpp2_ethtool_get_rxnfc()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 90b509b39ac9b09be88eb641c7a3abd8de06b698 · < 51fe0a470543f345e3c62b6798929de3ddcedc1d| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's mvpp2_ethtool_get_rxnfc() may write out of bounds or dereference a NULL pointer because it does not check a user-supplied rule count before using an allocated rules array. A local user-space caller supplying that count could trigger the issue; authentication requirements are not specified.
Engineers running Linux kernels with the mvpp2_main Ethernet driver should check their versions; affected versions are not specified.