CVE-2025-38162netfilter: nft_set_pipapo: prevent overflow in lookup table allocation
- 7.8HighCVSS base score
- 0.19%Exploitation in 30 daysEPSS · top 91% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
In the Linux kernel, the following vulnerability has been resolved: netfilter: nft_set_pipapo: prevent overflow in lookup table allocation When calculating the lookup table size, ensure the following multiplication does not overflow: - desc->field_len[] maximum value is U8_MAX multiplied by NFT_PIPAPO_GROUPS_PER_BYTE(f) that can be 2, worst case. - NFT_PIPAPO_BUCKETS(f->bb) is 2^8, worst case. - sizeof(unsigned long), from sizeof(*f->lt), lt in struct nft_pipapo_field. Then, use check_mul_overflow() to multiply by bucket size and then use check_add_overflow() to the alignment for avx2 (if needed). Finally, add lt_size_check_overflow() helper and use it to consolidate this. While at it, replace leftover allocation using the GFP_KERNEL to GFP_KERNEL_ACCOUNT for consistency, in pipapo_resize().
Timeline
ID reserved
By Linux
- 3 months later
· 3 months later
Published
- 17 months later
· 17 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| LinuxCNA (assigner) | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Modified | 3.1 | Medium5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.19% · top 91% of all CVEs (15 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.8.
Affected products
- affected 3c4287f62044a90e73a561aa05fc46e62da173da – < 91edc076439c9e2f34b176149f1c84a47a8ec32f
- affected 3c4287f62044a90e73a561aa05fc46e62da173da – < a9e757473561da93c6a4136f0e59aba91ec777fc
- affected 3c4287f62044a90e73a561aa05fc46e62da173da – < c1360ac8156c0a3f2385baef91d8d26fd9d39701
- affected 3c4287f62044a90e73a561aa05fc46e62da173da – < 43fe1181f738295624696ae9ff611790edb65b5e
- affected 3c4287f62044a90e73a561aa05fc46e62da173da – < 4c5c6aa9967dbe55bd017bb509885928d0f31206
- affected 5.6
- unaffected < 5.6
- unaffected 6.1.167 – ≤ 6.1.*
- unaffected 6.6.125 – ≤ 6.6.*
- unaffected 6.12.34 – ≤ 6.12.*
- unaffected 6.15.3 – ≤ 6.15.*
- unaffected 6.16 – ≤ *
References
References9
- https://git.kernel.org/stable/c/91edc076439c9e2f34b176149f1c84a47a8ec32f (opens in a new tab)
- https://git.kernel.org/stable/c/a9e757473561da93c6a4136f0e59aba91ec777fc (opens in a new tab)
- https://git.kernel.org/stable/c/c1360ac8156c0a3f2385baef91d8d26fd9d39701 (opens in a new tab)
- https://git.kernel.org/stable/c/43fe1181f738295624696ae9ff611790edb65b5e (opens in a new tab)
- https://git.kernel.org/stable/c/4c5c6aa9967dbe55bd017bb509885928d0f31206 (opens in a new tab)
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html (opens in a new tab)
- https://cert-portal.siemens.com/productcert/html/ssa-019113.html (opens in a new tab)
- https://cert-portal.siemens.com/productcert/html/ssa-457936.html (opens in a new tab)
- https://cert-portal.siemens.com/productcert/html/ssa-784472.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2025-19782 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2025-38162)Record last updated .