{"id":"CVE-2026-139691","aliases":["CVE-2026-139691"],"related":[],"kind":"vulnerability","state":"published","title":"RDMA/rxe: Use validated num_sge in local buffer","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/rxe: Use validated num_sge in local buffer\n\nFor both SRQ and non-SRQ receive paths, the WQE is copied into a local\nbuffer to provide a kernel-owned, validated copy. While calculating the\nmemcpy size from the validated num_sge prevents overflow during the\ncopy, memcpy() itself still copies num_sge from shared memory.\n\nA concurrent userspace modification before or during memcpy() leaves\nan unvalidated num_sge in the local buffer, leading to potential\nout-of-bounds reads in rxe_resp_check_length() and copy_data() causing:\n\n  BUG: KASAN: slab-out-of-bounds in rxe_receiver+0x8109/0x9ec0 [rdma_rxe]\n  Read of size 4 at addr ffff88812c4867f8 by task kworker/u9:6/361\n  Workqueue: rxe_wq do_work [rdma_rxe]\n  Call Trace:\n   rxe_receiver+0x8109/0x9ec0 [rdma_rxe]\n   do_work+0x149/0x610 [rdma_rxe]\n   process_one_work+0x726/0x10a0\n\n  The buggy address belongs to the object at ffff88812c486000\n   which belongs to the cache kmalloc-part-13-2k of size 2048\n  The buggy address is located 0 bytes to the right of\n   allocated 2040-byte region [ffff88812c486000, ffff88812c4867f8)\n\nExplicitly assign the validated num_sge to the local buffer after the\ncopy to prevent this race.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/rxe: Use validated num_sge in local buffer\n\nFor both SRQ and non-SRQ receive paths, the WQE is copied into a local\nbuffer to provide a kernel-owned, validated copy. While calculating the\nmemcpy size from the validated num_sge prevents overflow during the\ncopy, memcpy() itself still copies num_sge from shared memory.\n\nA concurrent userspace modification before or during memcpy() leaves\nan unvalidated num_sge in the local buffer, leading to potential\nout-of-bounds reads in rxe_resp_check_length() and copy_data() causing:\n\n  BUG: KASAN: slab-out-of-bounds in rxe_receiver+0x8109/0x9ec0 [rdma_rxe]\n  Read of size 4 at addr ffff88812c4867f8 by task kworker/u9:6/361\n  Workqueue: rxe_wq do_work [rdma_rxe]\n  Call Trace:\n   rxe_receiver+0x8109/0x9ec0 [rdma_rxe]\n   do_work+0x149/0x610 [rdma_rxe]\n   process_one_work+0x726/0x10a0\n\n  The buggy address belongs to the object at ffff88812c486000\n   which belongs to the cache kmalloc-part-13-2k of size 2048\n  The buggy address is located 0 bytes to the right of\n   allocated 2040-byte region [ffff88812c486000, ffff88812c4867f8)\n\nExplicitly assign the validated num_sge to the local buffer after the\ncopy to prevent this race.","source":"cvelist"}],"published":"2026-11-30T13:37:05.261Z","modified":"2026-11-30T14:19:58.520Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"3cfa2a3adc51b7c57729961a03446962ff10e3d2","fixed":"bbadac94c3d51400182f6604e8cb721490713490","status":"affected"},{"type":"git","introduced":"cd19a6345e3727adafafa5954b58b13c92e13b80","fixed":"036a24afc6bd194cfbbe506ac6f4b6d11810192f","status":"affected"},{"type":"git","introduced":"3e07ea9579dc9553d2285c26c2823931358aa3b8","fixed":"d5f9a0ad940f1d7eb55e1397e668f8efb5c66f2a","status":"affected"},{"type":"git","introduced":"02558c86b6b761063e9399e6b939984500327ef1","fixed":"718fe137c0057c7a56204e3a677de4f9dbacdd1d","status":"affected"},{"type":"git","introduced":"22b8fbded65b8c441b634a185f8da67657df6c50","fixed":"d53a8bf76833bdd93f643b0a715eb5b2b4ff06d6","status":"affected"},{"type":"git","introduced":"22b8fbded65b8c441b634a185f8da67657df6c50","fixed":"a4368022a3ac5324356ae8d88e3a42d115956fd6","status":"affected"},{"type":"git","version":"c8db0e5ab0b6c540214c46c56aaac7cbcb0967fe","status":"affected"},{"type":"git","version":"e48daa94ad2d406225b73491fc935064716f0ec7","status":"affected"},{"type":"git","version":"b9800d7953d119bcc068c74587d48e4ba0313629","status":"affected"},{"type":"git","version":"2e60378fb3c8b51c94103bb40014c4fe38fa5033","status":"affected"},{"type":"git","version":"fc72fd61cc8b2e2e3e92ae4c0e9cc30c9a7ecb78","status":"affected"},{"type":"git","version":"9fa785137303f7109c23dea779b8dedc67c9b531","status":"affected"},{"type":"git","version":"5420eebf3b3c162bfaf965f30e61cd1d689e5732","status":"affected"},{"type":"git","version":"a211b7904aed365e4e4f08a48ec6e6dd1ea7b16b","status":"affected"},{"type":"semver","introduced":"6.1.178","fixed":"6.1.193","status":"affected"},{"type":"semver","introduced":"6.6.145","fixed":"6.6.163","status":"affected"},{"type":"semver","introduced":"6.12.97","fixed":"6.12.119","status":"affected"},{"type":"semver","introduced":"6.18.40","fixed":"6.18.65","status":"affected"},{"type":"semver","introduced":"5.10.270","fixed":"5.11","status":"affected"},{"type":"semver","introduced":"5.15.221","fixed":"5.16","status":"affected"},{"type":"semver","introduced":"7.1.5","fixed":"7.2","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"7.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"7.2","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/bbadac94c3d51400182f6604e8cb721490713490","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/036a24afc6bd194cfbbe506ac6f4b6d11810192f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d5f9a0ad940f1d7eb55e1397e668f8efb5c66f2a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/718fe137c0057c7a56204e3a677de4f9dbacdd1d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d53a8bf76833bdd93f643b0a715eb5b2b4ff06d6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a4368022a3ac5324356ae8d88e3a42d115956fd6","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139691","url":"https://www.cve.org/CVERecord?id=CVE-2026-139691","licence":"CVE Terms of Use","modified":"2026-11-30T13:37:05.261Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139691","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139691","licence":"Public domain","modified":"2026-11-30T14:19:58.520Z"}],"updatedAt":"2026-11-30T14:33:40.357Z","epss":{"score":0.00172,"percentile":0.0695,"date":"2026-12-01T12:00:22.000Z"}}