Skip to contentSkip to conversation

CVE-2026-63986: ethtool: tsinfo: don't pass ERR_PTR to genlmsg_cancel on prepare failure

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jul 19

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: tsinfo: don't pass ERR_PTR to genlmsg_cancel on prepare failure

The goto err label leads to:

	genlmsg_cancel(skb, ehdr);
	return ret;

If ethnl_tsinfo_prepare_dump() failed, it has not started a genlmsg. There's nothing to cancel, and passing an error pointer to genlmsg_cancel() would cause a crash.

The Linux kernel CVE team has assigned CVE-2026-63986 to this issue.

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

	Issue introduced in 6.14 with commit b9e3f7dc9ed95daeb83cfa45b821cacaa01aa906 and fixed in 6.18.35 with commit 2008f9bb1ede9b688624a241228b8e54fc74f0f6
	Issue introduced in 6.14 with commit b9e3f7dc9ed95daeb83cfa45b821cacaa01aa906 and fixed in 7.0.12 with commit d0d2c5ccd1de28368cebeef74d9c530a60eff9a5
	Issue introduced in 6.14 with commit b9e3f7dc9ed95daeb83cfa45b821cacaa01aa906 and fixed in 7.1 with commit c3fc9976f686f9a95baf87db9d387f218fd65394

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-2026-63986

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/tsinfo.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/2008f9bb1ede9b688624a241228b8e54fc74f0f6
	https://git.kernel.org/stable/c/d0d2c5ccd1de28368cebeef74d9c530a60eff9a5
	https://git.kernel.org/stable/c/c3fc9976f686f9a95baf87db9d387f218fd65394