Skip to contentSkip to conversation

CVE-2022-50651: ethtool: eeprom: fix null-deref on genl_info in dump

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 9, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

ethtool: eeprom: fix null-deref on genl_info in dump

The similar fix as commit 46cdedf2a0fa ("ethtool: pse-pd: fix null-deref on genl_info in dump") is also needed for ethtool eeprom.

The Linux kernel CVE team has assigned CVE-2022-50651 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.13 with commit c781ff12a2f37a9795e13bf328e5053d3e69f9e0 and fixed in 5.15.77 with commit 138a13d8f5c81266032af680f63069387f2748da
	Issue introduced in 5.13 with commit c781ff12a2f37a9795e13bf328e5053d3e69f9e0 and fixed in 6.0.7 with commit 1e3be98592a12511d4e78a9a67aaff3e6ca4980c
	Issue introduced in 5.13 with commit c781ff12a2f37a9795e13bf328e5053d3e69f9e0 and fixed in 6.1 with commit 9d9effca9d7d7cf6341182a7c5cabcbd6fa28063

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2022-50651

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
net/ethtool/eeprom.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/138a13d8f5c81266032af680f63069387f2748da
	https://git.kernel.org/stable/c/1e3be98592a12511d4e78a9a67aaff3e6ca4980c
	https://git.kernel.org/stable/c/9d9effca9d7d7cf6341182a7c5cabcbd6fa28063