VDB

CVE-2026-97476

CVE-2026-97476 PUBLISHED

rds: filter RDS_INFO_* getsockopt by caller's netns

Reported by linux · Published September 24, 2026

In the Linux kernel, the following vulnerability has been resolved: rds: filter RDS_INFO_* getsockopt by caller's netns The RDS_INFO_* family of getsockopt(2) options reads several file-scope global lists that are not per-netns: rds_sock_info / rds6_sock_info, rds_sock_inc_info / rds6_sock_inc_info -> rds_sock_list rds_tcp_tc_info / rds6_tcp_tc_info -> rds_tcp_tc_list rds_conn_info / rds6_conn_info, rds_conn_message_info_cmn (for the *_SEND_MESSAGES and *_RETRANS_MESSAGES variants), rds_for_each_conn_info (for RDS_INFO_IB_CONNECTIONS) -> rds_conn_hash[] The handlers do not filter by the caller's network namespace. rds_info_getsockopt() has no netns or capable() check, and rds_create() has no capable() check, so AF_RDS is reachable from an unprivileged user namespace. As a result, an unprivileged caller in a fresh user_ns plus netns can read the bound address and sock inode of every RDS socket on the host, the peer address of incoming messages on every RDS socket on the host, the peer address and TCP sequence numbers of every rds-tcp connection on the host, and the peer address and RDS sequence numbers of every RDS connection on the host. The rds-tcp transport is reachable from a non-initial netns (see rds_set_transport()), so a one-shot init_net gate at rds_info_getsockopt() would deny legitimate per-netns visibility to rds-tcp callers. Instead, filter at each handler by comparing the netns of the caller's socket to the netns of the list entry, or to rds_conn_net(conn) for connection paths. Only copy entries whose netns matches the caller. Counters (RDS_INFO_COUNTERS) are aggregate statistics and remain global. Reproducer (KASAN VM, rds and rds_tcp loaded): an AF_RDS socket binds 127.0.0.1:4242 in init_net as root. A child process enters a fresh user_ns plus netns and opens AF_RDS there, then calls getsockopt(SOL_RDS, RDS_INFO_SOCKETS). Before this change, the child sees the init_net socket. After this change, the child sees zero entries. Drop the rds_sock_count, rds_tcp_tc_count, and rds6_tcp_tc_count globals. v2 used them for the size precheck and lens->nr; v3 replaced the precheck with a per-ns count from a first pass over the list, so the globals have no remaining readers. The matching increments and decrements in rds_create()/rds_destroy_sock() and rds_tcp_set_callbacks()/rds_tcp_restore_callbacks() go away with them. Reported by the kernel test robot under clang W=1.

EPSS 0.17% · 6.7th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-livepatch-6.12.111-136.204Amazon Linux1:1.0-0.amzn2023
kernel-headersAmazon Linux1:6.1.189-236.399.amzn2023
kernel-tools-develAmazon Linux1:6.1.189-236.399.amzn2023
kernel-livepatch-6.1.189-236.399Amazon Linux1:1.0-0.amzn2023
kernel-modules-extra-commonAmazon Linux1:6.1.189-236.399.amzn2023
kernel6.12-develAmazon Linux1:6.12.111-136.204.amzn2023

Risk scores

EPSS Score
0.17%
6.7th percentile

Affected products

VendorProductVersions
LinuxLinux639b321b4d8f4e412bfbb2a4a19bfebc1e68ace4, 639b321b4d8f4e412bfbb2a4a19bfebc1e68ace4, 639b321b4d8f4e412bfbb2a4a19bfebc1e68ace4
LinuxLinux2.6.30, 0, 5.10.271
amazon:2023kernel-livepatch-6.12.111-136.2040
amazon:2023kernel-headers0
amazon:2023kernel-tools-devel0
amazon:2023kernel-livepatch-6.1.189-236.3990
amazon:2023kernel-modules-extra-common0
amazon:2023kernel6.12-devel0
linuxlinux_kernel2.6.30, 2.6.30, 2.6.30
amazon:2023kernel-modules-extra0
amazon:2023bpftool6.120
amazon:2023perf6.120
amazon:2023kernel6.18-modules-extra-common0
amazon:2023kernel-tools0
amazon:2023bpftool6.180
amazon:2023python3-perf0
amazon:2023microvm-kernel6.180
amazon:2023kernel6.12-tools0
amazon:2023kernel-devel0
amazon:2023kernel-livepatch-6.18.54-121.1660

…and 19 more

Timeline

  • Sep 24, 2026 CVE Published
  • Sep 25, 2026 EPSS Score (10 in total, the first dated here)
  • Oct 3, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-97476
vulnetix vdb fixes CVE-2026-97476

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-97476/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›