CVE-2026-99539 (GCVE-0-2026-99539)

Vulnerability from cvelistv5 – Published: 2026-11-19 14:44 – Updated: 2026-11-23 08:04
VLAI
Title
ksmbd: fix session reference leak on compounded SESSION_SETUP
Summary
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix session reference leak on compounded SESSION_SETUP A compound request can place SESSION_SETUP after another command. That earlier command leaves a reference to its session in work->sess. smb2_sess_setup() then overwrites work->sess with the session it looks up or creates, and the dispatcher later puts work->sess only once. The inherited reference is never dropped. That leaks the session, together with its setup connection and socket, and every repeat of the compound leaks another. unreferenced object (size 512): __kmalloc_cache_noprof+0x32c/0x3a0 ksmbd_smb2_session_create+0xf6/0x9c0 [ksmbd] smb2_sess_setup+0xda4/0x6280 [ksmbd] handle_ksmbd_work+0x88c/0x1cb0 [ksmbd] Save the inherited session on entry. After the request has been processed, release it once, but only when smb2_sess_setup() has replaced work->sess with its own session or cleared it. Do this after ksmbd_conn_unlock() so the put does not run under srv_mutex. An error path may instead leave the inherited session in work->sess. Keep it there, so the dispatcher still puts it and the error response is still signed or encrypted with it as before.
Severity
No CVSS data available.
Impacted products
Vendor Product Version
Linux Linux Affected: 0f62358ce85b2d4c949ef1b648be01b29cec667a , < a259b8f25de7b50d43fb94b29489d98848bba580 (git)
Affected: a9839c37fd813b432988f58a9d9dd59253d3eb2c , < 964c39f41c837fc2de221dcb860ff6451e17deae (git)
Affected: 5511999e9615e4318e9142d23b29bd1597befc08 , < 84deaeff31f4bdf5fee5c8dd1e3a4a49c3ffc05d (git)
Affected: 7aa8804c0b67b3cb263a472d17f2cb50d7f1a930 , < b2d710b12e86fd4cf02be090651fa6ea8683fc29 (git)
Affected: 7aa8804c0b67b3cb263a472d17f2cb50d7f1a930 , < 38cddb9f7c9102f23652d198748c658072cf0df5 (git)
Affected: 7aa8804c0b67b3cb263a472d17f2cb50d7f1a930 , < db30f8f330fc73304edfe595dc5a6f5e17ba97f2 (git)
Affected: 7aa8804c0b67b3cb263a472d17f2cb50d7f1a930 , < 03bd8f5279e490e15e0c0f0fa388ffbd2fbacd65 (git)
Affected: ee371898b53a9b9b51c02d22a8c31bfb86d45f0d (git)
Affected: 5.15.171 , < 5.15.226 (semver)
Affected: 6.1.114 , < 6.1.193 (semver)
Affected: 6.6.58 , < 6.6.163 (semver)
Affected: 6.11.5 , < 6.12 (semver)
Create a notification for this product.
Linux Linux Affected: 6.12
Unaffected: 0 , < 6.12 (semver)
Unaffected: 5.15.226 , ≤ 5.15.* (semver)
Unaffected: 6.1.193 , ≤ 6.1.* (semver)
Unaffected: 6.6.163 , ≤ 6.6.* (semver)
Unaffected: 6.12.117 , ≤ 6.12.* (semver)
Unaffected: 6.18.61 , ≤ 6.18.* (semver)
Unaffected: 7.3.2 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc1 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/smb/server/smb2pdu.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "a259b8f25de7b50d43fb94b29489d98848bba580",
              "status": "affected",
              "version": "0f62358ce85b2d4c949ef1b648be01b29cec667a",
              "versionType": "git"
            },
            {
              "lessThan": "964c39f41c837fc2de221dcb860ff6451e17deae",
              "status": "affected",
              "version": "a9839c37fd813b432988f58a9d9dd59253d3eb2c",
              "versionType": "git"
            },
            {
              "lessThan": "84deaeff31f4bdf5fee5c8dd1e3a4a49c3ffc05d",
              "status": "affected",
              "version": "5511999e9615e4318e9142d23b29bd1597befc08",
              "versionType": "git"
            },
            {
              "lessThan": "b2d710b12e86fd4cf02be090651fa6ea8683fc29",
              "status": "affected",
              "version": "7aa8804c0b67b3cb263a472d17f2cb50d7f1a930",
              "versionType": "git"
            },
            {
              "lessThan": "38cddb9f7c9102f23652d198748c658072cf0df5",
              "status": "affected",
              "version": "7aa8804c0b67b3cb263a472d17f2cb50d7f1a930",
              "versionType": "git"
            },
            {
              "lessThan": "db30f8f330fc73304edfe595dc5a6f5e17ba97f2",
              "status": "affected",
              "version": "7aa8804c0b67b3cb263a472d17f2cb50d7f1a930",
              "versionType": "git"
            },
            {
              "lessThan": "03bd8f5279e490e15e0c0f0fa388ffbd2fbacd65",
              "status": "affected",
              "version": "7aa8804c0b67b3cb263a472d17f2cb50d7f1a930",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "ee371898b53a9b9b51c02d22a8c31bfb86d45f0d",
              "versionType": "git"
            },
            {
              "lessThan": "5.15.226",
              "status": "affected",
              "version": "5.15.171",
              "versionType": "semver"
            },
            {
              "lessThan": "6.1.193",
              "status": "affected",
              "version": "6.1.114",
              "versionType": "semver"
            },
            {
              "lessThan": "6.6.163",
              "status": "affected",
              "version": "6.6.58",
              "versionType": "semver"
            },
            {
              "lessThan": "6.12",
              "status": "affected",
              "version": "6.11.5",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/smb/server/smb2pdu.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.12"
            },
            {
              "lessThan": "6.12",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.226",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.193",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.163",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.117",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.61",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.226",
                  "versionStartIncluding": "5.15.171",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.193",
                  "versionStartIncluding": "6.1.114",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.163",
                  "versionStartIncluding": "6.6.58",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.117",
                  "versionStartIncluding": "6.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.61",
                  "versionStartIncluding": "6.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.2",
                  "versionStartIncluding": "6.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc1",
                  "versionStartIncluding": "6.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.11.5",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix session reference leak on compounded SESSION_SETUP\n\nA compound request can place SESSION_SETUP after another command. That\nearlier command leaves a reference to its session in work-\u003esess.\nsmb2_sess_setup() then overwrites work-\u003esess with the session it looks up\nor creates, and the dispatcher later puts work-\u003esess only once. The\ninherited reference is never dropped. That leaks the session, together\nwith its setup connection and socket, and every repeat of the compound\nleaks another.\n\n  unreferenced object (size 512):\n    __kmalloc_cache_noprof+0x32c/0x3a0\n    ksmbd_smb2_session_create+0xf6/0x9c0 [ksmbd]\n    smb2_sess_setup+0xda4/0x6280 [ksmbd]\n    handle_ksmbd_work+0x88c/0x1cb0 [ksmbd]\n\nSave the inherited session on entry. After the request has been\nprocessed, release it once, but only when smb2_sess_setup() has replaced\nwork-\u003esess with its own session or cleared it. Do this after\nksmbd_conn_unlock() so the put does not run under srv_mutex. An error path\nmay instead leave the inherited session in work-\u003esess. Keep it there, so\nthe dispatcher still puts it and the error response is still signed or\nencrypted with it as before."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-11-23T08:04:03.060Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/a259b8f25de7b50d43fb94b29489d98848bba580"
        },
        {
          "url": "https://git.kernel.org/stable/c/964c39f41c837fc2de221dcb860ff6451e17deae"
        },
        {
          "url": "https://git.kernel.org/stable/c/84deaeff31f4bdf5fee5c8dd1e3a4a49c3ffc05d"
        },
        {
          "url": "https://git.kernel.org/stable/c/b2d710b12e86fd4cf02be090651fa6ea8683fc29"
        },
        {
          "url": "https://git.kernel.org/stable/c/38cddb9f7c9102f23652d198748c658072cf0df5"
        },
        {
          "url": "https://git.kernel.org/stable/c/db30f8f330fc73304edfe595dc5a6f5e17ba97f2"
        },
        {
          "url": "https://git.kernel.org/stable/c/03bd8f5279e490e15e0c0f0fa388ffbd2fbacd65"
        }
      ],
      "title": "ksmbd: fix session reference leak on compounded SESSION_SETUP",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-99539",
    "datePublished": "2026-11-19T14:44:54.387Z",
    "dateReserved": "2026-09-25T10:25:14.420Z",
    "dateUpdated": "2026-11-23T08:04:03.060Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-99539",
      "date": "2026-11-22",
      "epss": "0.00168",
      "percentile": "0.06224"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "fs/smb/server/smb2pdu.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "a259b8f25de7b50d43fb94b29489d98848bba580",
                    "status": "affected",
                    "version": "0f62358ce85b2d4c949ef1b648be01b29cec667a",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "964c39f41c837fc2de221dcb860ff6451e17deae",
                    "status": "affected",
                    "version": "a9839c37fd813b432988f58a9d9dd59253d3eb2c",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "84deaeff31f4bdf5fee5c8dd1e3a4a49c3ffc05d",
                    "status": "affected",
                    "version": "5511999e9615e4318e9142d23b29bd1597befc08",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "b2d710b12e86fd4cf02be090651fa6ea8683fc29",
                    "status": "affected",
                    "version": "7aa8804c0b67b3cb263a472d17f2cb50d7f1a930",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "38cddb9f7c9102f23652d198748c658072cf0df5",
                    "status": "affected",
                    "version": "7aa8804c0b67b3cb263a472d17f2cb50d7f1a930",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "db30f8f330fc73304edfe595dc5a6f5e17ba97f2",
                    "status": "affected",
                    "version": "7aa8804c0b67b3cb263a472d17f2cb50d7f1a930",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "03bd8f5279e490e15e0c0f0fa388ffbd2fbacd65",
                    "status": "affected",
                    "version": "7aa8804c0b67b3cb263a472d17f2cb50d7f1a930",
                    "versionType": "git"
                  },
                  {
                    "status": "affected",
                    "version": "ee371898b53a9b9b51c02d22a8c31bfb86d45f0d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "5.15.226",
                    "status": "affected",
                    "version": "5.15.171",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "6.1.193",
                    "status": "affected",
                    "version": "6.1.114",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "6.6.163",
                    "status": "affected",
                    "version": "6.6.58",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "6.12",
                    "status": "affected",
                    "version": "6.11.5",
                    "versionType": "semver"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "fs/smb/server/smb2pdu.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "6.12"
                  },
                  {
                    "lessThan": "6.12",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.15.*",
                    "status": "unaffected",
                    "version": "5.15.226",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.1.*",
                    "status": "unaffected",
                    "version": "6.1.193",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.6.*",
                    "status": "unaffected",
                    "version": "6.6.163",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.12.*",
                    "status": "unaffected",
                    "version": "6.12.117",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.18.*",
                    "status": "unaffected",
                    "version": "6.18.61",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.3.*",
                    "status": "unaffected",
                    "version": "7.3.2",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.4-rc1",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix session reference leak on compounded SESSION_SETUP\n\nA compound request can place SESSION_SETUP after another command. That\nearlier command leaves a reference to its session in work-\u003esess.\nsmb2_sess_setup() then overwrites work-\u003esess with the session it looks up\nor creates, and the dispatcher later puts work-\u003esess only once. The\ninherited reference is never dropped. That leaks the session, together\nwith its setup connection and socket, and every repeat of the compound\nleaks another.\n\n  unreferenced object (size 512):\n    __kmalloc_cache_noprof+0x32c/0x3a0\n    ksmbd_smb2_session_create+0xf6/0x9c0 [ksmbd]\n    smb2_sess_setup+0xda4/0x6280 [ksmbd]\n    handle_ksmbd_work+0x88c/0x1cb0 [ksmbd]\n\nSave the inherited session on entry. After the request has been\nprocessed, release it once, but only when smb2_sess_setup() has replaced\nwork-\u003esess with its own session or cleared it. Do this after\nksmbd_conn_unlock() so the put does not run under srv_mutex. An error path\nmay instead leave the inherited session in work-\u003esess. Keep it there, so\nthe dispatcher still puts it and the error response is still signed or\nencrypted with it as before."
          }
        ],
        "id": "CVE-2026-99539",
        "lastModified": "2026-11-23T08:17:55.863",
        "metrics": {},
        "published": "2026-11-19T15:18:09.900",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/03bd8f5279e490e15e0c0f0fa388ffbd2fbacd65"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/38cddb9f7c9102f23652d198748c658072cf0df5"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/84deaeff31f4bdf5fee5c8dd1e3a4a49c3ffc05d"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/964c39f41c837fc2de221dcb860ff6451e17deae"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/a259b8f25de7b50d43fb94b29489d98848bba580"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/b2d710b12e86fd4cf02be090651fa6ea8683fc29"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/db30f8f330fc73304edfe595dc5a6f5e17ba97f2"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-11-19T21:54:16+00:00",
      "cve": "CVE-2026-99539",
      "id": "CVE-2026-99539",
      "initial_release_date": "2026-11-19T14:44:54.387000+00:00",
      "product_status:known_not_affected": "204",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: ksmbd: Denial of Service via session reference leak in compounded requests",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-99539.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

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.

Loading…

Loading…

Loading…

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.


Loading…