RDMA/rxe: Use validated num_sge in local buffer

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

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.

ProductVersions
Linux Linux3cfa2a3adc51b7c57729961a03446962ff10e3d2 to before bbadac94c3d51400182f6604e8cb721490713490 Affectedcd19a6345e3727adafafa5954b58b13c92e13b80 to before 036a24afc6bd194cfbbe506ac6f4b6d11810192f Affected3e07ea9579dc9553d2285c26c2823931358aa3b8 to before d5f9a0ad940f1d7eb55e1397e668f8efb5c66f2a Affected02558c86b6b761063e9399e6b939984500327ef1 to before 718fe137c0057c7a56204e3a677de4f9dbacdd1d Affected22b8fbded65b8c441b634a185f8da67657df6c50 to before d53a8bf76833bdd93f643b0a715eb5b2b4ff06d6 Affected22b8fbded65b8c441b634a185f8da67657df6c50 to before a4368022a3ac5324356ae8d88e3a42d115956fd6 Affectedc8db0e5ab0b6c540214c46c56aaac7cbcb0967fe Affectede48daa94ad2d406225b73491fc935064716f0ec7 Affectedb9800d7953d119bcc068c74587d48e4ba0313629 Affected2e60378fb3c8b51c94103bb40014c4fe38fa5033 Affectedfc72fd61cc8b2e2e3e92ae4c0e9cc30c9a7ecb78 Affected9fa785137303f7109c23dea779b8dedc67c9b531 Affected5420eebf3b3c162bfaf965f30e61cd1d689e5732 Affecteda211b7904aed365e4e4f08a48ec6e6dd1ea7b16b Affected6.1.178 to before 6.1.193 Affected6.6.145 to before 6.6.163 Affected6.12.97 to before 6.12.119 Affected6.18.40 to before 6.18.65 Affected5.10.270 to before 5.11 Affected5.15.221 to before 5.16 Affected7.1.5 to before 7.2 Affected
Linux Linux7.2 Affectedbefore 7.2 Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.