CVE-2026-31681: netfilter: xt_multiport: validate range encoding in checkentry

Published Apr 25, 2026
·
Updated

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

netfilter: xtmultiport: validate range encoding in checkentry

portsmatchv1() treats any non-zero pflags entry as the start of a port range and unconditionally consumes the next ports[] element as the range end.

The checkentry path currently validates protocol, flags and count, but it does not validate the range encoding itself. As a result, malformed rules can mark the last slot as a range start or place two range starts back to back, leaving portsmatchv1() to step past the last valid ports[] element while interpreting the rule.

Reject malformed multiport v1 rules in checkentry by validating that each range start has a following element and that the following element is not itself marked as another range start.

Affected Software

13 affected componentsFixes available
Linux Linux kernel (netfilter xt_multiport)
Microsoft azl3 kernel 6.6.134.1-2
Linux Linux kernel>=2.6.17<6.6.136
Linux Linux kernel>=6.7<6.12.83
Linux Linux kernel>=6.13<6.18.24
Linux Linux kernel>=6.19<6.19.14
Linux Linux kernel=7.0-rc1
Linux Linux kernel=7.0-rc2
Linux Linux kernel=7.0-rc3
Linux Linux kernel=7.0-rc4
Linux Linux kernel=7.0-rc5
Linux Linux kernel=7.0-rc6
Linux Linux kernel=7.0-rc7

Event History

Apr 25, 2026
CVE Published
via MITRE·08:46 AM
Data Sourced
via MITRE·08:46 AM
Description
Data Sourced
via NVD·09:16 AM
RemedyDescriptionSeverityAffected Software
Apr 26, 2026
Data Sourced
via Microsoft·08:08 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:08 AM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2026-31681?

CVE-2026-31681 is classified as a potential denial-of-service vulnerability in the netfilter xt_multiport module of the Linux kernel.

2

How do I fix CVE-2026-31681?

To fix CVE-2026-31681, upgrade the Linux kernel to a version that includes the security patch for this vulnerability.

3

Which Linux kernel versions are affected by CVE-2026-31681?

CVE-2026-31681 affects certain versions of the Linux kernel that utilize the netfilter xt_multiport module.

4

What impact does CVE-2026-31681 have on system security?

CVE-2026-31681 can lead to denial-of-service conditions, affecting the availability of services on the impacted system.

5

Is CVE-2026-31681 being exploited in the wild?

As of the latest updates, there have been no confirmed reports of exploitation of CVE-2026-31681 in the wild.

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