Linux Netfilter ipset Flaw Enables Out-of-Bounds Memory Access
Attack Tradecraft · 7 sources · Updated 3mo ago · First seen Jan 23, 2024

CVE-2023-42753 is a high-severity Linux kernel Netfilter flaw in the hash:net,port,net ipset implementation. A missing IP_SET_HASH_WITH_NET0 macro causes an incorrect CIDR_POS(c) array-offset calculation, permitting integer underflow and an out-of-bounds increment or decrement of the h->nets array. A local low-privileged attacker could crash an affected system and potentially elevate privileges; Red Hat rated the issue CVSS 7.0, while NVD assigned 7.8.
Upstream corrected the defect in commit 050d91c03b28ca479df13dfb02bcd2c60dd6a878, with Fedora including the fix in kernel 6.5.3. Red Hat issued updates across affected RHEL 7, 8, and 9 package streams, including RHEL 8.8 live-kernel patches delivered through RHSA-2023:7558; the kpatch-patch modules load automatically and apply the fix without a conventional reboot. No practical mitigation is available, so organizations should update affected kernel packages promptly; RHEL 7.6 was assessed as unaffected because it rejects /0 netmasks.
Why it matters
Impact assessment
CVE-2023-42753 affects Linux systems using the Netfilter ipset hash:net,port,net type, including supported Red Hat Enterprise Linux 7, 8, and 9 update streams identified in Red Hat advisories. A local low-privileged user can trigger kernel memory corruption, causing denial of service and potentially privilege escalation to full system compromise.
- Severity: High. Red Hat scored it CVSS 7.0; NVD scored it 7.8.
- Business impact: A successful exploit can disrupt SAP, telecommunications, real-time/NFV, and general enterprise workloads through a kernel crash; privilege escalation could expose all data and services hosted by the affected system.
- Exposure scope: Exploitation is local, not a direct network attack. Risk is highest on multi-user servers, shared compute platforms, container hosts, and systems where untrusted users or workloads can obtain local execution and manipulate ipsets.
- Trigger condition: The vulnerable
hash:net,port,netimplementation must accept/0CIDR netmasks. RHEL 7.6 is not affected because that release rejects/0for this ipset type. - Exploitation status: The supplied references do not report exploitation in the wild.
Affected entities and products
- Linux kernel Netfilter / ipset subsystem
- RHEL 7 kernel and
kernel-rt; fixed by RHSA-2024:0346 and RHSA-2024:0347 - RHEL 7
kpatch-patch; fixed by RHSA-2024:0371 - RHEL 8 and RHEL 8.8 support streams, including EUS, TUS, SAP Update Services, and Power LE; includes RHSA-2023:7558
- RHEL 8.2 SAP Solutions
kpatch-patchon x86_64 and ppc64le; fixed by RHSA-2024:0376 - RHEL 9 update streams identified in Red Hat advisories including RHSA-2023:7370, RHSA-2023:7379, RHSA-2023:7418, RHSA-2023:7382, RHSA-2023:7389, RHSA-2023:7411, RHSA-2024:0340, and RHSA-2024:0461
- Fedora fixed the issue in stable kernel 6.5.3


