CVE-2026-89543

Summary

In the Linux kernel, the following vulnerability has been resolved:

sunrpc: fix use-after-free in __rpc_clnt_handle_event and __rpc_clnt_remove_pipedir

Normal client creation goes through rpc_setup_pipedir(), which records clnt->pipefs_sb, but the mount-event path in __rpc_clnt_handle_event() calls rpc_setup_pipedir_sb() directly and never refreshes that field. The umount path also removes the directory without clearing clnt->pipefs_sb.

After a late pipefs mount or any remount, rpc_clnt_remove_pipedir() compares the current superblock against a stale pipefs_sb pointer and skips cleanup, leaving pipefs dentries whose inode private data still points at a freed rpc_clnt, leading to a potential use-after-free during subsequent rpc_info_open() or rpc_show_info() calls.

Fix this by properly updating clnt->pipefs_sb upon mount events and clearing it during unmount or failure paths.

Affected Software

VendorProductVersion RangeStatus
LinuxLinuxbfca5fb4e97c46503ddfc582335917b0cc228264 < e769fcde3cc73e847b1eb3acd40c04a291cb0c0caffected
LinuxLinuxbfca5fb4e97c46503ddfc582335917b0cc228264 < cdf7a233cb94774b0e7df42d9157077983f5022caffected
LinuxLinuxbfca5fb4e97c46503ddfc582335917b0cc228264 < 932a8cf6abb2b2f8677b79153a823108d8861fe2affected
LinuxLinux17866066b8ac1cc38fb449670bc15dc9fee4b40aaffected
LinuxLinux7d61d1da2ed1f682c41cae0c8d4719cdaccee5c5affected
LinuxLinuxdedf2a0eb9448ae73b270743e6ea9b108189df46affected
LinuxLinux194454afa6aa9d6ed74f0c57127bc8beb27c20dfaffected
LinuxLinux7749fd2dbef72a52b5c9ffdbf877691950ed4680affected
LinuxLinux1cdb52ffd6600a37bd355d8dce58ecd03e55e618affected
LinuxLinuxcc2e7ebbeb1d0601f7f3c8d93b78fcc03a95e44aaffected
LinuxLinux4.19.318 < 4.20affected
LinuxLinux5.4.280 < 5.5affected
LinuxLinux5.10.202 < 5.11affected
LinuxLinux5.15.140 < 5.16affected
LinuxLinux6.1.64 < 6.2affected
LinuxLinux6.5.13 < 6.6affected
LinuxLinux6.6.3 < 6.7affected
LinuxLinux6.7affected
LinuxLinux0 < 6.7unaffected
LinuxLinux6.18.50 <= 6.18.*unaffected
LinuxLinux7.2.4 <= 7.2.*unaffected
LinuxLinux7.3-rc1 <= *unaffected

Weaknesses

References