KernelScan.io

HIGH

netfilter Pipapo OOB

CVE-2026-43453

CVSS 7.1 / 10.0 NVD

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

KernelScan AI3.8LOW

01

In the Linux kernel, the following vulnerability has been resolved: netfilter: nft_set_pipapo: fix stack out-of-bounds read in pipapo_drop() pipapo_drop() passes rulemap[i + 1].n to pipapo_unmap() as the to_offset argument on every iteration, including the last one where i == m->field_count - 1. This reads one element past the end of the stack-allocated rulemap array (declared as rulemap[NFT_PIPAPO_MAX_FIELDS] with NFT_PIPAPO_MAX_FIELDS == 16). Although pipapo_unmap() returns early when is_last is true without using the to_offset value, the argument is evaluated at the call site before the function body executes, making this a genuine out-of-bounds stack read confirmed by KASAN: BUG: KASAN: stack-out-of-bounds in pipapo_drop+0x50c/0x57c [nf_tables] Read of size 4 at addr ffff8000810e71a4 This frame has 1 object: [32, 160) 'rulemap' The buggy address is at offset 164 -- exactly 4 bytes past the end of the rulemap array. Pass 0 instead of rulemap[i + 1].n on the last iteration to avoid the out-of-bounds read.

02

Engine v0.2.0

Risk summary

A stack out-of-bounds read in netfilter's pipapo set implementation could leak kernel memory to privileged users. The vulnerability requires CAP_NET_ADMIN privileges to trigger through nftables operations. Impact is limited to information disclosure and potential system instability.

Affectednet/netfilter/nft_set_pipapo.c (netfilter)

Vulnerability analysis

The pipapo_drop() function contains an off-by-one error where it accesses rulemap[i + 1].n on the final loop iteration, reading 4 bytes past the end of the 128-byte stack array. While pipapo_unmap() doesn't use this value when is_last is true, the argument evaluation occurs before function entry, making this a genuine KASAN-detected stack over-read. The fix adds bounds checking to pass 0 instead of the out-of-bounds value on the last iteration. Attack surface is limited to local users with CAP_NET_ADMIN who can manipulate nftables pipapo sets.

03

BranchFixed inPatch commit
5.105.10.2531957e793196e
5.155.15.20357fb87ca095d
6.16.1.16760c1d18781e3
6.126.12.78dfbdac719198
6.186.18.19e047f6fbb975
6.196.19.9324b749aa5b2
6.66.6.1300a55d62cdb62
mainline7.0d6d8cd2db236