Skip to contentSkip to conversation

CVE-2026-53218: netfilter: nft_exthdr: fix register tracking for F_PRESENT flag

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 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:

netfilter: nft_exthdr: fix register tracking for F_PRESENT flag

nft_exthdr_init() passes user-controlled priv->len to nft_parse_register_store(), which marks that many bytes in the register bitmap as initialized. However, when NFT_EXTHDR_F_PRESENT is set, the eval paths write only 1 byte (nft_reg_store8) or 4 bytes (*dest = 0 on TCP/DCCP error path). When len > 4, registers beyond the first are never written, retaining uninitialized stack data from nft_regs.

Bail out if userspace requests too much data when F_PRESENT is set.

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

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

	Issue introduced in 4.11 with commit c078ca3b0c5bf82c2b31906c446d6e2ad8ea0783 and fixed in 5.10.259 with commit 8738b1b6d0e639ca1fc0f61516afd3557ac4ecc6
	Issue introduced in 4.11 with commit c078ca3b0c5bf82c2b31906c446d6e2ad8ea0783 and fixed in 5.15.210 with commit 19748967d59c31d24d21d40b728570788310b237
	Issue introduced in 4.11 with commit c078ca3b0c5bf82c2b31906c446d6e2ad8ea0783 and fixed in 6.1.176 with commit 46fc15a044e9938e7ea77786fb37edd2cd74f031
	Issue introduced in 4.11 with commit c078ca3b0c5bf82c2b31906c446d6e2ad8ea0783 and fixed in 6.6.143 with commit cd513e43b4b2bd1de39e2367bc4261c699a8652f
	Issue introduced in 4.11 with commit c078ca3b0c5bf82c2b31906c446d6e2ad8ea0783 and fixed in 6.12.94 with commit 67b27434c43b68a97becda98c9f0c8cf6cba2134
	Issue introduced in 4.11 with commit c078ca3b0c5bf82c2b31906c446d6e2ad8ea0783 and fixed in 6.18.36 with commit 78069a6d8bc86c9e036eb82c2af4a19cc1871a53
	Issue introduced in 4.11 with commit c078ca3b0c5bf82c2b31906c446d6e2ad8ea0783 and fixed in 7.0.13 with commit f08fb3d42fd3aad0b7a263da3ac3ebaf0845e265
	Issue introduced in 4.11 with commit c078ca3b0c5bf82c2b31906c446d6e2ad8ea0783 and fixed in 7.1 with commit 772cecf198da732faebb5dcfc46d66a505be8495

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

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/netfilter/nft_exthdr.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/8738b1b6d0e639ca1fc0f61516afd3557ac4ecc6
	https://git.kernel.org/stable/c/19748967d59c31d24d21d40b728570788310b237
	https://git.kernel.org/stable/c/46fc15a044e9938e7ea77786fb37edd2cd74f031
	https://git.kernel.org/stable/c/cd513e43b4b2bd1de39e2367bc4261c699a8652f
	https://git.kernel.org/stable/c/67b27434c43b68a97becda98c9f0c8cf6cba2134
	https://git.kernel.org/stable/c/78069a6d8bc86c9e036eb82c2af4a19cc1871a53
	https://git.kernel.org/stable/c/f08fb3d42fd3aad0b7a263da3ac3ebaf0845e265
	https://git.kernel.org/stable/c/772cecf198da732faebb5dcfc46d66a505be8495