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-98560 Overview
CVE-2026-98560 affects the Linux kernel's Reliable Datagram Sockets (RDS) networking subsystem. The flaw resides in __rds_conn_create(), which computes the number of connection paths (npaths) from the caller's transport before deciding whether to substitute the loopback transport for local destinations. This mismatch causes connection creation and destruction to disagree on the path set, leading to a workqueue memory leak each time a local RDS/TCP connection is torn down.
Critical Impact
Each affected connection leaks seven workqueues on teardown. Repeated network namespace teardowns or module unloads progressively exhaust kernel memory, producing a denial-of-service condition on long-running systems.
Affected Products
- Linux kernel (upstream net/rds subsystem)
- Distributions shipping vulnerable kernel versions with RDS enabled
- Systems using RDS/TCP transport with local destination addresses
Discovery Timeline
- 2026-10-18 - CVE-2026-98560 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-98560
Vulnerability Analysis
The vulnerability is a memory leak [CWE-401] in the Linux kernel's RDS subsystem. The __rds_conn_create() function sizes the per-connection path array using the caller's transport, typically RDS/TCP with RDS_MPATH_WORKERS paths. The function later substitutes the loopback transport when the destination matches a local address.
After substitution, the path initialization loop continues to iterate for all RDS/TCP paths and allocates an ordered workqueue for each. However, rds_loop_conn_alloc() only populates transport data for path 0. The orphaned workqueues on paths 1 through N have no transport data attached.
At teardown, rds_conn_destroy() reads the path count from c_trans, which now points to the loopback transport, so it visits only path 0. rds_conn_path_destroy() returns early for paths without transport data and never calls destroy_workqueue() on the orphaned entries. The subsequent kfree(c_path) releases the array while leaking references to seven workqueues per connection.
Root Cause
The root cause is an ordering defect: npaths is computed before the final transport selection. Creation uses the TCP transport's path count while destruction uses the loopback transport's path count. Each distinct local destination address produces a separate connection, so the leak scales linearly with local-address RDS traffic and recurs on every network namespace teardown or module unload.
Attack Vector
A local, unprivileged process capable of creating RDS sockets to local addresses can repeatedly trigger the leak. Each new local destination allocates a fresh connection with seven leaked workqueues on teardown. Containerized environments that frequently create and destroy network namespaces are especially exposed because namespace teardown walks the connection list.
The upstream fix recomputes npaths after the transport is finalized, ensuring creation and destruction agree on the path set. Unused c_path entries are freed with the array. Refer to the Kernel Git Commit 670f303169 and Kernel Git Commit ba3d1f480c for the patch details.
Detection Methods for CVE-2026-98560
Indicators of Compromise
- Steadily increasing kernel slab allocations attributable to workqueue objects without a corresponding workload increase.
- Growing entries in /proc/slabinfo for workqueue and related caches on hosts running RDS workloads.
- Repeated creation and teardown of network namespaces or rds_tcp module load/unload cycles correlating with memory growth.
Detection Strategies
- Audit kernel versions against distribution advisories referencing the upstream commits 670f303169 and ba3d1f480c.
- Monitor workqueue counts via ls /sys/devices/virtual/workqueue/ and alert on unbounded growth.
- Inspect loaded modules for rds and rds_tcp on systems that do not require RDS, treating their presence as a hardening gap.
Monitoring Recommendations
- Track MemAvailable and slab usage over time; set alerts for sustained decline on systems using RDS.
- Correlate container orchestrator events (namespace churn) with kernel memory metrics to surface leak patterns.
- Collect dmesg warnings related to workqueue allocation failures, which may appear once leaks exhaust reserves.
How to Mitigate CVE-2026-98560
Immediate Actions Required
- Apply the upstream kernel patches referenced by commits 670f303169d2d36f315c40f6d3d18b5ee8498fea and ba3d1f480c7a3fba963e7867ad6cc557c197acbc as soon as distribution builds are available.
- Identify hosts loading the rds and rds_tcp modules and prioritize them for patching, especially container hosts with frequent namespace churn.
- Schedule reboots for long-running systems that already show elevated workqueue counts to reclaim leaked memory.
Patch Information
The fix recomputes npaths after the final transport is selected so that rds_conn_destroy() iterates the correct path set. The c_path array remains sized to the caller's transport, and unused entries are released with it. Patches are available in the referenced stable tree commits; apply the kernel package update supplied by your distribution vendor.
Workarounds
- Blacklist the rds and rds_tcp modules on hosts that do not require RDS, for example by adding blacklist rds and blacklist rds_tcp to /etc/modprobe.d/.
- Restrict unprivileged user namespaces where feasible to limit which processes can create RDS sockets against local addresses.
- Reboot affected hosts periodically to clear accumulated leaked workqueues until patches are deployed.
# Configuration example: disable RDS modules on hosts that do not need them
echo 'blacklist rds' | sudo tee /etc/modprobe.d/disable-rds.conf
echo 'blacklist rds_tcp' | sudo tee -a /etc/modprobe.d/disable-rds.conf
sudo rmmod rds_tcp rds 2>/dev/null || true
# Verify modules are no longer loaded
lsmod | grep -E '^rds'
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

