CVE-2024-57947CWE-401

CVE-2024-57947

Critical · published January 23, 2025

CVSS v3.1
9.8
EPSS
0%
Percentile
37.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00442 · 37.3th percentile
Weakness
CWE-401 · Missing Release of Memory after Effective Lifetime
Published
2025-01-23T19:15Z
Affected products (4)
ProductVersionsFixed in
linux/linux_kernel≥ 5.6, < 5.15.1655.15.165
linux/linux_kernel≥ 5.16, < 6.1.1036.1.103
linux/linux_kernel≥ 6.2, < 6.6.446.6.44
linux/linux_kernel≥ 6.7, < 6.10.36.10.3
References (6)
EPSS history
Timeline
  • 23 JAN 13:54Z
    netfilter: nf_set_pipapo: fix initial map fill
    cvelistv5