Skip to contentSkip to conversation

CVE-2026-97954: net/rds: fix tcp stream corruption with large pages

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 25

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

net/rds: fix tcp stream corruption with large pages

rds_message_map_pages() assigns PAGE_SIZE bytes to every scatterlist entry, even when total_len ends in a partial page. The RDS congestion map is defined as 8192 bytes, so on systems with PAGE_SIZE greater than 8192 the scatterlist maps bytes beyond the end of the congestion map. RDS-TCP transmits the SG contents according to those lengths, so the extra bytes become part of the TCP RDS stream and are interpreted as subsequent RDS message headers, corrupting the stream.

Limit the final scatterlist mapping to the number of bytes remaining. This has no effect on systems with a 4K page size and allows RDS-TCP to be used on systems with 16K and larger page sizes.

The RDS selftest, which previously hung on 16K pages, now passes.

The Linux kernel CVE team has assigned CVE-2026-97954 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 2.6.30 with commit 7875e18e09961d29f30424c5e2e48e704dc3789b and fixed in 6.12.111 with commit ef3565a418b8309589fe9b5df098a892c9146b06
	Issue introduced in 2.6.30 with commit 7875e18e09961d29f30424c5e2e48e704dc3789b and fixed in 6.18.53 with commit 8cbfeb54bf781d9693778aaba133bb58c0285332
	Issue introduced in 2.6.30 with commit 7875e18e09961d29f30424c5e2e48e704dc3789b and fixed in 7.2.7 with commit f4649a716be20ef9272f97a166dea1825ba5b554
	Issue introduced in 2.6.30 with commit 7875e18e09961d29f30424c5e2e48e704dc3789b and fixed in 7.3-rc3 with commit 2ac09b5353fe6858411fdc8c6efa60d832e20f13

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-97954

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
net/rds/message.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/ef3565a418b8309589fe9b5df098a892c9146b06
	https://git.kernel.org/stable/c/8cbfeb54bf781d9693778aaba133bb58c0285332
	https://git.kernel.org/stable/c/f4649a716be20ef9272f97a166dea1825ba5b554
	https://git.kernel.org/stable/c/2ac09b5353fe6858411fdc8c6efa60d832e20f13