netfilter: ipset: stop hash:* range iteration at end
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 48596a8ddc46f96afb6a2cd72787cb15d6bb01fc · < 952e988163c2ab9939c3db9f0f8e77af6a1bb436| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
netfilter: ipset: stop hash:* range iteration at end
The following hash set variants:
hash:ip,mark hash:ip,port hash:ip,port,ip hash:ip,port,net
iterate IPv4 ranges with a 32-bit iterator.
The iterator must stop once the last address in the requested range has been processed. Advancing it once more can move the traversal state past the end of the request, so a later retry may continue from an unintended position.
Handle the iterator increment explicitly at the end of the loop and stop once the upper bound has been processed. This keeps the existing retry behaviour intact for valid ranges while preventing traversal from continuing past the original boundary.
From the CVE record · Linux
The Linux kernel’s netfilter ipset hash set variants can advance an IPv4 range iterator past the requested upper bound, causing a later retry to continue from an unintended position. The input does not establish what an attacker could do with this behavior or specify access, authentication, or user-interaction requirements.
Engineers running Linux kernels that use the affected netfilter ipset hash set variants should check whether their kernel includes the fix; affected versions are not specified.