# CVE-2024-57947: netfilter: nf\_set\_pipapo: fix initial map fill

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.8 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2025-01-23 · Modified: 2026-08-05
- Aliases: UBUNTU-CVE-2024-57947, DEBIAN-CVE-2024-57947
- Record: https://cvemate.com/vulnerability/CVE-2024-57947 · JSON: https://cvemate.com/vulnerability/CVE-2024-57947/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.446%, percentile 40.552%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 121)

- debian linux (Debian): \< 6.1.106-1 \| \< 6.10.3-1
- ubuntu linux (Ubuntu): \< 5.15.0-125.135 \| \< 6.8.0-50.51
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 5.15.0-1072.78 \| \< 6.8.0-1020.22
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1072.78~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1020.22~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1072.78+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1075.84 \| \< 6.8.0-1020.23
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.15 (Ubuntu): \< 5.15.0-1078.87~20.04.1
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/77bf0c4ab928ca4c9a99311f4f70ba0c17fecba9>
- <https://git.kernel.org/stable/c/957a4d1c4c5849e4515c9fb4db21bf85318103dc>
- <https://git.kernel.org/stable/c/9625c46ce6fd4f922595a4b32b1de5066d70464f>
- <https://git.kernel.org/stable/c/69b6a67f7052905e928d75a0c5871de50e686986>
- <https://git.kernel.org/stable/c/8058c88ac0df21239daee54b5934d5c80ca9685f>
- <https://git.kernel.org/stable/c/791a615b7ad2258c560f91852be54b0480837c93>
- <https://ubuntu.com/security/CVE-2024-57947>
- <https://www.cve.org/CVERecord?id=CVE-2024-57947>
- <https://git.kernel.org/linus/791a615b7ad2258c560f91852be54b0480837c93>
- <https://security-tracker.debian.org/tracker/CVE-2024-57947>

---

Data as of 2026-12-05T04:39:38.955Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
