CVE-2026-98354
RDMA/mad: Fix receive buffer leak when PKey enforcement fails
Reported by linux · Published October 6, 2026
In the Linux kernel, the following vulnerability has been resolved: RDMA/mad: Fix receive buffer leak when PKey enforcement fails ib_mad_complete_recv() initializes mad_recv_wc->rmpp_list and then runs ib_mad_enforce_security() before linking recv_buf onto that list. On failure it calls ib_free_recv_mad(), which only walks rmpp_list and frees the ib_mad_private of every buffer found there. As the list is still empty at that point, nothing is freed at all. The caller cannot clean up either: ib_mad_recv_done() sets recv to NULL right after ib_mad_complete_recv() returns, assuming the MAD layer took ownership of the buffer. Every MAD that fails the PKey check therefore leaks one ib_mad_private (about 300 bytes per IB port MAD, ~2K for OPA), and a remote node can trigger this repeatedly by sending MADs with a wrong PKey. Link recv_buf onto rmpp_list right after the list is initialized, so the error path has something to free.
EPSS 0.16% · 5.7th percentile
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 47a2b338fe63200d716d2e24131cdb49f17c77da, 47a2b338fe63200d716d2e24131cdb49f17c77da, 47a2b338fe63200d716d2e24131cdb49f17c77da |
| Linux | Linux | 4.13, 0, 5.10.271 |
| linux | linux_kernel | 4.13, 4.13, 4.13 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | kernel-livepatch-6.18.54-121.166 | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| Linux | Linux | 7.3, 47a2b338fe63200d716d2e24131cdb49f17c77da, 47a2b338fe63200d716d2e24131cdb49f17c77da |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel6.18 | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel6.18-headers | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | kernel6.18-devel | 0 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
| amazon:2023 | python3-perf | 0 |
…and 19 more
Timeline
- Oct 6, 2026 EPSS Score (5 in total, the first dated here)
- Oct 6, 2026 CVE Published
- Oct 19, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-98354
vulnetix vdb fixes CVE-2026-98354
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-98354/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart