Skip to main content
Vulnerability Database/CVE-2026-97998

CVE-2026-97998: Linux Kernel Race Condition Vulnerability

CVE-2026-97998 is a race condition flaw in Linux kernel netfilter nfnetlink_log that allows concurrent instance destruction issues. This post explains its technical details, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-97998 Overview

CVE-2026-97998 is a race condition vulnerability in the Linux kernel's netfilter subsystem, specifically within the nfnetlink_log module. The flaw stems from improper handling of concurrent instance destruction when refcounted queue instances are unlinked from internal hashes. Uncooperative userspace can trigger a scenario where a queue pending destruction via a netlink event races with another socket processing an UNBIND request using the same portid. The resulting double-unhash corrupts kernel state and produces a general protection fault in nfulnl_recv_config, leading to a kernel crash.

Critical Impact

Local unprivileged users with the ability to open netlink sockets can trigger a kernel general protection fault, resulting in denial of service and potential memory corruption.

Affected Products

  • Linux kernel (netfilter subsystem, nfnetlink_log module)
  • Distributions shipping affected stable kernel branches prior to the referenced upstream fixes
  • Systems exposing CAP_NET_ADMIN or user namespaces with netlink access

Discovery Timeline

  • 2026-09-25 - CVE-2026-97998 published to the National Vulnerability Database
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-97998

Vulnerability Analysis

The nfnetlink_log module manages logging instances that are tracked via reference counting. Memory release only occurs on the refcount 1 -> 0 transition, but the unlink from the instance hash table can execute at any refcount value. This design assumption breaks when two concurrent control paths manipulate the same instance.

An attacker triggers the race by causing a queue to be pending destruction through a netlink event while a second socket, sharing the same portid, simultaneously processes an UNBIND request. With precise timing, the second code path unhashes an instance that was already unlinked, corrupting the hash list structure. The crash manifests inside nfulnl_recv_config+0x31a/0xd50 invoked from nfnetlink_rcv_msg+0x7c2/0xeb0, producing a general protection fault.

Root Cause

The root cause is a logic flaw separating refcount lifecycle from hash membership. Because unlinking is not gated on the refcount reaching zero, a second concurrent request can re-execute the unhash operation on a stale node. This constitutes a classic Time-of-Check Time-of-Use race condition on the hash list state.

Attack Vector

Exploitation requires local access and the ability to open NFNL_SUBSYS_ULOG netlink sockets. An attacker scripts rapid creation, binding, and destruction of logging instances across multiple sockets sharing a portid, racing kernel teardown against userspace UNBIND processing. The vulnerability does not require authenticated remote access, but kernel netfilter configuration privileges are needed within the attacker's namespace.

See the upstream fixes for implementation details: Kernel Git Commit 0234d7c, Kernel Git Commit 1a7a8ac, Kernel Git Commit 387d744, and Kernel Git Commit e2dd0f1.

Detection Methods for CVE-2026-97998

Indicators of Compromise

  • Kernel log entries containing general protection fault with call traces referencing nfulnl_recv_config and nfnetlink_rcv_msg.
  • Unexpected kernel panics or soft lockups on hosts that permit unprivileged user namespace creation.
  • Processes repeatedly opening and closing netlink sockets with matching portids targeting the NFNL_SUBSYS_ULOG subsystem.

Detection Strategies

  • Monitor dmesg and /var/log/kern.log for crash signatures involving nfnetlink_log functions in the stack trace.
  • Audit netlink socket activity using eBPF or auditd rules to flag high-rate NFULNL_CFG_CMD_BIND and NFULNL_CFG_CMD_UNBIND sequences from the same portid.
  • Correlate host crash telemetry with recent process execution to identify abuse patterns.

Monitoring Recommendations

  • Centralize kernel crash dumps and parse them for netfilter subsystem call traces.
  • Alert on unexpected kernel version mismatches across fleets to identify unpatched hosts.
  • Track anomalous use of CAP_NET_ADMIN or user namespace creation by non-system accounts.

How to Mitigate CVE-2026-97998

Immediate Actions Required

  • Apply the upstream Linux kernel patches referenced in the stable git commits and reboot affected hosts.
  • Inventory kernel versions across the fleet and prioritize multi-tenant systems and container hosts.
  • Restrict unprivileged user namespace creation on hosts that do not require it.

Patch Information

The fix is distributed across four stable kernel commits: 0234d7c, 1a7a8ac, 387d744, and e2dd0f1. The patches synchronize instance hash manipulation with refcount transitions so that unhashing cannot occur twice for the same instance. Rebuild distribution kernels or upgrade to a vendor-provided stable release that incorporates these commits.

Workarounds

  • Disable the nfnetlink_log module via modprobe -r nfnetlink_log and blacklist it where logging functionality is not required.
  • Set kernel.unprivileged_userns_clone=0 to prevent unprivileged users from creating network namespaces that expose netfilter configuration.
  • Restrict CAP_NET_ADMIN to trusted system accounts and audit container runtime capability grants.
bash
# Configuration example
# Disable unprivileged user namespaces to reduce attack surface
sysctl -w kernel.unprivileged_userns_clone=0

# Blacklist the vulnerable module where not needed
echo 'blacklist nfnetlink_log' > /etc/modprobe.d/blacklist-nfnetlink_log.conf
modprobe -r nfnetlink_log

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.