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.
Published: 2026-10-06
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Memory Leak leading to Denial of Service
Action: Patch Kernel
AI Analysis

Impact

The Linux kernel’s RDMA/mad subsystem contains a flaw where a receive buffer is not freed when PKey enforcement fails. During ib_mad_complete_recv() the buffer is linked to the list only after the failure path, leaving the buffer allocated each time a MAD with an incorrect PKey is processed. Each leak consumes about 300 bytes per interface per MAD, growing to 2 KB for OPA on a per-port basis. Repeated malicious MADs could exhaust kernel memory and destabilize the host, resulting in service degradation or crash. It is a resource consumption flaw. Based on the description, the likely attack vector is a remote RDMA connection where a malicious node sends malformed MAD packets with incorrect PKey values.

Affected Systems

The vulnerability exists in all versions of the Linux kernel that include the RDMA/mad subsystem prior to the patch introduced in commit 3476c28c9addfa253f505e6bd87f1f5598b961d0 and its follow‑up commits referenced in the advisory. It affects any system that has RDMA active, regardless of vendor, as the product is the Linux kernel itself.

Risk and Exploitability

The CVSS score is 5.5. The EPSS score is <1% and the issue is not listed in CISA’s KEV catalog. The flaw is exploitable from a remote RDMA connection; this inference is drawn from the description that the problem occurs while processing incoming MAD packets. The attacker does not need elevated privileges on the target but must control RDMA traffic. An attacker with network access to the RDMA fabric can repeatedly send malformed MAD packets to accumulate leaks, increasing kernel memory pressure. The resulting denial of service may manifest as degraded performance or kernel crashes, presenting a high risk to affected systems.

Generated by OpenCVE AI on October 7, 2026 at 15:43 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Deploy the latest Linux kernel release that includes the fix in the referenced git commits.
  • If a kernel update cannot be performed immediately, disable RDMA services or block inbound RDMA MAD traffic on the affected interfaces to prevent the buffer leak.
  • Monitor system memory usage and kernel logs for signs of repeated MAD traffic, and configure alerts for sudden increases in memory consumption.

Generated by OpenCVE AI on October 7, 2026 at 15:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4841-1 linux security update
Debian DLA Debian DLA DLA-4850-1 linux-6.12 security update
Debian DSA Debian DSA DSA-6568-1 linux security update
History

Wed, 07 Oct 2026 14:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-778

Wed, 07 Oct 2026 12:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-772
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Tue, 06 Oct 2026 21:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-778

Tue, 06 Oct 2026 18:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-400

Tue, 06 Oct 2026 15:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-400

Tue, 06 Oct 2026 09:00:00 +0000

Type Values Removed Values Added
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.
Title RDMA/mad: Fix receive buffer leak when PKey enforcement fails
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-19T09:18:04.973Z

Reserved: 2026-09-25T10:25:14.343Z

Link: CVE-2026-98354

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-06T09:18:28.883

Modified: 2026-10-19T10:18:38.097

Link: CVE-2026-98354

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-06T00:00:00Z

Links: CVE-2026-98354 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-07T15:45:06Z

Weaknesses
  • CWE-772

    Missing Release of Resource after Effective Lifetime