Skip to contentSkip to conversation

CVE-2026-97901: genetlink: pin family module during policy dump

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 25

lore
Share & tools
lore
#0 lore raw

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

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

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

genetlink: pin family module during policy dump

The generic netlink controller's policy dump keeps pointers to the target family's operation and policy tables in its callback state. A dump may be split across multiple skbs and remain pending after the initial request.

Netlink pins the module which owns the dump callback, but in this case that is the controller's owner rather than the target family's owner. The target family can consequently be unregistered and its module unloaded while a policy dump is pending. Advancing the dump then dereferences policy memory from the unloaded module.

Take a reference to the target family's module when the dump starts. Drop it from the error and done paths. This matches the lifetime for which the dump context retains the family and policy pointers.

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

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

	Issue introduced in 5.8 with commit d07dcf9aadd6b2842b439e8668ff7ea2873f28d7 and fixed in 6.18.53 with commit 508387ad95ef9c13aa6431678c39763e882da2dc
	Issue introduced in 5.8 with commit d07dcf9aadd6b2842b439e8668ff7ea2873f28d7 and fixed in 7.2.7 with commit 6d8e653fcf1c90310797eeba8e5fafe9ccc3de9e
	Issue introduced in 5.8 with commit d07dcf9aadd6b2842b439e8668ff7ea2873f28d7 and fixed in 7.3-rc3 with commit 6a1094c34d176827b2b173e163dcc964a13af93f

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-97901

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/netlink/genetlink.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/508387ad95ef9c13aa6431678c39763e882da2dc
	https://git.kernel.org/stable/c/6d8e653fcf1c90310797eeba8e5fafe9ccc3de9e
	https://git.kernel.org/stable/c/6a1094c34d176827b2b173e163dcc964a13af93f