{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "ee1d21794e55ab76505745d24101331552182002"
            },
            {
              "fixed": "d88e3e844fad0f6b9fbeb8c8862f9272a7c26a99"
            },
            {
              "fixed": "8069935474b1502459ab50f75a67d7394a93cd5d"
            },
            {
              "fixed": "72367dacb5c9d8bd486b2fcaf56b6d3086d57250"
            },
            {
              "fixed": "031278577380e7875d95aed81a2b2bcac39be923"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "e341b7975bd72d3ebda92b8d747d0aad15ce8717"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "3e1615361b6fa6e6e0bfae0efb3a8c2255ac101f"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.1.178"
            },
            {
              "fixed": "6.2"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.6.15"
            },
            {
              "fixed": "6.7"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.117"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.61"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.2"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99525.json"
  },
  "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'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.",
  "id": "CVE-2026-99525",
  "modified": "2026-11-19T16:45:42.212186431Z",
  "published": "2026-11-19T14:44:37.402Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "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"
    },
    {
      "type": "ADVISORY",
      "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"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "smb: client: fix use-after-free in cifs_ses_add_channel()"
}