RDMA/rxe: Use validated num_sge in local buffer
- CVE-2026-139691
- GHSA-2h77-4w9w-jwxj
- EUVD-2026-139397
Description
In the Linux kernel, the following vulnerability has been resolved: RDMA/rxe: Use validated num_sge in local buffer For both SRQ and non-SRQ receive paths, the WQE is copied into a local buffer to provide a kernel-owned, validated copy. While calculating the memcpy size from the validated num_sge prevents overflow during the copy, memcpy() itself still copies num_sge from shared memory. A concurrent userspace modification before or during memcpy() leaves an unvalidated num_sge in the local buffer, leading to potential out-of-bounds reads in rxe_resp_check_length() and copy_data() causing: BUG: KASAN: slab-out-of-bounds in rxe_receiver+0x8109/0x9ec0 [rdma_rxe] Read of size 4 at addr ffff88812c4867f8 by task kworker/u9:6/361 Workqueue: rxe_wq do_work [rdma_rxe] Call Trace: rxe_receiver+0x8109/0x9ec0 [rdma_rxe] do_work+0x149/0x610 [rdma_rxe] process_one_work+0x726/0x10a0 The buggy address belongs to the object at ffff88812c486000 which belongs to the cache kmalloc-part-13-2k of size 2048 The buggy address is located 0 bytes to the right of allocated 2040-byte region [ffff88812c486000, ffff88812c4867f8) Explicitly assign the validated num_sge to the local buffer after the copy to prevent this race.
Text from the CVE.org record.
Recommendation
Linux
- If you run 6.18.xupdate to 6.18.65 or laterPatch update: breaking changes are unlikely
- If you run 6.12.xupdate to 6.12.119 or laterPatch update: breaking changes are unlikely
- If you run 6.6.xupdate to 6.6.163 or laterPatch update: breaking changes are unlikely
- If you run 6.1.xupdate to 6.1.193 or laterPatch update: breaking changes are unlikely
- If you run a version from 5.15.221 to before 5.16update to 5.16 or laterMinor version change: check the release notes
- If you run a version from 5.10.270 to before 5.11update to 5.11 or laterMinor version change: check the release notes
Some affected versions have no stated fix.
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
Linux
Affected versions Fixed in from 6.18.40 to before 6.18.65 6.18.65 from 6.12.97 to before 6.12.119 6.12.119 from 6.6.145 to before 6.6.163 6.6.163 from 6.1.178 to before 6.1.193 6.1.193 from 5.15.221 to before 5.16 5.16 from 5.10.270 to before 5.11 5.11 from 7.1.5 to before 7.2 none stated 7.2 none stated and 7 more
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.