GHSA-QH6G-QXVV-CW7G
Vulnerability from github – Published: 2026-11-19 15:31 – Updated: 2026-11-19 15:31In 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.
{
"affected": [],
"aliases": [
"CVE-2026-99525"
],
"database_specific": {
"cwe_ids": [],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-11-19T15:18:08Z",
"severity": null
},
"details": "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-\u003eterminate; 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-\u003eserver after dropping\nchan_lock: chan points into ses-\u003echans[], 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\u0027s 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.",
"id": "GHSA-qh6g-qxvv-cw7g",
"modified": "2026-11-19T15:31:27Z",
"published": "2026-11-19T15:31:27Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99525"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/031278577380e7875d95aed81a2b2bcac39be923"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/72367dacb5c9d8bd486b2fcaf56b6d3086d57250"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/8069935474b1502459ab50f75a67d7394a93cd5d"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/d88e3e844fad0f6b9fbeb8c8862f9272a7c26a99"
}
],
"schema_version": "1.4.0",
"severity": []
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.