Skip to contentSkip to conversation

CVE-2026-63858: netfilter: nf_tables: add hook transactions for device deletions

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:

netfilter: nf_tables: add hook transactions for device deletions

Restore the flag that indicates that the hook is going away, ie. NFT_HOOK_REMOVE, but add a new transaction object to track deletion of hooks without altering the basechain/flowtable hook_list during the preparation phase.

The existing approach that moves the hook from the basechain/flowtable hook_list to transaction hook_list breaks netlink dump path readers of this RCU-protected list.

It should be possible use an array for nft_trans_hook to store the deleted hooks to compact the representation but I am not expecting many hook object, specially now that wildcard support for devices is in place.

Note that the nft_trans_chain_hooks() list contains a list of struct nft_trans_hook objects for DELCHAIN and DELFLOWTABLE commands, while this list stores struct nft_hook objects for NEWCHAIN and NEWFLOWTABLE. Note that new commands can be updated to use nft_trans_hook for consistency.

This patch also adapts the event notification path to deal with the list of hook transactions.

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

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

	Issue introduced in 5.19 with commit b6d9014a3335194590abdd2a2471ef5147a67645 and fixed in 7.0.10 with commit 4e69bfb32b2db323d9205fdb30e284481b37817c
	Issue introduced in 5.19 with commit b6d9014a3335194590abdd2a2471ef5147a67645 and fixed in 7.1 with commit 10f79dbd7719d1da9f5884d13060322d8729f091
	Issue introduced in 5.10.122 with commit 7a248f9c74f9f62799718c12efd9e9e391d60b6f
	Issue introduced in 5.15.47 with commit f275989ad04159dbfc62cefb65ba9c5ba1d7c34f
	Issue introduced in 5.17.15 with commit 62d91062058b42bf70b2c3446aec397bb0ce15ee
	Issue introduced in 5.18.4 with commit 99180dec5ae582227219d1fdd0dd5ccf53ec7491

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

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:
include/net/netfilter/nf_tables.h
net/netfilter/nf_tables_api.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/4e69bfb32b2db323d9205fdb30e284481b37817c
	https://git.kernel.org/stable/c/10f79dbd7719d1da9f5884d13060322d8729f091