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-98498 Overview
CVE-2026-98498 is a reference count leak in the Linux kernel's Mellanox mlx5 driver, specifically in the connection tracking (CT) subsystem. The flaw lives in mlx5_tc_ct_shared_counter_get(). When the reverse entry is located but its counter is already being released, refcount_inc_not_zero() fails. The reference previously acquired by mlx5_tc_ct_entry_get() is never released before the code falls through to create_counter. The result is that the reverse entry stays alive indefinitely, held by a shared counter lookup that ultimately did not use it. The upstream fix drops the reference on the failure path.
Critical Impact
The leak keeps connection tracking entries pinned in kernel memory, which can lead to resource exhaustion over time on systems that heavily use mlx5 hardware offload for CT.
Affected Products
- Linux kernel builds that include the net/mlx5 traffic-classifier connection tracking offload path
- Systems using Mellanox ConnectX NICs with hardware-offloaded CT via tc
- Distributions shipping affected stable kernel branches referenced in the upstream commits
Discovery Timeline
- 2026-10-18 - CVE-2026-98498 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-98498
Vulnerability Analysis
The mlx5_tc_ct_shared_counter_get() function attempts to reuse a counter from a reverse CT entry. It calls mlx5_tc_ct_entry_get() on the candidate rev_entry, which increases the reverse entry's refcount. It then invokes refcount_inc_not_zero() on the entry's shared counter. If the counter is in the middle of being released, that call returns false. The function falls through to create_counter without calling the matching put on rev_entry. Each failed lookup therefore permanently increments the reverse entry's refcount by one.
Because CT entries are reclaimed only when their refcount reaches zero, pinned entries accumulate in kernel memory. On busy forwarding paths or short-lived flow workloads that churn CT entries, the leak drives steady, unbounded growth. The practical impact is kernel memory exhaustion and degraded CT offload behavior, not direct code execution.
Root Cause
The root cause is a missing reference release on an error-handling fallthrough path, a classic resource management defect. The acquire call on rev_entry succeeds, but the subsequent conditional acquisition on the shared counter fails. The code lacks a mlx5_tc_ct_entry_put() before continuing to the counter creation branch.
Attack Vector
The condition is triggered during normal CT offload operation when a reverse entry's counter is being torn down concurrently with a shared counter lookup. A local workload that creates and tears down many connections tracked by tc CT offload on mlx5 hardware can repeatedly hit the race window. No authentication bypass or memory-safety primitive is granted by the flaw itself. See the upstream patches for the exact code change: Kernel Git Commit 0bf6bb5 and Kernel Git Commit c45c997.
Detection Methods for CVE-2026-98498
Indicators of Compromise
- Steady, unexplained growth in kernel slab allocations tied to mlx5 CT entries on hosts running affected kernels.
- Rising counts of pinned connection tracking entries that outlive the flows that created them.
- Memory pressure or OOM events on NIC-heavy hosts correlated with sustained tc CT offload workloads.
Detection Strategies
- Compare the running kernel version against the fixed commits listed in the upstream references to identify unpatched hosts.
- Monitor /proc/slabinfo and mlx5 CT entry counters for monotonic growth that does not drop under flow expiry.
- Track dmesg for mlx5 CT subsystem warnings coinciding with increased refcount pressure.
Monitoring Recommendations
- Instrument hosts using mlx5 hardware CT offload with memory and CT-entry gauges exported to the SIEM.
- Alert on sustained memory growth on Linux hosts with Mellanox NICs that cannot be attributed to active flows.
- Include kernel package version telemetry in asset inventory to prioritize patching of affected builds.
How to Mitigate CVE-2026-98498
Immediate Actions Required
- Identify hosts running Linux kernels that include the mlx5 CT offload path and verify whether the fix commits are present.
- Apply the stable kernel update from your distribution that incorporates the upstream patch.
- Reboot affected hosts after upgrade so the patched mlx5 module is loaded.
Patch Information
The fix drops the extra reference on rev_entry before falling through to create_counter. Multiple stable branches have received the backport. Reference the upstream commits for the exact change set: Kernel Git Commit 1f13989, Kernel Git Commit 2887210, Kernel Git Commit 598daa5, Kernel Git Commit 60eab87, Kernel Git Commit 79a3257, and Kernel Git Commit 99d8dc5.
Workarounds
- Where patching is not immediately feasible, disable hardware CT offload on mlx5 interfaces to avoid the vulnerable code path.
- Reduce reliance on tc connection tracking offload for high-churn workloads until the fix is deployed.
- Schedule periodic reboots of affected hosts to reclaim leaked memory as a temporary stop-gap.
# Verify running kernel and mlx5 CT offload status before patching
uname -r
ethtool -k <mlx5_iface> | grep -i hw-tc-offload
# Temporarily disable TC hardware offload on an mlx5 interface
ethtool -K <mlx5_iface> hw-tc-offload off
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

