Skip to main content
Mallory
← Back to News
privilege-escalation-methodwidely-deployed-product-advisoryendpoint-software-vulnerability

Linux Netfilter ipset Flaw Enables Out-of-Bounds Memory Access

Attack Tradecraft · 7 sources · Updated 3mo ago · First seen Jan 23, 2024

Linux Netfilter ipset Flaw Enables Out-of-Bounds Memory Access

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,net implementation must accept /0 CIDR netmasks. RHEL 7.6 is not affected because that release rejects /0 for 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-patch on 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
Who uses this technique?Get the actors, campaigns, and ATT&CK mapping behind it.
Get the tradecraft
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

8 events · Nov 28, 2023 – Jan 23, 2024
  1. Reported Jan 23, 20243y ago

    Red Hat fixes RHEL 7.7 Advanced Update Support kernel

    Red Hat released RHSA-2024:0999 to fix CVE-2023-42753 in the RHEL 7.7 Advanced Update Support kernel.

    2239843 - (CVE-2023-42753) CVE-2023-42753 kernel: netfilter: potential slab-out-of-bound access due to integer underflow
  2. Reported Jan 23, 20243y ago

    Red Hat releases RHEL 8.2 support-stream fixes

    Red Hat issued RHSA-2024:0403 for RHEL 8.2 Advanced Update Support and RHSA-2024:0402 and RHSA-2024:0403 for RHEL 8.2 Telecommunications Update Service, addressing CVE-2023-42753 in affected kernel packages.

    2239843 - (CVE-2023-42753) CVE-2023-42753 kernel: netfilter: potential slab-out-of-bound access due to integer underflow
  3. Reported Jan 23, 20243y ago

    Red Hat releases RHEL 9 updates for CVE-2023-42753

    Red Hat issued fixes for RHEL 9.2 and 9.0 Extended Update Support through RHSA-2023:7379, RHSA-2023:7370, RHSA-2023:7418, RHSA-2023:7389, RHSA-2023:7382, and RHSA-2023:7411.

    2239843 - (CVE-2023-42753) CVE-2023-42753 kernel: netfilter: potential slab-out-of-bound access due to integer underflow
  4. Reported Jan 23, 20243y ago

    Upstream Linux kernel fixes CVE-2023-42753

    The upstream Linux kernel corrected the Netfilter issue in commit 050d91c03b28ca479df13dfb02bcd2c60dd6a878. Fedora subsequently delivered the correction in stable Linux kernel 6.5.3 updates.

    2239843 - (CVE-2023-42753) CVE-2023-42753 kernel: netfilter: potential slab-out-of-bound access due to integer underflow
  5. Reported Jan 23, 20243y ago

    Linux kernel Netfilter flaw identified as CVE-2023-42753

    A missing IP_SET_HASH_WITH_NET0 macro in the Netfilter ipset hash:net,port,net implementation could cause an integer underflow and slab out-of-bounds memory access when handling /0 CIDR netmasks. A local low-privileged attacker could potentially crash an affected system or escalate privileges.

    2239843 - (CVE-2023-42753) CVE-2023-42753 kernel: netfilter: potential slab-out-of-bound access due to integer underflow
  6. Jan 23, 20243y ago

    Red Hat releases RHEL 8.2 SAP Solutions live patch

    Red Hat issued RHSA-2024:0376, an Important kpatch-patch live-kernel update for RHEL 8.2 Update Services for SAP Solutions on x86_64 and Power LE ppc64le. The update remediated CVE-2023-42753 alongside CVE-2023-4622 and CVE-2023-2163 without requiring a conventional reboot.

    RHSA-2024:0376 - Security Advisory - Red Hat Customer Portal
  7. Jan 23, 20243y ago

    Red Hat ships RHEL 7 kernel and live-patch fixes

    Red Hat released RHSA-2024:0346 and RHSA-2024:0347 for RHEL 7 kernel and kernel-rt packages, plus RHSA-2024:0371 for the RHEL 7 kpatch-patch package, to remediate CVE-2023-42753.

    2239843 - (CVE-2023-42753) CVE-2023-42753 kernel: netfilter: potential slab-out-of-bound access due to integer underflow
  8. Nov 28, 20233y ago

    Red Hat releases RHEL 8.8 live patch for CVE-2023-42753

    Red Hat published RHSA-2023:7558, an Important advisory providing updated kpatch-patch live kernel modules for RHEL 8.8 support channels. The update addressed CVE-2023-42753 along with five other Linux kernel vulnerabilities and could patch running kernels without a conventional reboot.

    RHSA-2023:7558 - Security Advisory - Red Hat Customer Portal
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Red Hat Enterprise Linux

Organizations

1 linked
Red Hat
Do you run this?Get the adversaries, campaigns, and ATT&CK mapping behind this technique, with detections ready to deploy.
See Who Uses This Technique
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.