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.
https://git.kernel.org/stable/c/856023ef032d824309abd5c747241dffa33aae8c
https://git.kernel.org/stable/c/591efa494a1cf649f50a35def649c43ae984cd03
https://git.kernel.org/stable/c/3c20b5948f119ae61ee35ad8584d666020c91581
https://git.kernel.org/stable/c/35f56c554eb1b56b77b3cf197a6b00922d49033d
https://git.kernel.org/stable/c/15794835378ed56fb9bacc6a5dd3b9f33520604e