netfilter: ipset: add missing range check in bitmap_ip_uadt
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 72205fc68bd13109576aa6c4c12c740962d28a6c · < 856023ef032d824309abd5c747241dffa33aae8c| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
netfilter: ipset: add missing range check in bitmap_ip_uadt
When tb[IPSET_ATTR_IP_TO] is not present but tb[IPSET_ATTR_CIDR] exists, the values of ip and ip_to are slightly swapped. Therefore, the range check for ip should be done later, but this part is missing and it seems that the vulnerability occurs.
So we should add missing range checks and remove unnecessary range checks.
From the CVE record · Linux
The Linux kernel’s netfilter ipset component is missing a range check in bitmap_ip_uadt when IPSET_ATTR_CIDR is present and IPSET_ATTR_IP_TO is absent. The input does not specify what an attacker can achieve or whether exploitation requires network access, authentication, or user interaction.
Engineers running Linux kernels with the affected netfilter ipset code should check their systems; affected versions are not specified.