{"id":"CVE-2026-89798","revision":"ffa2d7e352134b3096e2964cead34fde","records":[{"revision":"ffa2d7e352134b3096e2964cead34fde","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-89798","aliases":[],"title":"rpcrdma: arm rn_done before publishing the notification","description":"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.","state":0,"publishedAt":"2026-09-16T10:30:29.93+00:00","modifiedAt":"2026-10-19T08:52:52.994+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"net/sunrpc/xprtrdma/ib_client.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"7e86845a0346efc95fddaa97ce5cd6a8bda8c71c\",\n                            \"lessThan\": \"f9fe3cad43c42d874a388583552b39b411d886eb\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"7e86845a0346efc95fddaa97ce5cd6a8bda8c71c\",\n                            \"lessThan\": \"3c97b8e76ca2bba9e8770571413aed694068e78e\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"7e86845a0346efc95fddaa97ce5cd6a8bda8c71c\",\n                            \"lessThan\": \"ea0408273ccf5df1fb52d9a1b9db4d31600dcb36\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"7e86845a0346efc95fddaa97ce5cd6a8bda8c71c\",\n                            \"lessThan\": \"5b06f706374c37375bdff9d21cc10e61df925a92\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"net/sunrpc/xprtrdma/ib_client.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"6.11\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"6.11\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.12.111\",\n                            \"lessThanOrEqual\": \"6.12.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.18.51\",\n                            \"lessThanOrEqual\": \"6.18.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.2.5\",\n                            \"lessThanOrEqual\": \"7.2.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.3\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[],"references":["https://git.kernel.org/stable/c/f9fe3cad43c42d874a388583552b39b411d886eb","https://git.kernel.org/stable/c/3c97b8e76ca2bba9e8770571413aed694068e78e","https://git.kernel.org/stable/c/ea0408273ccf5df1fb52d9a1b9db4d31600dcb36","https://git.kernel.org/stable/c/5b06f706374c37375bdff9d21cc10e61df925a92"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-89798","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-89798","identifiers":["CVE-2026-89798"]},"retained":false,"historicalAffected":[]}],"coverage":[]}