netfilter: ipset: drop logically empty buckets in mtype_del
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 8af1c6fbd9239877998c7f5a591cb2c88d41fb66 · < 68ca0eea0af02bed36c5e2c13e9fa1647c31a7d4| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
In the Linux kernel’s netfilter ipset code, deleting all live entries from a bucket can leave the logically empty bucket allocated. The input does not specify an attacker action or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with netfilter ipset should check their versions against the vendor advisory; affected versions are not specified.