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-98070 Overview
CVE-2026-98070 is a race condition in the Linux kernel's Reliable Datagram Sockets (RDS) over TCP transport. The flaw lives in rds_tcp_reset_callbacks(), which quiesces the transmit path by setting the connection state to RDS_CONN_RESETTING and waiting for the RDS_IN_XMIT bit to clear. Sampling the bit is not equivalent to owning it, so rds_send_xmit() can re-acquire RDS_IN_XMIT immediately after the wait returns. On weakly ordered architectures, the store-buffering pattern between the resetter and the sender allows both paths to miss each other's writes. The transmit path then runs concurrently with rds_send_path_reset() while that function rewrites cp_xmit_* state.
Critical Impact
Concurrent execution of the TCP reset and transmit paths can corrupt per-connection send state and operate on a stale t_sock pointer, enabling memory corruption or denial of service in the kernel.
Affected Products
- Linux kernel net/rds TCP transport (upstream, pre-fix)
- Stable kernel branches referenced by commits 02c5f9dc, 062d9e00, 8e4c3b78, and d6251125
- Distributions shipping the vulnerable rds_tcp module without the backported fix
Discovery Timeline
- 2026-09-25 - CVE-2026-98070 published to NVD
- 2026-09-30 - Last updated in NVD database
Technical Details for CVE-2026-98070
Vulnerability Analysis
The RDS TCP transport serializes shutdown and transmit using two signals: the path state (RDS_CONN_RESETTING) and the RDS_IN_XMIT bit. rds_tcp_reset_callbacks() writes the state, then calls wait_event() until it observes RDS_IN_XMIT cleared, and finally swaps the underlying socket before invoking rds_send_path_reset(). The sender executes the mirror pattern: it writes the RDS_IN_XMIT bit via acquire_in_xmit(), then rechecks the path state.
Because acquire_in_xmit() is only an acquire operation and the two writes/reads form a store-buffering pattern, weakly ordered CPUs permit both sides to miss the other's store. The resetter proceeds while the sender re-enters the transmit path, and rds_send_path_reset() rewrites cp_xmit_* while another CPU reads and updates the same fields.
A secondary issue compounds the race. The old code cached t_sock before waiting, but rds_conn_shutdown() can release that socket and clear t_sock during the wait. The accept path then resumes with a dangling pointer. A third latent issue exists in the !osock early path, which called rds_send_path_reset() with no serialization at all.
Root Cause
The root cause is incorrect synchronization between the TCP callback reset and the send path. Sampling RDS_IN_XMIT under a weak memory model is insufficient to establish mutual exclusion with a concurrent sender. This is a classic race condition in kernel socket teardown logic.
Attack Vector
The attack surface is network-adjacent. A local or remote peer that can trigger RDS/TCP reconnection events, combined with concurrent transmit activity on the same path, can provoke the race. Exploitation complexity is high because it depends on timing windows and CPU memory ordering, but successful triggering corrupts kernel state and can lead to use-after-free of the socket pointer or denial of service.
No public proof-of-concept is available. Technical details are documented in the upstream patch commits.
Detection Methods for CVE-2026-98070
Indicators of Compromise
- Unexpected kernel oops or BUG reports originating in rds_send_xmit, rds_send_path_reset, or rds_tcp_reset_callbacks
- Kernel log entries referencing invalid socket pointers or NULL dereferences in the rds_tcp module
- Repeated RDS connection resets correlated with high transmit load on affected hosts
Detection Strategies
- Inventory hosts with the rds and rds_tcp kernel modules loaded using lsmod | grep rds across the fleet
- Monitor kernel crash telemetry for stack traces that include RDS send or reset symbols
- Correlate netlink and audit events showing RDS socket creation by non-infrastructure processes
Monitoring Recommendations
- Forward kernel.log, kmsg, and kdump artifacts to a central platform for pattern analysis
- Alert on new processes that call socket(AF_RDS, ...) on hosts where RDS is not required
- Track running kernel versions to confirm the fix commits are present on all production nodes
How to Mitigate CVE-2026-98070
Immediate Actions Required
- Apply vendor kernel updates that include commits 02c5f9dc2efd, 062d9e008c67, 8e4c3b7844c9, and d625112564c3
- Blacklist the rds and rds_tcp modules on systems that do not require RDS connectivity
- Restrict CAP_NET_RAW and the ability to create AF_RDS sockets to trusted service accounts
Patch Information
The upstream fix changes rds_tcp_reset_callbacks() to acquire RDS_IN_XMIT as a lock rather than sample it, holding it across the socket swap and the call to rds_send_path_reset() before releasing it with a wake-up. Reading t_sock under the lock eliminates the stale-pointer window, and the !osock early path is brought under the same serialization. See the kernel commits: Kernel Git Commit 02c5f9d, Kernel Git Commit 062d9e0, Kernel Git Commit 8e4c3b7, and Kernel Git Commit d625112.
Workarounds
- Prevent the rds_tcp module from loading by adding a blacklist rds_tcp entry to /etc/modprobe.d/
- Enforce sysctl and seccomp policy that denies AF_RDS socket creation for workloads that do not need it
- Isolate hosts that must retain RDS to management networks that disallow untrusted peers
# Configuration example: disable RDS modules on hosts that do not require them
echo 'install rds /bin/true' | sudo tee /etc/modprobe.d/disable-rds.conf
echo 'install rds_tcp /bin/true' | sudo tee -a /etc/modprobe.d/disable-rds.conf
echo 'install rds_rdma /bin/true' | sudo tee -a /etc/modprobe.d/disable-rds.conf
sudo rmmod rds_tcp rds_rdma rds 2>/dev/null || true
lsmod | grep -E '^rds' && echo 'RDS still loaded' || echo 'RDS not loaded'
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

