# CVE-2026-31418: netfilter: ipset: drop logically empty buckets in mtype_del

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 7% of CVEs (2026-12-01)
- Published: 2026-04-13T13:21:05.316Z
- Modified: 2026-11-10T13:18:52.830Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 8af1c6fbd9239877998c7f5a591cb2c88d41fb66 before c098ff857e7ca923539164af5b3c2fe3e8f8afaf; from 8af1c6fbd9239877998c7f5a591cb2c88d41fb66 before 58f3a14826d4e6b0d5421f1a64be280b48601ea2; from 8af1c6fbd9239877998c7f5a591cb2c88d41fb66 before ad92ee87462f9a3061361d392e9dbfe2e5c1c9fb; from 8af1c6fbd9239877998c7f5a591cb2c88d41fb66 before 6cea34d7ec6829b62f521a37a287f670144a2233; from 8af1c6fbd9239877998c7f5a591cb2c88d41fb66 before b7eef00f08b92b0b9efe8ae0df6d0005e6199323; from 8af1c6fbd9239877998c7f5a591cb2c88d41fb66 before 68ca0eea0af02bed36c5e2c13e9fa1647c31a7d4; from 8af1c6fbd9239877998c7f5a591cb2c88d41fb66 before ceacaa76f221a6577aba945bb8873c2e640aeba4; from 8af1c6fbd9239877998c7f5a591cb2c88d41fb66 before 9862ef9ab0a116c6dca98842aab7de13a252ae02; 6c717726f341fd8f39a3ec2dcf5d98d9d28a2769; d2997d64dfa65082236bca1efd596b6c935daf5e; from 5.4.24 before 5.5; from 5.5.8 before 5.6; and 1 more (not affected: before 5.6; from 5.10.253 up to 5.10.*; from 5.15.203 up to 5.15.*; from 6.1.168 up to 6.1.*; from 6.6.134 up to 6.6.*; from 6.12.81 up to 6.12.*; from 6.18.22 up to 6.18.*; from 6.19.12 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 5.4.24 before 5.5; from 5.5.8 before 5.6; from 5.6.1 before 5.10.253; from 5.11 before 5.15.203; from 5.16 before 6.1.168; from 6.2 before 6.6.134; from 6.7 before 6.12.81; from 6.13 before 6.18.22; from 6.19 before 6.19.12; 5.6; 7.0

## References

- <https://git.kernel.org/stable/c/c098ff857e7ca923539164af5b3c2fe3e8f8afaf> (patch)
- <https://git.kernel.org/stable/c/58f3a14826d4e6b0d5421f1a64be280b48601ea2> (patch)
- <https://git.kernel.org/stable/c/ad92ee87462f9a3061361d392e9dbfe2e5c1c9fb> (patch)
- <https://git.kernel.org/stable/c/6cea34d7ec6829b62f521a37a287f670144a2233> (patch)
- <https://git.kernel.org/stable/c/b7eef00f08b92b0b9efe8ae0df6d0005e6199323> (patch)
- <https://git.kernel.org/stable/c/68ca0eea0af02bed36c5e2c13e9fa1647c31a7d4> (patch)
- <https://git.kernel.org/stable/c/ceacaa76f221a6577aba945bb8873c2e640aeba4> (patch)
- <https://git.kernel.org/stable/c/9862ef9ab0a116c6dca98842aab7de13a252ae02> (patch)
- <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## Sources

- CVE List: [CVE-2026-31418](https://www.cve.org/CVERecord?id=CVE-2026-31418), CVE Terms of Use, modified 2026-11-10
- NVD: [CVE-2026-31418](https://nvd.nist.gov/vuln/detail/CVE-2026-31418), Public domain, modified 2026-11-10

---

Page: https://cve.day/CVE-2026-31418 · Whole record: https://cve.day/CVE-2026-31418.json · Rebuilt by cve.day 2026-11-25T22:59:18.610Z
