{"id":"CVE-2026-98354","summary":"RDMA/mad: Fix receive buffer leak when PKey enforcement fails","details":"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-\u003ermpp_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.","modified":"2026-10-07T02:47:34.399223435Z","published":"2026-10-06T08:46:41.768Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98354.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3476c28c9addfa253f505e6bd87f1f5598b961d0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/39c4ea72a40503e102ae07e6776005f96ca078a6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4617c9a856188674dddb0ca66979746d07688579"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5091e25ec503f7fc02723ca435226467b68caac7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/752b30e9d339008e5ce7eed412e9446078916129"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8e2036fb47a5b152d53eadbd35abf311bd34cc7f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bad289e42f512646a988f278f536d21547df73f1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c0d8df85db146d6275e226cb950023be69dd6c77"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98354.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98354"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"47a2b338fe63200d716d2e24131cdb49f17c77da"},{"fixed":"4617c9a856188674dddb0ca66979746d07688579"},{"fixed":"8e2036fb47a5b152d53eadbd35abf311bd34cc7f"},{"fixed":"bad289e42f512646a988f278f536d21547df73f1"},{"fixed":"752b30e9d339008e5ce7eed412e9446078916129"},{"fixed":"39c4ea72a40503e102ae07e6776005f96ca078a6"},{"fixed":"5091e25ec503f7fc02723ca435226467b68caac7"},{"fixed":"c0d8df85db146d6275e226cb950023be69dd6c77"},{"fixed":"3476c28c9addfa253f505e6bd87f1f5598b961d0"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98354.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.13.0"},{"fixed":"5.10.271"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.222"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.189"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.158"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.112"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.54"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.8"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98354.json"}}],"schema_version":"1.9.0"}