Skip to content
Heist/ feed
High

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

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2026-98524

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-98524

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "1659185fb4d0025835eb2058a141f0746c5cab00",
        "lessThan": "1be3211e6ac77adbb1eac01314d989d243b32c59",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "1659185fb4d0025835eb2058a141f0746c5cab00",
        "lessThan": "c42d316163f89cd23de2f3e24558177a8c29bad8",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "1659185fb4d0025835eb2058a141f0746c5cab00",
        "lessThan": "8dca3c81344532a7f05edb3d12f31f3009410a90",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "1659185fb4d0025835eb2058a141f0746c5cab00",
        "lessThan": "49ba5ed0129906e0362c2e4b5e21c89b2a41e115",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "1659185fb4d0025835eb2058a141f0746c5cab00",
        "lessThan": "4468df5bcdef959fd96494e9968f323561a45f4c",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "1659185fb4d0025835eb2058a141f0746c5cab00",
        "lessThan": "e2ee0616260080376123997488b5cf8a3870b8d9",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "1659185fb4d0025835eb2058a141f0746c5cab00",
        "lessThan": "b36d32f30c3f1e58e3a5ae79d0f52836a316b36e",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "1659185fb4d0025835eb2058a141f0746c5cab00",
        "lessThan": "58eb1b3325edac42dc6df72c80962bd53a3c8ca7",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "net/rds/ib_frmr.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "4.6"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "4.6",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "5.10.271",
        "versionType": "semver",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.15.222",
        "versionType": "semver",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.189",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.158",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.112",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.55",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.2.9",
        "versionType": "semver",
        "lessThanOrEqual": "7.2.*"
      },
      {
        "status": "unaffected",
        "version": "7.3",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "net/rds/ib_frmr.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-98524

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#55612 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement