Skip to main content
Vulnerability Database/CVE-2026-97954

CVE-2026-97954: Linux Kernel RDS-TCP Buffer Overflow

CVE-2026-97954 is a buffer overflow vulnerability in Linux kernel RDS-TCP that causes stream corruption on systems with large page sizes. This article covers technical details, affected versions, and mitigation.

Published:

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-97954 Overview

CVE-2026-97954 is a Linux kernel vulnerability in the Reliable Datagram Sockets (RDS) subsystem. The flaw resides in rds_message_map_pages(), which assigns PAGE_SIZE bytes to every scatterlist entry even when the total length ends on a partial page boundary. The RDS congestion map is a fixed 8192 bytes, so on systems with a PAGE_SIZE greater than 8192 the scatterlist references memory beyond the congestion map.

RDS-TCP transmits scatterlist contents according to those lengths, pushing extra bytes into the TCP stream where receivers interpret them as subsequent RDS message headers. This corrupts the RDS-TCP stream and breaks communication on systems with 16K or larger page sizes.

Critical Impact

RDS-TCP stream corruption prevents reliable kernel socket communication on Linux hosts configured with page sizes larger than 8192 bytes, causing selftest hangs and protocol-level data integrity failures.

Affected Products

  • Linux kernel RDS (Reliable Datagram Sockets) subsystem
  • RDS-TCP transport on architectures with PAGE_SIZE greater than 8192 bytes (for example, 16K and 64K page configurations)
  • Stable kernel branches fixed by commits 2ac09b5, 8cbfeb5, ef3565a, and f4649a7

Discovery Timeline

  • 2026-09-25 - CVE-2026-97954 published to NVD
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-97954

Vulnerability Analysis

The defect lives in the RDS message mapping path. rds_message_map_pages() iterates over the pages that back an RDS payload and populates a scatterlist used by the transport layer. For each entry, the function unconditionally sets the length to PAGE_SIZE, regardless of whether the final page is fully consumed by the message.

For the RDS congestion map this is observable because the structure is a fixed 8192 bytes. On a kernel built with PAGE_SIZE of 4096, two full pages cover the map and the behavior is harmless. On kernels built with 16K or larger pages, one page already exceeds the map size, and the scatterlist entry still advertises the full page length. RDS-TCP sends those extra bytes over the socket, and the peer parses them as the next RDS message header, desynchronizing the framed stream.

Root Cause

The root cause is a boundary condition error in scatterlist length accounting. The mapping routine does not clamp the final entry to the remaining byte count (total_len % PAGE_SIZE), producing an out-of-bounds read into adjacent kernel memory that is then transmitted on the wire. The upstream fix limits the final scatterlist mapping to the number of bytes remaining in the payload.

Attack Vector

The condition is a reliability and data-integrity defect triggered by normal RDS-TCP traffic on affected page-size configurations. Any RDS message whose length is not an exact multiple of PAGE_SIZE causes the transmitter to include adjacent memory bytes in the TCP stream. A peer processing the corrupted stream will misinterpret framing and may enter error paths. The vulnerability has no documented remote-exploitation primitive beyond stream corruption, and no public proof-of-concept beyond the referenced RDS selftest that previously hung on 16K-page systems.

See the upstream fix references for the exact patch diff: Linux Kernel Commit 2ac09b5, Linux Kernel Commit 8cbfeb5, Linux Kernel Commit ef3565a, and Linux Kernel Commit f4649a7.

Detection Methods for CVE-2026-97954

Indicators of Compromise

  • RDS selftest hangs or fails on kernels built with PAGE_SIZE greater than 8192 bytes.
  • RDS-TCP peers log framing or header-parse errors shortly after establishing a connection.
  • Unexpected disconnects or protocol resets on TCP sockets carrying RDS traffic between large-page hosts.

Detection Strategies

  • Enumerate running kernels and their configured page size (getconf PAGESIZE) across the fleet to identify hosts at risk.
  • Audit which hosts have the rds and rds_tcp modules loaded (lsmod | grep rds) and inventory the applications that depend on them.
  • Compare installed kernel versions against the stable branches containing commits 2ac09b5, 8cbfeb5, ef3565a, and f4649a7.

Monitoring Recommendations

  • Capture dmesg and syslog entries referencing rds or rds_tcp for parsing errors on hosts handling RDS traffic.
  • Monitor TCP sessions carrying RDS for abnormal connection resets and short-lived flows between large-page-size peers.
  • Track kernel upgrade status in configuration management to confirm patched builds have been deployed.

How to Mitigate CVE-2026-97954

Immediate Actions Required

  • Upgrade affected Linux hosts to a kernel version that includes the upstream RDS scatterlist length fix.
  • On hosts that do not require RDS, unload and blacklist the rds and rds_tcp modules to eliminate the exposure.
  • Prioritize patching for systems built with 16K or 64K pages, where the defect is actively triggered.

Patch Information

The fix limits the final scatterlist mapping in rds_message_map_pages() to the number of bytes remaining in total_len, preventing out-of-bounds bytes from being transmitted. The change is contained in the stable commits referenced above and has no effect on systems with a 4K page size. Apply the vendor-provided kernel update that incorporates one of commits 2ac09b5, 8cbfeb5, ef3565a, or f4649a7.

Workarounds

  • Run affected workloads on kernels configured with a 4K PAGE_SIZE until a patched kernel is deployed.
  • Disable RDS-TCP transport on hosts where it is not required by preventing the rds_tcp module from loading.
  • Restrict RDS communication to peers running patched kernels to avoid propagating corrupted streams.
bash
# Prevent the RDS modules from loading on hosts that do not need them
echo 'blacklist rds_tcp' | sudo tee /etc/modprobe.d/blacklist-rds.conf
echo 'blacklist rds'     | sudo tee -a /etc/modprobe.d/blacklist-rds.conf
sudo modprobe -r rds_tcp rds 2>/dev/null || true

# Verify current page size and loaded RDS modules
getconf PAGESIZE
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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.