{"id":"CVE-2026-99525","aliases":[],"title":"smb: client: fix use-after-free in cifs_ses_add_channel()","originalDescription":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix use-after-free in cifs_ses_add_channel()\n\nThe error path of cifs_ses_add_channel() calls cifs_put_tcp_session()\nbefore cifs_chan_clear_need_reconnect().  The latter reaches\ncifs_ses_get_chan_index(), which dereferences server->terminate; if\nthe put was the final reference, TCP_Server_Info is already freed and\nthis is a use-after-free.  Same put-then-use pattern as the recently\nfixed sibling in commit 717e0a25036b (\"cifs: Fix server use-after-free\nin cifs_chan_skip_or_disable()\").\n\nMove the put last, but do not read chan->server after dropping\nchan_lock: chan points into ses->chans[], and once chan_count is\ndecremented a concurrent add_channel can reuse the slot and overwrite\nthe pointer, so the put would act on the new channel's server.  Cache\nthe pointer under chan_lock, clear the reconnect bit and decrement\nchan_count while still holding the reference, and release it after\nthe unlock.\n\nThis issue was discovered by Tencent CodeBuddy Security.","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":{"score":0.00206,"percentile":0.11264},"exploitDb":null},"affected":[{"ecosystem":"Linux","name":"Kernel","range":">=6.1.178, <6.1.193","fixed":"6.1.193"},{"ecosystem":"Linux","name":"Kernel","range":">=6.1.178, <6.2","fixed":"6.2"},{"ecosystem":"Linux","name":"Kernel","range":">=6.13.0, <6.18.61","fixed":"6.18.61"},{"ecosystem":"Linux","name":"Kernel","range":">=6.19.0, <7.3.2","fixed":"7.3.2"},{"ecosystem":"Linux","name":"Kernel","range":">=6.6.15, <6.6.163","fixed":"6.6.163"},{"ecosystem":"Linux","name":"Kernel","range":">=6.6.15, <6.7","fixed":"6.7"},{"ecosystem":"Linux","name":"Kernel","range":">=6.7.0, <6.12.117","fixed":"6.12.117"},{"ecosystem":"vendor","name":"Linux","range":">=3e1615361b6fa6e6e0bfae0efb3a8c2255ac101f, <4bc20a4ccdbdbe14e8628073109c52a22d7512d1","fixed":"4bc20a4ccdbdbe14e8628073109c52a22d7512d1"},{"ecosystem":"vendor","name":"Linux","range":">=6.1.178, <6.1.193","fixed":"6.1.193"},{"ecosystem":"vendor","name":"Linux","range":">=6.1.178, <6.2","fixed":"6.2"},{"ecosystem":"vendor","name":"Linux","range":">=6.6.15, <6.6.163","fixed":"6.6.163"},{"ecosystem":"vendor","name":"Linux","range":">=6.6.15, <6.7","fixed":"6.7"},{"ecosystem":"vendor","name":"Linux","range":">=e341b7975bd72d3ebda92b8d747d0aad15ce8717, <093a42a31ae8bb26da7f4a358f83300d76d0c46b","fixed":"093a42a31ae8bb26da7f4a358f83300d76d0c46b"},{"ecosystem":"vendor","name":"Linux","range":">=ee1d21794e55ab76505745d24101331552182002, <031278577380e7875d95aed81a2b2bcac39be923","fixed":"031278577380e7875d95aed81a2b2bcac39be923"},{"ecosystem":"vendor","name":"Linux","range":">=ee1d21794e55ab76505745d24101331552182002, <72367dacb5c9d8bd486b2fcaf56b6d3086d57250","fixed":"72367dacb5c9d8bd486b2fcaf56b6d3086d57250"},{"ecosystem":"vendor","name":"Linux","range":">=ee1d21794e55ab76505745d24101331552182002, <8069935474b1502459ab50f75a67d7394a93cd5d","fixed":"8069935474b1502459ab50f75a67d7394a93cd5d"},{"ecosystem":"vendor","name":"Linux","range":">=ee1d21794e55ab76505745d24101331552182002, <d88e3e844fad0f6b9fbeb8c8862f9272a7c26a99","fixed":"d88e3e844fad0f6b9fbeb8c8862f9272a7c26a99"}],"references":[{"url":"https://git.kernel.org/stable/c/d88e3e844fad0f6b9fbeb8c8862f9272a7c26a99","type":"other"},{"url":"https://git.kernel.org/stable/c/8069935474b1502459ab50f75a67d7394a93cd5d","type":"other"},{"url":"https://git.kernel.org/stable/c/72367dacb5c9d8bd486b2fcaf56b6d3086d57250","type":"other"},{"url":"https://git.kernel.org/stable/c/031278577380e7875d95aed81a2b2bcac39be923","type":"other"},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","type":"package"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99525.json","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99525","type":"advisory"},{"url":"https://git.kernel.org/stable/c/093a42a31ae8bb26da7f4a358f83300d76d0c46b","type":"other"},{"url":"https://git.kernel.org/stable/c/4bc20a4ccdbdbe14e8628073109c52a22d7512d1","type":"other"}],"sources":[{"name":"nvd","at":"2026-11-23T08:46:27.324Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99525","license":"NVD terms of use","firstSeenAt":"2026-11-19T15:43:48.217Z"},{"name":"osv","at":"2026-12-01T11:19:51.640Z","url":"https://osv.dev/vulnerability/CVE-2026-99525","license":"CC-BY 4.0","firstSeenAt":"2026-11-19T17:23:41.936Z"},{"name":"cvelistV5","at":"2026-11-23T21:30:55.231Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99525","license":"CVE Terms of Use","firstSeenAt":"2026-11-19T15:00:34.039Z"}],"firstSeenAt":"2026-11-19T15:00:34.039Z","publishedAt":"2026-11-19T14:44:37.402Z","modifiedAt":"2026-12-01T10:42:30.375Z"}