CVE-2026-98524: rds: ib: Clear the sg list when mapping an MR fails

Published Oct 18, 2026
·
Updated

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

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

rdsibmapfrmr() stores the caller's scatterlist in the MR before DMA mapping and registration can fail. On failure, rdsrdmamap() unpins the pages and frees the scatterlist, but rdsibfreefrmr() 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 rdsibteardownmr Read of size 8

Call Trace: rdsibteardownmr rdsibunregfrmr rdsibflushmrpool rdsibflushmrs rdsfreemr rdssetsockopt

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.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In rds_ib_map_frmr(), store the caller's scatterlist in the MR only after DMA mapping succeeds; if mapping or registration fails, unmap the scatterlist, clear the MR fields, and return without placing an MR with a stale scatterlist pointer back in the pool.

Event History

Oct 18, 2026
CVE Published
via MITRE·03:17 PM
Data Sourced
via MITRE·03:17 PM
Description
Data Sourced
via NVD·04:17 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203