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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
7875e18e09961d29f30424c5e2e48e704dc3789b to < 7d7705ce73eac1de1146706d887bc969a48ebb6daffected7875e18e09961d29f30424c5e2e48e704dc3789b to < 3230961a72b312d0e47101d1428084d0a02bff52affected7875e18e09961d29f30424c5e2e48e704dc3789b to < ee74a4b42e3a2f9635ba376be9e58311322eebe4affected7875e18e09961d29f30424c5e2e48e704dc3789b to < 348492de88bc6ea06b6f3dd544a7a00d908a807baffected7875e18e09961d29f30424c5e2e48e704dc3789b to < ef3565a418b8309589fe9b5df098a892c9146b06affected7875e18e09961d29f30424c5e2e48e704dc3789b to < 8cbfeb54bf781d9693778aaba133bb58c0285332affected7875e18e09961d29f30424c5e2e48e704dc3789b to < f4649a716be20ef9272f97a166dea1825ba5b554affected7875e18e09961d29f30424c5e2e48e704dc3789b to < 2ac09b5353fe6858411fdc8c6efa60d832e20f13affected
Linux Linux
Default version status: affected
2.6.30affected0 to < 2.6.30unaffected5.10.271 to ≤ 5.10.*unaffected5.15.222 to ≤ 5.15.*unaffected6.1.189 to ≤ 6.1.*unaffected6.6.158 to ≤ 6.6.*unaffected6.12.111 to ≤ 6.12.*unaffected6.18.53 to ≤ 6.18.*unaffected7.2.7 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/7d7705ce73eac1de1146706d887bc969a48ebb6d ↗
- https://git.kernel.org/stable/c/3230961a72b312d0e47101d1428084d0a02bff52 ↗
- https://git.kernel.org/stable/c/ee74a4b42e3a2f9635ba376be9e58311322eebe4 ↗
- https://git.kernel.org/stable/c/348492de88bc6ea06b6f3dd544a7a00d908a807b ↗
- 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 ↗