CVE-2026-53218 PUBLISHED

netfilter: nft_exthdr: fix register tracking for F_PRESENT flag

Assigner: Linux
Reserved: 09.06.2026 Published: 25.06.2026 Updated: 25.06.2026

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from c078ca3b0c5bf82c2b31906c446d6e2ad8ea0783 to 8738b1b6d0e639ca1fc0f61516afd3557ac4ecc6 (excl.)
  • affected from c078ca3b0c5bf82c2b31906c446d6e2ad8ea0783 to 19748967d59c31d24d21d40b728570788310b237 (excl.)
  • affected from c078ca3b0c5bf82c2b31906c446d6e2ad8ea0783 to 46fc15a044e9938e7ea77786fb37edd2cd74f031 (excl.)
  • affected from c078ca3b0c5bf82c2b31906c446d6e2ad8ea0783 to cd513e43b4b2bd1de39e2367bc4261c699a8652f (excl.)
  • affected from c078ca3b0c5bf82c2b31906c446d6e2ad8ea0783 to 67b27434c43b68a97becda98c9f0c8cf6cba2134 (excl.)
  • affected from c078ca3b0c5bf82c2b31906c446d6e2ad8ea0783 to 78069a6d8bc86c9e036eb82c2af4a19cc1871a53 (excl.)
  • affected from c078ca3b0c5bf82c2b31906c446d6e2ad8ea0783 to f08fb3d42fd3aad0b7a263da3ac3ebaf0845e265 (excl.)
  • affected from c078ca3b0c5bf82c2b31906c446d6e2ad8ea0783 to 772cecf198da732faebb5dcfc46d66a505be8495 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 4.11 is affected
  • unaffected from 0 to 4.11 (excl.)
  • unaffected from 5.10.259 to 5.10.* (incl.)
  • unaffected from 5.15.210 to 5.15.* (incl.)
  • unaffected from 6.1.176 to 6.1.* (incl.)
  • unaffected from 6.6.143 to 6.6.* (incl.)
  • unaffected from 6.12.94 to 6.12.* (incl.)
  • unaffected from 6.18.36 to 6.18.* (incl.)
  • unaffected from 7.0.13 to 7.0.* (incl.)
  • unaffected from 7.1 to * (incl.)

References