VDB

CVE-2026-98354

CVE-2026-98354 PUBLISHED

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

EPSS Score
0.16%
5.7th percentile

Affected products

VendorProductVersions
LinuxLinux47a2b338fe63200d716d2e24131cdb49f17c77da, 47a2b338fe63200d716d2e24131cdb49f17c77da, 47a2b338fe63200d716d2e24131cdb49f17c77da
LinuxLinux4.13, 0, 5.10.271
linuxlinux_kernel4.13, 4.13, 4.13
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel-livepatch-6.18.54-121.1660
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel-headers0
amazon:2023kernel6.18-modules-extra-common0
amazon:2023kernel6.12-headers0
amazon:2023kernel6.12-modules-extra0
LinuxLinux7.3, 47a2b338fe63200d716d2e24131cdb49f17c77da, 47a2b338fe63200d716d2e24131cdb49f17c77da
amazon:2023kernel6.12-devel0
amazon:2023kernel0
amazon:2023kernel6.180
amazon:2023kernel-modules-extra-common0
amazon:2023kernel6.18-headers0
amazon:2023kernel6.12-tools0
amazon:2023kernel6.18-devel0
amazon:2023kernel6.18-tools-devel0
amazon:2023python3-perf0

…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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›