RDMA/core: Fix use after free in ib_query_qp()
In the Linux kernel, the following vulnerability has been resolved: RDMA/core: Fix use after free in ib_query_qp() When querying a QP via the netlink flow the only synchronization mechanism for the said QP is rdma_restrack_get(), meanwhile during the QP destroy path rdma_restrack_del() is called at the end of the ib_destroy_qp_user() function which is too late, since by then the vendor specific resources for said QP would already be destroyed, and till the rdma_restrack_del() is called this QP can still be accessed, which could cause the use after free below. Fix this by moving the rdma_restrack_begin_del() to the start of the ib_destroy_qp_user(), which in turn waits for all usages of the QP to be done then removes it from the database to prevent access to it while it is being destroyed. RIP: 0010:ib_query_qp+0x15/0x50 [ib_core] Code: 48 83 05 5d 8e b9 ff 01 eb b5 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 c7 46 40 00 00 00 00 48 c7 46 78 00 00 00 00 <48> 8b 07 48 8b 80 88 01 00 00 48 85 c0 74 1a 48 83 05 54 91 b9 ff RSP: 0018:ff11000108a8f2f0 EFLAGS: 00010202 RAX: 0000000000000000 RBX: ff11000108a8f370 RCX: ff11000108a8f370 RDX: 0000000000000000 RSI: ff11000108a8f3d8 RDI: 0000000000000000 RBP: ff1100010de5a000 R08: 0000000000000e80 R09: 0000000000000004 R10: ff110001057a604c R11: 0000000000000000 R12: ff11000108a8f370 R13: ff110001090e8000 R14: 0000000000000000 R15: ff110001057a602c FS: 00007f2ffd8db6c0(0000) GS:ff110008dc90b000(0000) knlGS:0000000000000000 CS: 0010
CVE-2026-92512
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-92512
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": "514aee660df493cd673154a6ba6bab745ec47b8c",
"lessThan": "2ef2ea52ae41bd9efa83139e97ae839de7e17156",
"versionType": "git"
},
{
"status": "affected",
"version": "514aee660df493cd673154a6ba6bab745ec47b8c",
"lessThan": "a608af8cde3dd38936b356bbdeedea0653a05b3f",
"versionType": "git"
},
{
"status": "affected",
"version": "514aee660df493cd673154a6ba6bab745ec47b8c",
"lessThan": "8998829739c31fdbc892078e4449887d902e5dc9",
"versionType": "git"
},
{
"status": "affected",
"version": "514aee660df493cd673154a6ba6bab745ec47b8c",
"lessThan": "038cf231b7099ba6202dcc0c1ea01525122df09f",
"versionType": "git"
},
{
"status": "affected",
"version": "514aee660df493cd673154a6ba6bab745ec47b8c",
"lessThan": "001383248e5d754bbddb7ae2a8573bc8501c85d8",
"versionType": "git"
},
{
"status": "affected",
"version": "514aee660df493cd673154a6ba6bab745ec47b8c",
"lessThan": "709ba0e5311bd034eb4d9c1c00cc4e1109d6dc3e",
"versionType": "git"
}
],
"programFiles": [
"drivers/infiniband/core/verbs.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "5.15"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "5.15",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.1.188",
"versionType": "semver",
"lessThanOrEqual": "6.1.*"
},
{
"status": "unaffected",
"version": "6.6.157",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.110",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.52",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.2.6",
"versionType": "semver",
"lessThanOrEqual": "7.2.*"
},
{
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"drivers/infiniband/core/verbs.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-92512
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #37761 · Revision 1
- Added to Heist Feed
- Publisher date