CVE-2025-40328 smb: client: fix potential UAF in smb2_close_cached_fid()
설명
In the Linux kernel, the following vulnerability has been resolved: smb: client: fix potential UAF in smb2_close_cached_fid() find_or_create_cached_dir() could grab a new reference after kref_put() had seen the refcount drop to zero but before cfid_list_lock is acquired in smb2_close_cached_fid(), leading to use-after-free. Switch to kref_put_lock() so cfid_release() is called with cfid_list_lock held, closing that gap.
영향 받는 제품 제품 1개
-
해결 버전 있음
Linux
Linux
영향 받는 버전
- 6.1
해결 버전
- 6.1 미만
- 6.1.191 이상
- 6.6.117 이상
- 6.12.58 이상
- 6.17.8 이상
참고 자료 5건
- git.kernel.org https://git.kernel.org/stable/c/065bd62412271a2d734810dd50336cae88c54427 (새 창)
- git.kernel.org https://git.kernel.org/stable/c/734e99623c5b65bf2c03e35978a0b980ebc3c2f8 (새 창)
- git.kernel.org https://git.kernel.org/stable/c/bb3355ce9dcaba1b4a766f98b2ad373cab6cd626 (새 창)
- git.kernel.org https://git.kernel.org/stable/c/bdb596ceb4b7c3f28786a33840263728217fbcf5 (새 창)
- git.kernel.org https://git.kernel.org/stable/c/cb52d9c86d70298de0ab7c7953653898cbc0efd6 (새 창)