rpcrdma: arm rn_done before publishing the notification
In the Linux kernel, the following vulnerability has been resolved: rpcrdma: arm rn_done before publishing the notification rpcrdma_rn_register() inserts @rn into rd_xa with xa_alloc() before storing the caller's callback in rn->rn_done. The xarray makes @rn reachable to rpcrdma_remove_one(), which walks rd_xa and invokes rn->rn_done(rn) for every registered notification. A device removal that races a fresh registration can therefore observe @rn with rn_done still NULL, because the notification objects are zero allocated by their owners, and call through a NULL function pointer. Store rn->rn_done before xa_alloc() publishes @rn. The xarray's store-side and load-side ordering then guarantees that any CPU which finds @rn in rd_xa also observes the armed callback. rpcrdma_rn_unregister() treats a non-NULL rn_done as the sentinel for a completed registration, so the early store must not survive a failed registration. Clear rn_done again when xa_alloc() fails. Were it left set, the failed-accept cleanup path would call rpcrdma_rn_unregister() on an @rn that was never inserted, erasing an unrelated rd_xa slot and underflowing rd_kref.
CVE-2026-89798
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-89798
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": "7e86845a0346efc95fddaa97ce5cd6a8bda8c71c",
"lessThan": "f9fe3cad43c42d874a388583552b39b411d886eb",
"versionType": "git"
},
{
"status": "affected",
"version": "7e86845a0346efc95fddaa97ce5cd6a8bda8c71c",
"lessThan": "3c97b8e76ca2bba9e8770571413aed694068e78e",
"versionType": "git"
},
{
"status": "affected",
"version": "7e86845a0346efc95fddaa97ce5cd6a8bda8c71c",
"lessThan": "ea0408273ccf5df1fb52d9a1b9db4d31600dcb36",
"versionType": "git"
},
{
"status": "affected",
"version": "7e86845a0346efc95fddaa97ce5cd6a8bda8c71c",
"lessThan": "5b06f706374c37375bdff9d21cc10e61df925a92",
"versionType": "git"
}
],
"programFiles": [
"net/sunrpc/xprtrdma/ib_client.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "6.11"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "6.11",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.12.111",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.51",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.2.5",
"versionType": "semver",
"lessThanOrEqual": "7.2.*"
},
{
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"net/sunrpc/xprtrdma/ib_client.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-89798
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #36266 · Revision 1
- Added to Heist Feed
- Publisher date