CVE-2026-89543 sunrpc: fix use-after-free in __rpc_clnt_handle_event and __rpc_clnt_remove_pipedir
설명
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.
영향 받는 제품 제품 1개
-
해결 버전 있음
Linux
Linux
영향 받는 버전
- 6.1.64 이상 6.1.191 미만
- 6.6.3 이상 6.6.160 미만
- 4.19.318 이상 4.20 미만
- 5.4.280 이상 5.5 미만
- 5.10.202 이상 5.11 미만
- 5.15.140 이상 5.16 미만
- 6.5.13 이상 6.6 미만
- 6.7
해결 버전
- 6.1.191 이상
- 6.6.160 이상
- 4.20 이상
- 5.5 이상
- 5.11 이상
- 5.16 이상
- 6.6 이상
- 6.7 미만
외 3개 구간 펼치기
- 6.12.111 이상
- 6.18.50 이상
- 7.2.4 이상
참고 자료 6건
- git.kernel.org https://git.kernel.org/stable/c/1a713814e0580f946196bca5e340b37991c6e8bf (새 창)
- git.kernel.org https://git.kernel.org/stable/c/59527bbfb1eabdb28e95e7c725886cc2c2899cb3 (새 창)
- git.kernel.org https://git.kernel.org/stable/c/932a8cf6abb2b2f8677b79153a823108d8861fe2 (새 창)
- git.kernel.org https://git.kernel.org/stable/c/cdf7a233cb94774b0e7df42d9157077983f5022c (새 창)
- git.kernel.org https://git.kernel.org/stable/c/e769fcde3cc73e847b1eb3acd40c04a291cb0c0c (새 창)
- git.kernel.org https://git.kernel.org/stable/c/f99fedfd1dbffe8d20b421c9a7d4655a135d4fcd (새 창)