{"id":"CVE-2026-98354","aliases":["CVE-2026-98354"],"related":[],"kind":"vulnerability","state":"published","title":"RDMA/mad: Fix receive buffer leak when PKey enforcement fails","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/mad: Fix receive buffer leak when PKey enforcement fails\n\nib_mad_complete_recv() initializes mad_recv_wc->rmpp_list and then runs\nib_mad_enforce_security() before linking recv_buf onto that list.  On\nfailure it calls ib_free_recv_mad(), which only walks rmpp_list and frees\nthe ib_mad_private of every buffer found there.  As the list is still\nempty at that point, nothing is freed at all.\n\nThe caller cannot clean up either: ib_mad_recv_done() sets recv to NULL\nright after ib_mad_complete_recv() returns, assuming the MAD layer took\nownership of the buffer.  Every MAD that fails the PKey check therefore\nleaks one ib_mad_private (about 300 bytes per IB port MAD, ~2K for OPA),\nand a remote node can trigger this repeatedly by sending MADs with a\nwrong PKey.\n\nLink recv_buf onto rmpp_list right after the list is initialized, so the\nerror path has something to free.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/mad: Fix receive buffer leak when PKey enforcement fails\n\nib_mad_complete_recv() initializes mad_recv_wc->rmpp_list and then runs\nib_mad_enforce_security() before linking recv_buf onto that list.  On\nfailure it calls ib_free_recv_mad(), which only walks rmpp_list and frees\nthe ib_mad_private of every buffer found there.  As the list is still\nempty at that point, nothing is freed at all.\n\nThe caller cannot clean up either: ib_mad_recv_done() sets recv to NULL\nright after ib_mad_complete_recv() returns, assuming the MAD layer took\nownership of the buffer.  Every MAD that fails the PKey check therefore\nleaks one ib_mad_private (about 300 bytes per IB port MAD, ~2K for OPA),\nand a remote node can trigger this repeatedly by sending MADs with a\nwrong PKey.\n\nLink recv_buf onto rmpp_list right after the list is initialized, so the\nerror path has something to free.","source":"cvelist"}],"published":"2026-10-06T08:46:41.768Z","modified":"2026-10-19T10:18:38.097Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"47a2b338fe63200d716d2e24131cdb49f17c77da","fixed":"4617c9a856188674dddb0ca66979746d07688579","status":"affected"},{"type":"git","introduced":"47a2b338fe63200d716d2e24131cdb49f17c77da","fixed":"8e2036fb47a5b152d53eadbd35abf311bd34cc7f","status":"affected"},{"type":"git","introduced":"47a2b338fe63200d716d2e24131cdb49f17c77da","fixed":"bad289e42f512646a988f278f536d21547df73f1","status":"affected"},{"type":"git","introduced":"47a2b338fe63200d716d2e24131cdb49f17c77da","fixed":"752b30e9d339008e5ce7eed412e9446078916129","status":"affected"},{"type":"git","introduced":"47a2b338fe63200d716d2e24131cdb49f17c77da","fixed":"39c4ea72a40503e102ae07e6776005f96ca078a6","status":"affected"},{"type":"git","introduced":"47a2b338fe63200d716d2e24131cdb49f17c77da","fixed":"5091e25ec503f7fc02723ca435226467b68caac7","status":"affected"},{"type":"git","introduced":"47a2b338fe63200d716d2e24131cdb49f17c77da","fixed":"c0d8df85db146d6275e226cb950023be69dd6c77","status":"affected"},{"type":"git","introduced":"47a2b338fe63200d716d2e24131cdb49f17c77da","fixed":"3476c28c9addfa253f505e6bd87f1f5598b961d0","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.13","status":"unaffected"},{"type":"semver","introduced":"5.10.271","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.222","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.189","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.158","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.112","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.54","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.8","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","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/4617c9a856188674dddb0ca66979746d07688579","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8e2036fb47a5b152d53eadbd35abf311bd34cc7f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bad289e42f512646a988f278f536d21547df73f1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/752b30e9d339008e5ce7eed412e9446078916129","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/39c4ea72a40503e102ae07e6776005f96ca078a6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5091e25ec503f7fc02723ca435226467b68caac7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c0d8df85db146d6275e226cb950023be69dd6c77","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3476c28c9addfa253f505e6bd87f1f5598b961d0","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98354","url":"https://www.cve.org/CVERecord?id=CVE-2026-98354","licence":"CVE Terms of Use","modified":"2026-10-19T09:18:04.973Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98354","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98354","licence":"Public domain","modified":"2026-10-19T10:18:38.097Z"}],"updatedAt":"2026-11-25T22:59:42.339Z","epss":{"score":0.00165,"percentile":0.05913,"date":"2026-12-01T12:00:22.000Z"}}