CVE-2026-99525

Not scored yetLast modified Nov 23, 2026

Description

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

VendorProductVersions
LinuxLinux>= ee1d21794e55ab76505745d24101331552182002, < d88e3e844fad0f6b9fbeb8c8862f9272a7c26a99; >= ee1d21794e55ab76505745d24101331552182002, < 8069935474b1502459ab50f75a67d7394a93cd5d; >= ee1d21794e55ab76505745d24101331552182002, < 72367dacb5c9d8bd486b2fcaf56b6d3086d57250; >= ee1d21794e55ab76505745d24101331552182002, < 031278577380e7875d95aed81a2b2bcac39be923; e341b7975bd72d3ebda92b8d747d0aad15ce8717; 3e1615361b6fa6e6e0bfae0efb3a8c2255ac101f; >= 6.1.178, < 6.2; >= 6.6.15, < 6.7
LinuxLinux6.7

References

Timeline

Published
Nov 19, 2026
Last modified
Nov 23, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-99526In the Linux kernel, the following vulnerability has been resolved: smb: client: fix use-after-free infoleak via the readdir resume name CCVE-2026-99527In the Linux kernel, the following vulnerability has been resolved: spmi: Fix potential use-after-free by grabbing of_node reference As noCVE-2026-995287.8In the Linux kernel, the following vulnerability has been resolved: SUNRPC: fix netns use-after-free in write_gssp() While fuzzing with a CVE-2026-99529In the Linux kernel, the following vulnerability has been resolved: wifi: b43: fix use-after-free in b43_bcma_remove() b43_one_core_detachCVE-2026-99536.5Out of bounds read in ANGLE in Google Chrome prior to 148.0.7778.216 allowed a remote attacker to obtain potentially sensitive information fCVE-2026-99530In the Linux kernel, the following vulnerability has been resolved: cgroup: serialize migrations of newly forked processes With favordynmoCVE-2026-99531In the Linux kernel, the following vulnerability has been resolved: ksmbd: verify transform SessionId matches the decrypted header When anCVE-2026-99532In the Linux kernel, the following vulnerability has been resolved: ksmbd: validate security descriptor offsets before pointer arithmetic CVE-2026-99533In the Linux kernel, the following vulnerability has been resolved: ksmbd: validate AppInstanceId takeover target AppInstanceId lookup curCVE-2026-99534In the Linux kernel, the following vulnerability has been resolved: ksmbd: prevent stale data from being written by SMB2 WRITE requests InCVE-2026-99535In the Linux kernel, the following vulnerability has been resolved: ksmbd: prevent share root removal through empty paths A FileLinkInformCVE-2026-995367.1In the Linux kernel, the following vulnerability has been resolved: ksmbd: prevent session binding in compound requests A failed multichan
CVE-2026-99525: Unscored | Vulnix