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-97476 Overview
CVE-2026-97476 is an information disclosure vulnerability in the Linux kernel's Reliable Datagram Sockets (RDS) subsystem. The RDS_INFO_* family of getsockopt(2) options reads several file-scope global lists that are not partitioned per network namespace. Handlers do not filter results by the caller's netns, and neither rds_info_getsockopt() nor rds_create() performs a capable() check. As a result, an unprivileged caller in a fresh user_ns plus netns can enumerate RDS socket state from the host's initial namespace.
Critical Impact
Unprivileged users in a nested user and network namespace can read bound addresses, peer addresses, TCP sequence numbers, and RDS sequence numbers of every RDS socket and connection on the host.
Affected Products
- Linux kernel builds with the RDS subsystem (CONFIG_RDS) enabled
- Linux kernel builds with the RDS-TCP transport (CONFIG_RDS_TCP) enabled
- Systems where unprivileged user namespaces are permitted and the rds / rds_tcp modules are loadable
Discovery Timeline
- 2026-09-24 - CVE-2026-97476 published to NVD
- 2026-09-28 - Last updated in NVD database
Technical Details for CVE-2026-97476
Vulnerability Analysis
The RDS subsystem maintains several global lists that aggregate state across all network namespaces: rds_sock_list, rds_tcp_tc_list, and the rds_conn_hash[] hash table. These structures back the RDS_INFO_SOCKETS, RDS_INFO_RECV_MESSAGES, RDS_INFO_TCP_SOCKETS, RDS_INFO_CONNECTIONS, RDS_INFO_SEND_MESSAGES, RDS_INFO_RETRANS_MESSAGES, and RDS_INFO_IB_CONNECTIONS queries.
Handlers walk these lists without comparing the caller's netns to the netns of each entry. A reproducer binds an AF_RDS socket to 127.0.0.1:4242 as root in init_net, then a child process enters a fresh user and network namespace and calls getsockopt(SOL_RDS, RDS_INFO_SOCKETS). The child receives the init_net socket entry despite having no privilege over it.
Leaked state includes bound addresses and socket inodes of every RDS socket, peer addresses of incoming messages, peer addresses and TCP sequence numbers of every rds-tcp connection, and peer addresses and RDS sequence numbers of every RDS connection on the host.
Root Cause
Two missing checks combine to create the exposure. First, rds_create() has no capable() gate, so AF_RDS sockets are reachable from unprivileged user namespaces. Second, rds_info_getsockopt() has no netns filter and no capable() check. The RDS information handlers were written against file-scope global state before the kernel adopted per-netns isolation for RDS-TCP.
Attack Vector
An unprivileged local user creates a new user namespace with unshare(CLONE_NEWUSER | CLONE_NEWNET), opens an AF_RDS socket inside the child namespace, and issues getsockopt(SOL_RDS, RDS_INFO_*, ...) to retrieve information about RDS sockets and connections owned by other namespaces on the host. The attack requires only local access and no authentication beyond standard user credentials. Full technical details are described in the upstream commit messages referenced below.
Detection Methods for CVE-2026-97476
Indicators of Compromise
- Unexpected creation of AF_RDS sockets by non-root processes, particularly inside containers or sandboxed workloads
- Processes invoking unshare() with CLONE_NEWUSER and CLONE_NEWNET followed by socket(AF_RDS, ...) calls
- Loaded rds or rds_tcp kernel modules on systems that do not use RDS for application workloads
Detection Strategies
- Audit execve, socket, and unshare syscalls through auditd or eBPF probes, flagging AF_RDS (family 21) sockets opened by unprivileged UIDs
- Hunt for getsockopt calls with level=SOL_RDS originating from containers or user-namespace children
- Correlate kernel module load events for rds and rds_tcp against the baseline of expected workloads
Monitoring Recommendations
- Enable kernel audit rules for socket syscalls where domain=AF_RDS and alert on invocation outside of known RDS applications
- Track /proc/kallsyms presence of RDS symbols on hosts that should not expose the transport
- Review container runtime policies that permit CAP_SYS_ADMIN or unrestricted user namespace creation
How to Mitigate CVE-2026-97476
Immediate Actions Required
- Apply the upstream kernel patch that filters RDS_INFO_* responses by the caller's network namespace
- If RDS is not required, blacklist the rds and rds_tcp modules in /etc/modprobe.d/ and remove them from the running kernel
- Restrict unprivileged user namespace creation on hosts where it is not required
Patch Information
The fix compares the caller's socket netns against the netns of each list entry (or rds_conn_net(conn) for connection paths) and only copies matching entries. The unused rds_sock_count, rds_tcp_tc_count, and rds6_tcp_tc_count globals are removed along with their increments and decrements in rds_create(), rds_destroy_sock(), rds_tcp_set_callbacks(), and rds_tcp_restore_callbacks(). Counter queries (RDS_INFO_COUNTERS) remain global as aggregate statistics. See Kernel Git Commit 093f172, Kernel Git Commit c4081e4, and Kernel Git Commit c96a520.
Workarounds
- Blacklist the RDS modules via install rds /bin/true and install rds_tcp /bin/true in /etc/modprobe.d/rds-blacklist.conf
- Set kernel.unprivileged_userns_clone=0 (Debian/Ubuntu) or user.max_user_namespaces=0 to prevent unprivileged user namespace creation
- Use seccomp or LSM policies to deny socket(AF_RDS, ...) from untrusted workloads and container runtimes
# Configuration example
echo 'install rds /bin/true' | sudo tee /etc/modprobe.d/rds-blacklist.conf
echo 'install rds_tcp /bin/true' | sudo tee -a /etc/modprobe.d/rds-blacklist.conf
sudo sysctl -w kernel.unprivileged_userns_clone=0
sudo sysctl -w user.max_user_namespaces=0
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

