netfilter: ipset: add the missing IP_SET_HASH_WITH_NET0 macro for ip_set_hash_netportnet.c
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 886503f34d63e681662057448819edb5b1057a97 · < 7ca0706c68adadf86a36b60dca090f5e9481e808| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
netfilter: ipset: add the missing IP_SET_HASH_WITH_NET0 macro for ip_set_hash_netportnet.c
The missing IP_SET_HASH_WITH_NET0 macro in ip_set_hash_netportnet can lead to the use of wrong `CIDR_POS(c)` for calculating array offsets, which can lead to integer underflow. As a result, it leads to slab out-of-bound access. This patch adds back the IP_SET_HASH_WITH_NET0 macro to ip_set_hash_netportnet to address the issue.
From the CVE record · Linux
A missing macro in the Linux kernel’s ipset hash_netportnet implementation can cause an integer underflow and out-of-bounds slab access. The input does not specify how an attacker could trigger the issue, whether authentication or user interaction is required, or whether access is local or over a network.
Engineers running the Linux kernel should check whether their version is affected; affected versions are not specified in the input.