CVE-2026-98354
RDMA/mad: Fix receive buffer leak when PKey enforcement fails
Check your servers for CVE-2026-98354
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-98354 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Exploitation
EPSS 0.16%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 5.91% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 47a2b338fe63200d716d2e24131cdb49f17c77da, before 4617c9a856188674dddb0ca66979746d07688579 affected from 47a2b338fe63200d716d2e24131cdb49f17c77da, before 8e2036fb47a5b152d53eadbd35abf311bd34cc7f affected from 47a2b338fe63200d716d2e24131cdb49f17c77da, before bad289e42f512646a988f278f536d21547df73f1 affected from 47a2b338fe63200d716d2e24131cdb49f17c77da, before 752b30e9d339008e5ce7eed412e9446078916129 affected from 47a2b338fe63200d716d2e24131cdb49f17c77da, before 39c4ea72a40503e102ae07e6776005f96ca078a6 affected from 47a2b338fe63200d716d2e24131cdb49f17c77da, before 5091e25ec503f7fc02723ca435226467b68caac7 affected from 47a2b338fe63200d716d2e24131cdb49f17c77da, before c0d8df85db146d6275e226cb950023be69dd6c77 affected from 47a2b338fe63200d716d2e24131cdb49f17c77da, before 3476c28c9addfa253f505e6bd87f1f5598b961d0
Other versions: unaffected
|
| Linux |
affected 4.13 unaffected before 4.13 unaffected from 5.10.271 up to and including 5.10.* unaffected from 5.15.222 up to and including 5.15.* unaffected from 6.1.189 up to and including 6.1.* unaffected from 6.6.158 up to and including 6.6.* unaffected from 6.12.112 up to and including 6.12.* unaffected from 6.18.54 up to and including 6.18.* unaffected from 7.2.8 up to and including 7.2.* unaffected 7.3 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-98354 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-98354
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-98354
trivy image --scanners vuln IMAGE | grep CVE-2026-98354
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/4617c9a856188674dddb0ca66979746d07688579 git.kernel.org
- https://git.kernel.org/stable/c/8e2036fb47a5b152d53eadbd35abf311bd34cc7f git.kernel.org
- https://git.kernel.org/stable/c/bad289e42f512646a988f278f536d21547df73f1 git.kernel.org
- https://git.kernel.org/stable/c/752b30e9d339008e5ce7eed412e9446078916129 git.kernel.org
- https://git.kernel.org/stable/c/39c4ea72a40503e102ae07e6776005f96ca078a6 git.kernel.org
- https://git.kernel.org/stable/c/5091e25ec503f7fc02723ca435226467b68caac7 git.kernel.org
- https://git.kernel.org/stable/c/c0d8df85db146d6275e226cb950023be69dd6c77 git.kernel.org
- https://git.kernel.org/stable/c/3476c28c9addfa253f505e6bd87f1f5598b961d0 git.kernel.org
Source: the record CVE-2026-98354 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse