CVE-2026-31418 PUBLISHED

netfilter: ipset: drop logically empty buckets in mtype_del

Assigner: Linux
Reserved: 09.03.2026 Published: 13.04.2026 Updated: 13.04.2026

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

netfilter: ipset: drop logically empty buckets in mtype_del

mtype_del() counts empty slots below n->pos in k, but it only drops the bucket when both n->pos and k are zero. This misses buckets whose live entries have all been removed while n->pos still points past deleted slots.

Treat a bucket as empty when all positions below n->pos are unused and release it directly instead of shrinking it further.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 8af1c6fbd9239877998c7f5a591cb2c88d41fb66 to ad92ee87462f9a3061361d392e9dbfe2e5c1c9fb (excl.)
  • affected from 8af1c6fbd9239877998c7f5a591cb2c88d41fb66 to 6cea34d7ec6829b62f521a37a287f670144a2233 (excl.)
  • affected from 8af1c6fbd9239877998c7f5a591cb2c88d41fb66 to b7eef00f08b92b0b9efe8ae0df6d0005e6199323 (excl.)
  • affected from 8af1c6fbd9239877998c7f5a591cb2c88d41fb66 to 68ca0eea0af02bed36c5e2c13e9fa1647c31a7d4 (excl.)
  • affected from 8af1c6fbd9239877998c7f5a591cb2c88d41fb66 to ceacaa76f221a6577aba945bb8873c2e640aeba4 (excl.)
  • affected from 8af1c6fbd9239877998c7f5a591cb2c88d41fb66 to 9862ef9ab0a116c6dca98842aab7de13a252ae02 (excl.)
  • Version 6c717726f341fd8f39a3ec2dcf5d98d9d28a2769 is affected
  • Version d2997d64dfa65082236bca1efd596b6c935daf5e is affected
Vendor Linux
Product Linux
Versions Default: affected
  • Version 5.6 is affected
  • unaffected from 0 to 5.6 (excl.)
  • unaffected from 6.1.168 to 6.1.* (incl.)
  • unaffected from 6.6.134 to 6.6.* (incl.)
  • unaffected from 6.12.81 to 6.12.* (incl.)
  • unaffected from 6.18.22 to 6.18.* (incl.)
  • unaffected from 6.19.12 to 6.19.* (incl.)
  • unaffected from 7.0 to * (incl.)

References