# CVE-2026-31418: netfilter: ipset: drop logically empty buckets in mtype\_del

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-04-13 · Modified: 2026-11-10
- Aliases: UBUNTU-CVE-2026-31418, DEBIAN-CVE-2026-31418
- Record: https://cvemate.com/vulnerability/CVE-2026-31418 · JSON: https://cvemate.com/vulnerability/CVE-2026-31418/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.174%, percentile 7.129%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 157)

- debian linux (Debian): \< 6.1.170-1 \| \< 6.12.85-1 \| \< 6.19.12-1
- ubuntu linux (Ubuntu): \< 5.4.0-233.253 \| \< 5.15.0-185.195 \| \< 6.8.0-134.134 \| \< 6.17.0-40.40
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 5.4.0-1161.172 \| \< 5.15.0-1111.118 \| \< 6.8.0-1060.63 \| \< 6.17.0-1019.19
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1111.118~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1161.172~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.17 (Ubuntu): \< 6.17.0-1019.19~24.04.1
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1060.63~22.04.1
- ubuntu linux-aws-fips (Ubuntu): \< 5.4.0-1161.172+fips1 \| All versions (No fix recorded) \| \< 5.15.0-1111.118+fips1 \| \< 6.8.0-1060.63+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1166.172 \| \< 5.15.0-1116.125 \| \< 6.8.0-1063.71
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 46)

- <https://git.kernel.org/stable/c/c098ff857e7ca923539164af5b3c2fe3e8f8afaf>
- <https://git.kernel.org/stable/c/58f3a14826d4e6b0d5421f1a64be280b48601ea2>
- <https://git.kernel.org/stable/c/ad92ee87462f9a3061361d392e9dbfe2e5c1c9fb>
- <https://git.kernel.org/stable/c/6cea34d7ec6829b62f521a37a287f670144a2233>
- <https://git.kernel.org/stable/c/b7eef00f08b92b0b9efe8ae0df6d0005e6199323>
- <https://git.kernel.org/stable/c/68ca0eea0af02bed36c5e2c13e9fa1647c31a7d4>
- <https://git.kernel.org/stable/c/ceacaa76f221a6577aba945bb8873c2e640aeba4>
- <https://git.kernel.org/stable/c/9862ef9ab0a116c6dca98842aab7de13a252ae02>
- <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- <https://ubuntu.com/security/CVE-2026-31418>
- <https://www.cve.org/CVERecord?id=CVE-2026-31418>
- <https://git.kernel.org/linus/9862ef9ab0a116c6dca98842aab7de13a252ae02>
- <https://ubuntu.com/security/notices/USN-8490-1>
- <https://ubuntu.com/security/notices/USN-8491-1>
- <https://ubuntu.com/security/notices/USN-8492-1>
- <https://ubuntu.com/security/notices/USN-8493-1>
- <https://ubuntu.com/security/notices/USN-8492-2>
- <https://ubuntu.com/security/notices/USN-8497-1>
- <https://ubuntu.com/security/notices/USN-8498-1>

---

Data as of 2026-12-06T04:33:04.064Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
