CheckCore 취약점 점검 · 조치

CVE-2026-99525 smb: client: fix use-after-free in cifs_ses_add_channel()

설명

In the Linux kernel, the following vulnerability has been resolved: smb: client: fix use-after-free in cifs_ses_add_channel() The error path of cifs_ses_add_channel() calls cifs_put_tcp_session() before cifs_chan_clear_need_reconnect(). The latter reaches cifs_ses_get_chan_index(), which dereferences server->terminate; if the put was the final reference, TCP_Server_Info is already freed and this is a use-after-free. Same put-then-use pattern as the recently fixed sibling in commit 717e0a25036b ("cifs: Fix server use-after-free in cifs_chan_skip_or_disable()"). Move the put last, but do not read chan->server after dropping chan_lock: chan points into ses->chans[], and once chan_count is decremented a concurrent add_channel can reuse the slot and overwrite the pointer, so the put would act on the new channel's server. Cache the pointer under chan_lock, clear the reconnect bit and decrement chan_count while still holding the reference, and release it after the unlock. This issue was discovered by Tencent CodeBuddy Security.

영향 받는 제품 제품 1개

  • Linux

    Linux

    해결 버전 있음

    영향 받는 버전

    • 6.1.178 이상 6.2 미만
    • 6.6.15 이상 6.7 미만
    • 6.7

    해결 버전

    • 6.2 이상
    • 6.7 이상
    • 6.7 미만
    • 6.12.117 이상
    • 6.18.61 이상
    • 7.3.2 이상
‹ 목록

운영 중인 서버의 점검 지원 범위가 궁금하면

도입 문의