CVE-2024-57947

netfilter: nf_set_pipapo: fix initial map fill

MEDIUM
5.5
CVSS Score
Published: January 23, 2025 at 01:54 PM UTC
Updated: August 5, 2026 at 12:44 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.4%

Description

In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_set_pipapo: fix initial map fill The initial buffer has to be inited to all-ones, but it must restrict it to the size of the first field, not the total field size. After each round in the map search step, the result and the fill map are swapped, so if we have a set where f->bsize of the first element is smaller than m->bsize_max, those one-bits are leaked into future rounds result map. This makes pipapo find an incorrect matching results for sets where first field size is not the largest. Followup patch adds a test case to nft_concat_range.sh selftest script. Thanks to Stefano Brivio for pointing out that we need to zero out the remainder explicitly, only correcting memset() argument isn't enough.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.16 ≤ v < 6.1.1035.6 ≤ v < 5.10.2475.6 ≤ v < 5.15.1655.6 ≤ v < 6.1.1035.6 ≤ v < 6.10.35.6 ≤ v < 6.115.6 ≤ v < 6.6.446.2 ≤ v < 6.6.446.7 ≤ v < 6.10.33c4287f62044a90e73a561aa05fc46e62da173da5.6
Vendor states this is fixed in 69b6a67f7052905e928d75a0c5871de50e686986 (fixed)
Vendor states this is fixed in 77bf0c4ab928ca4c9a99311f4f70ba0c17fecba9 (fixed)
Vendor states this is fixed in 791a615b7ad2258c560f91852be54b0480837c93 (fixed)
Vendor states this is fixed in 8058c88ac0df21239daee54b5934d5c80ca9685f (fixed)
Vendor states this is fixed in 957a4d1c4c5849e4515c9fb4db21bf85318103dc (fixed)
Vendor states this is fixed in 9625c46ce6fd4f922595a4b32b1de5066d70464f (fixed)
Vendor states this is fixed in 5.10.247 (unaffected)
Vendor states this is fixed in 5.15.165 (unaffected)
Vendor states this is fixed in 5.6 (unaffected)
Vendor states this is fixed in 6.1.103 (unaffected)
Vendor states this is fixed in 6.10.3 (unaffected)
Vendor states this is fixed in 6.11 (unaffected)
Vendor states this is fixed in 6.6.44 (unaffected)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card