CVE-2025-38162: netfilter: nft_set_pipapo: prevent overflow in lookup table allocation

Published Jul 3, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

netfilter: nftsetpipapo: prevent overflow in lookup table allocation

When calculating the lookup table size, ensure the following multiplication does not overflow:

- desc->fieldlen[] maximum value is U8MAX multiplied by NFTPIPAPOGROUPSPERBYTE(f) that can be 2, worst case. - NFTPIPAPOBUCKETS(f->bb) is 2^8, worst case. - sizeof(unsigned long), from sizeof(f->lt), lt in struct nftpipapofield.

Then, use checkmuloverflow() to multiply by bucket size and then use checkaddoverflow() to the alignment for avx2 (if needed). Finally, add ltsizecheckoverflow() helper and use it to consolidate this.

While at it, replace leftover allocation using the GFPKERNEL to GFPKERNELACCOUNT for consistency, in pipaporesize().

Affected Software

9 affected components
Linux Linux kernel
Linux Linux kernel>=5.6<6.12.34
Linux Linux kernel>=6.13<6.15.3
Microsoft azl3 kernel 6.6.96.2-1
Microsoft azl3 kernel 6.6.96.2-2
Microsoft azl3 kernel 6.6.104.2-4
Microsoft azl3 kernel 6.6.112.1-2
Microsoft cbl2 kernel 5.15.186.1-1
Microsoft azl3 kernel 6.6.117.1-1

Event History

Jul 3, 2025
CVE Published
via MITRE·08:36 AM
Data Sourced
via MITRE·08:36 AM
DescriptionSeverity
Data Sourced
via NVD·09:15 AM
RemedyDescriptionSeverityAffected Software
Sep 4, 2025
Data Sourced
via Microsoft·01:32 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·01:32 AM
Affected Software
Updated
via Microsoft·01:32 AM
SeverityAffected Software
Updated
via Microsoft·01:32 AM
DescriptionSeverity
Nov 4, 58546
Event
via MITRE·07:27 PM

Frequently Asked Questions

1

What is the severity of CVE-2025-38162?

The severity of CVE-2025-38162 is classified as medium due to the potential for memory overflow issues.

2

How do I fix CVE-2025-38162?

To fix CVE-2025-38162, update your Linux kernel to the latest version where this vulnerability has been patched.

3

What systems are affected by CVE-2025-38162?

CVE-2025-38162 affects the Linux kernel, particularly systems that rely on the netfilter subsystem.

4

What is the impact of CVE-2025-38162?

The impact of CVE-2025-38162 includes the risk of denial of service or potential remote code execution due to memory allocation overflow.

5

When was CVE-2025-38162 reported?

CVE-2025-38162 was reported in 2025 and is related to vulnerabilities discovered in the Linux kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203