Description
In the Linux kernel, the following vulnerability has been resolved: rds: fix out-of-bounds conn_path walks via handshake exthdrs Both the lane and the connection-generation negotiation are driven by extension headers in handshake packets, and both are processed unconditionally, even on transports that are not multipath capable. A non-MP connection (t_mp_capable unset) owns exactly one rds_conn_path slot, so a peer claiming up to RDS_MPATH_WORKERS lanes makes every subsequent fan-out walk conn->c_path[0..7] at 504-byte strides past the single allocated slot (KASAN: "Read of size 8 in rds_conn_path_connect_if_down"); the generation negotiation opens a similar out-of-bounds walk on the same array. Only process handshake extension headers when the connection's transport is multipath capable, so a peer can never make us walk lanes that do not exist. Both call sites in rds_recv_incoming() are gated. This is a port of the Oracle UEK fix for the same issue, picked up where Paula's series of the same change left off. This issue was discovered by Tencent CodeBuddy Security.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- None (no login)
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- High impact
- Integrity
- High impact
- Availability
- High impact
References
- git.kernel.org/stable/c/a5c4de68302e695b097f91e7eb86eb709f68d817
- git.kernel.org/stable/c/328dfc8d1947b12c67eb275558de94c28de9a7c3
- git.kernel.org/stable/c/67562aea965e0c22f958bd3ab147cfdad30c5958
- git.kernel.org/stable/c/4139e84bea83104ac1ea7f80314eef6660f41b70
- git.kernel.org/stable/c/42c58653fdab4fe10ade9e11d9a232edf488f09b
- git.kernel.org/stable/c/1054a6a377ea03802edc85f9747cd4f28e3673e5
- git.kernel.org/stable/c/1402ffd54f2f338b91f4f1765b43e33d107892a3
- git.kernel.org/stable/c/50f2103fce43922b6e562937b2d2fc62089ff7ec
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.