{"id":"CVE-2026-89543","aliases":["CVE-2026-89543"],"related":[],"kind":"vulnerability","state":"published","title":"sunrpc: fix use-after-free in __rpc_clnt_handle_event and __rpc_clnt_remove_pipedir","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nsunrpc: fix use-after-free in __rpc_clnt_handle_event and __rpc_clnt_remove_pipedir\n\nNormal client creation goes through rpc_setup_pipedir(), which records\nclnt->pipefs_sb, but the mount-event path in __rpc_clnt_handle_event()\ncalls rpc_setup_pipedir_sb() directly and never refreshes that field.\nThe umount path also removes the directory without clearing\nclnt->pipefs_sb.\n\nAfter a late pipefs mount or any remount, rpc_clnt_remove_pipedir()\ncompares the current superblock against a stale pipefs_sb pointer and\nskips cleanup, leaving pipefs dentries whose inode private data still\npoints at a freed rpc_clnt, leading to a potential use-after-free during\nsubsequent rpc_info_open() or rpc_show_info() calls.\n\nFix this by properly updating clnt->pipefs_sb upon mount events and\nclearing it during unmount or failure paths.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsunrpc: fix use-after-free in __rpc_clnt_handle_event and __rpc_clnt_remove_pipedir\n\nNormal client creation goes through rpc_setup_pipedir(), which records\nclnt->pipefs_sb, but the mount-event path in __rpc_clnt_handle_event()\ncalls rpc_setup_pipedir_sb() directly and never refreshes that field.\nThe umount path also removes the directory without clearing\nclnt->pipefs_sb.\n\nAfter a late pipefs mount or any remount, rpc_clnt_remove_pipedir()\ncompares the current superblock against a stale pipefs_sb pointer and\nskips cleanup, leaving pipefs dentries whose inode private data still\npoints at a freed rpc_clnt, leading to a potential use-after-free during\nsubsequent rpc_info_open() or rpc_show_info() calls.\n\nFix this by properly updating clnt->pipefs_sb upon mount events and\nclearing it during unmount or failure paths.","source":"cvelist"}],"published":"2026-09-11T19:44:19.679Z","modified":"2026-10-30T13:20:20.340Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"7749fd2dbef72a52b5c9ffdbf877691950ed4680","fixed":"1a713814e0580f946196bca5e340b37991c6e8bf","status":"affected"},{"type":"git","introduced":"cc2e7ebbeb1d0601f7f3c8d93b78fcc03a95e44a","fixed":"f99fedfd1dbffe8d20b421c9a7d4655a135d4fcd","status":"affected"},{"type":"git","introduced":"bfca5fb4e97c46503ddfc582335917b0cc228264","fixed":"59527bbfb1eabdb28e95e7c725886cc2c2899cb3","status":"affected"},{"type":"git","introduced":"bfca5fb4e97c46503ddfc582335917b0cc228264","fixed":"e769fcde3cc73e847b1eb3acd40c04a291cb0c0c","status":"affected"},{"type":"git","introduced":"bfca5fb4e97c46503ddfc582335917b0cc228264","fixed":"cdf7a233cb94774b0e7df42d9157077983f5022c","status":"affected"},{"type":"git","introduced":"bfca5fb4e97c46503ddfc582335917b0cc228264","fixed":"932a8cf6abb2b2f8677b79153a823108d8861fe2","status":"affected"},{"type":"git","version":"17866066b8ac1cc38fb449670bc15dc9fee4b40a","status":"affected"},{"type":"git","version":"7d61d1da2ed1f682c41cae0c8d4719cdaccee5c5","status":"affected"},{"type":"git","version":"dedf2a0eb9448ae73b270743e6ea9b108189df46","status":"affected"},{"type":"git","version":"194454afa6aa9d6ed74f0c57127bc8beb27c20df","status":"affected"},{"type":"git","version":"1cdb52ffd6600a37bd355d8dce58ecd03e55e618","status":"affected"},{"type":"semver","introduced":"6.1.64","fixed":"6.1.191","status":"affected"},{"type":"semver","introduced":"6.6.3","fixed":"6.6.160","status":"affected"},{"type":"semver","introduced":"4.19.318","fixed":"4.20","status":"affected"},{"type":"semver","introduced":"5.4.280","fixed":"5.5","status":"affected"},{"type":"semver","introduced":"5.10.202","fixed":"5.11","status":"affected"},{"type":"semver","introduced":"5.15.140","fixed":"5.16","status":"affected"},{"type":"semver","introduced":"6.5.13","fixed":"6.6","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.7","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.111","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.50","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.4","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/1a713814e0580f946196bca5e340b37991c6e8bf","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f99fedfd1dbffe8d20b421c9a7d4655a135d4fcd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/59527bbfb1eabdb28e95e7c725886cc2c2899cb3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e769fcde3cc73e847b1eb3acd40c04a291cb0c0c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cdf7a233cb94774b0e7df42d9157077983f5022c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/932a8cf6abb2b2f8677b79153a823108d8861fe2","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-89543","url":"https://www.cve.org/CVERecord?id=CVE-2026-89543","licence":"CVE Terms of Use","modified":"2026-10-30T12:32:06.731Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-89543","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89543","licence":"Public domain","modified":"2026-10-30T13:20:20.340Z"}],"updatedAt":"2026-11-25T22:59:38.059Z","epss":{"score":0.00227,"percentile":0.14353,"date":"2026-12-01T12:00:22.000Z"}}