Description
In the Linux kernel, the following vulnerability has been resolved:

rds: ib: Clear the sg list when mapping an MR fails

rds_ib_map_frmr() stores the caller's scatterlist in the MR before DMA
mapping and registration can fail. On failure, __rds_rdma_map() unpins
the pages and frees the scatterlist, but rds_ib_free_frmr() can still
return the MR to the pool with the stale pointer set.

This leaves the pool with a dangling scatterlist and can lead to local
privilege escalation. KASAN detects the resulting use-after-free when the
MR is later torn down:

BUG: KASAN: slab-use-after-free in __rds_ib_teardown_mr
Read of size 8

Call Trace:
__rds_ib_teardown_mr
rds_ib_unreg_frmr
rds_ib_flush_mr_pool
rds_ib_flush_mrs
rds_free_mr
rds_setsockopt

Store the scatterlist in the MR only after DMA mapping succeeds. If DMA
mapping fails, return directly while the MR fields remain clear; the caller
keeps ownership of the scatterlist and its pinned pages. If a later
registration step fails, unmap the scatterlist and clear the MR fields
before returning.
Published: 2026-10-18
Score: n/a
EPSS: n/a
KEV: No
Impact: Local Privilege Escalation
Action: Immediate Patch
AI Analysis

Impact

A flaw in the Linux kernel’s Remote Direct Memory Access driver for InfiniBand (rds_ib) causes a use‑after‑free when a memory registration fails after the driver has stored the caller’s scatterlist. The scatterlist remains in the memory registration (MR) pool even after the registration is invalidated, so a later teardown of that MR accesses freed memory. An attacker can trigger this scenario and execute privileged code inside the kernel, thereby escalating local privileges.

Affected Systems

The vulnerability exists in any Linux kernel image that compiles the rds_ib module and has not yet incorporated the rds_ib_map_frmr fix. No specific kernel release is cited; therefore, all distributions using an unpatched rds_ib module are potentially affected until they update their kernel.

Risk and Exploitability

The CVSS score is not supplied and EPSS is unavailable, but the impact is high: successful exploitation results in kernel‑level code execution. Exploitation requires a process with sufficient privileges to interact with the rds driver, such as setting socket options on an RDS socket. The likely attack vector is a local compromise or privilege escalation from a user‑level process that can load or unload the module or otherwise cause the failing cleanup path.

Generated by OpenCVE AI on October 18, 2026 at 23:30 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that includes the rds_ib_map_frmr patch (most recent stable releases patch this issue).
  • If an upgrade is not possible immediately, disable or unload the rds_ib module (e.g., via 'modprobe -r rds_ib' or blacklist it in /etc/modprobe.d).
  • Continuously monitor kernel logs for KASAN use‑after‑free messages and isolate or reboot systems when such errors are detected until a patched kernel is deployed.

Generated by OpenCVE AI on October 18, 2026 at 23:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 19 Oct 2026 00:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Sun, 18 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: rds: ib: Clear the sg list when mapping an MR fails rds_ib_map_frmr() stores the caller's scatterlist in the MR before DMA mapping and registration can fail. On failure, __rds_rdma_map() unpins the pages and frees the scatterlist, but rds_ib_free_frmr() can still return the MR to the pool with the stale pointer set. This leaves the pool with a dangling scatterlist and can lead to local privilege escalation. KASAN detects the resulting use-after-free when the MR is later torn down: BUG: KASAN: slab-use-after-free in __rds_ib_teardown_mr Read of size 8 Call Trace: __rds_ib_teardown_mr rds_ib_unreg_frmr rds_ib_flush_mr_pool rds_ib_flush_mrs rds_free_mr rds_setsockopt Store the scatterlist in the MR only after DMA mapping succeeds. If DMA mapping fails, return directly while the MR fields remain clear; the caller keeps ownership of the scatterlist and its pinned pages. If a later registration step fails, unmap the scatterlist and clear the MR fields before returning.
Title rds: ib: Clear the sg list when mapping an MR 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-18T15:17:41.420Z

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

Link: CVE-2026-98524

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-18T16:17:03.827

Modified: 2026-10-18T16:17:03.827

Link: CVE-2026-98524

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-18T23:45:07Z

Weaknesses