{"id":"CVE-2026-89798","aliases":["CVE-2026-89798"],"related":[],"kind":"vulnerability","state":"published","title":"rpcrdma: arm rn_done before publishing the notification","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nrpcrdma: arm rn_done before publishing the notification\n\nrpcrdma_rn_register() inserts @rn into rd_xa with xa_alloc() before\nstoring the caller's callback in rn->rn_done. The xarray makes @rn\nreachable to rpcrdma_remove_one(), which walks rd_xa and invokes\nrn->rn_done(rn) for every registered notification. A device removal\nthat races a fresh registration can therefore observe @rn with\nrn_done still NULL, because the notification objects are zero\nallocated by their owners, and call through a NULL function pointer.\n\nStore rn->rn_done before xa_alloc() publishes @rn. The xarray's\nstore-side and load-side ordering then guarantees that any CPU which\nfinds @rn in rd_xa also observes the armed callback.\n\nrpcrdma_rn_unregister() treats a non-NULL rn_done as the sentinel\nfor a completed registration, so the early store must not survive a\nfailed registration. Clear rn_done again when xa_alloc() fails.\nWere it left set, the failed-accept cleanup path would call\nrpcrdma_rn_unregister() on an @rn that was never inserted, erasing\nan unrelated rd_xa slot and underflowing rd_kref.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nrpcrdma: arm rn_done before publishing the notification\n\nrpcrdma_rn_register() inserts @rn into rd_xa with xa_alloc() before\nstoring the caller's callback in rn->rn_done. The xarray makes @rn\nreachable to rpcrdma_remove_one(), which walks rd_xa and invokes\nrn->rn_done(rn) for every registered notification. A device removal\nthat races a fresh registration can therefore observe @rn with\nrn_done still NULL, because the notification objects are zero\nallocated by their owners, and call through a NULL function pointer.\n\nStore rn->rn_done before xa_alloc() publishes @rn. The xarray's\nstore-side and load-side ordering then guarantees that any CPU which\nfinds @rn in rd_xa also observes the armed callback.\n\nrpcrdma_rn_unregister() treats a non-NULL rn_done as the sentinel\nfor a completed registration, so the early store must not survive a\nfailed registration. Clear rn_done again when xa_alloc() fails.\nWere it left set, the failed-accept cleanup path would call\nrpcrdma_rn_unregister() on an @rn that was never inserted, erasing\nan unrelated rd_xa slot and underflowing rd_kref.","source":"cvelist"}],"published":"2026-09-16T10:30:29.930Z","modified":"2026-10-19T09:18:23.583Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"7e86845a0346efc95fddaa97ce5cd6a8bda8c71c","fixed":"f9fe3cad43c42d874a388583552b39b411d886eb","status":"affected"},{"type":"git","introduced":"7e86845a0346efc95fddaa97ce5cd6a8bda8c71c","fixed":"3c97b8e76ca2bba9e8770571413aed694068e78e","status":"affected"},{"type":"git","introduced":"7e86845a0346efc95fddaa97ce5cd6a8bda8c71c","fixed":"ea0408273ccf5df1fb52d9a1b9db4d31600dcb36","status":"affected"},{"type":"git","introduced":"7e86845a0346efc95fddaa97ce5cd6a8bda8c71c","fixed":"5b06f706374c37375bdff9d21cc10e61df925a92","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.11","status":"unaffected"},{"type":"semver","introduced":"6.12.111","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.51","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.5","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/f9fe3cad43c42d874a388583552b39b411d886eb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3c97b8e76ca2bba9e8770571413aed694068e78e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ea0408273ccf5df1fb52d9a1b9db4d31600dcb36","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5b06f706374c37375bdff9d21cc10e61df925a92","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-89798","url":"https://www.cve.org/CVERecord?id=CVE-2026-89798","licence":"CVE Terms of Use","modified":"2026-10-19T08:52:52.994Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-89798","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89798","licence":"Public domain","modified":"2026-10-19T09:18:23.583Z"}],"updatedAt":"2026-11-25T22:59:38.940Z","epss":{"score":0.00206,"percentile":0.11165,"date":"2026-12-02T12:00:21.000Z"}}