CVE-2026-99541 (GCVE-0-2026-99541)

Vulnerability from cvelistv5 – Published: 2026-11-19 14:44 – Updated: 2026-11-23 08:04
VLAI
Title
ksmbd: fix OOB read and cross-share confusion in ksmbd_validate_name_reconnect()
Summary
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix OOB read and cross-share confusion in ksmbd_validate_name_reconnect() ksmbd_validate_name_reconnect() indexes ab_pathname[share->path_sz + 1] without checking that the path is longer than share->path_sz + 1 (d_path() fills the buffer from the end). A durable fp is not bound to its original share, so a client can preserve a file from a short-path share and reconnect it on a long-path share, making strcmp() read past the PATH_MAX buffer - with a long enough share path this oopses the kernel, and on a mapped page it also gives a byte-equality oracle on adjacent heap (the reconnect succeeds exactly when the out-of-bounds string equals the requested name). A same-share variant with the durable fp at the share root reads 1 byte past the buffer (strlen(ab_pathname) == share->path_sz). Check before comparing: the path must be longer than share->path_sz, it must start with share->path, and the next character must be '/'. The share root itself is accepted only for an empty name.
Impacted products
Vendor Product Version
Linux Linux Affected: 8df4bcdb0a4232192b2445256c39b787d58ef14d , < 89b539970af70a003a475c1ec975b16f6b4dae69 (git)
Affected: c8efcc786146a951091588e5fa7e3c754850cb3c , < 0129f7196a05a974bfb3ac4efd8380be651a51b9 (git)
Affected: c8efcc786146a951091588e5fa7e3c754850cb3c , < 93cb902b0ca04c9dc28b38776f7a03503c84b7ad (git)
Affected: c8efcc786146a951091588e5fa7e3c754850cb3c , < 828c02c65e2b0541f0cce403e336b978f92b6dfa (git)
Affected: c8efcc786146a951091588e5fa7e3c754850cb3c , < 783a7fc454991544bf92268d8f2413af1a7c7eb8 (git)
Affected: 6.6.32 , < 6.6.163 (semver)
Create a notification for this product.
Linux Linux Affected: 6.9
Unaffected: 0 , < 6.9 (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/vfs_cache.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "89b539970af70a003a475c1ec975b16f6b4dae69",
              "status": "affected",
              "version": "8df4bcdb0a4232192b2445256c39b787d58ef14d",
              "versionType": "git"
            },
            {
              "lessThan": "0129f7196a05a974bfb3ac4efd8380be651a51b9",
              "status": "affected",
              "version": "c8efcc786146a951091588e5fa7e3c754850cb3c",
              "versionType": "git"
            },
            {
              "lessThan": "93cb902b0ca04c9dc28b38776f7a03503c84b7ad",
              "status": "affected",
              "version": "c8efcc786146a951091588e5fa7e3c754850cb3c",
              "versionType": "git"
            },
            {
              "lessThan": "828c02c65e2b0541f0cce403e336b978f92b6dfa",
              "status": "affected",
              "version": "c8efcc786146a951091588e5fa7e3c754850cb3c",
              "versionType": "git"
            },
            {
              "lessThan": "783a7fc454991544bf92268d8f2413af1a7c7eb8",
              "status": "affected",
              "version": "c8efcc786146a951091588e5fa7e3c754850cb3c",
              "versionType": "git"
            },
            {
              "lessThan": "6.6.163",
              "status": "affected",
              "version": "6.6.32",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/smb/server/vfs_cache.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.9"
            },
            {
              "lessThan": "6.9",
              "status": "unaffected",
              "version": "0",
              "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": "6.6.163",
                  "versionStartIncluding": "6.6.32",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.117",
                  "versionStartIncluding": "6.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.61",
                  "versionStartIncluding": "6.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.2",
                  "versionStartIncluding": "6.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc1",
                  "versionStartIncluding": "6.9",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix OOB read and cross-share confusion in ksmbd_validate_name_reconnect()\n\nksmbd_validate_name_reconnect() indexes\nab_pathname[share-\u003epath_sz + 1] without checking that the path is\nlonger than share-\u003epath_sz + 1 (d_path() fills the buffer from the\nend). A durable fp is not bound to its original share, so a client\ncan preserve a file from a short-path share and reconnect it on a\nlong-path share, making strcmp() read past the PATH_MAX buffer -\nwith a long enough share path this oopses the kernel, and on a\nmapped page it also gives a byte-equality oracle on adjacent heap\n(the reconnect succeeds exactly when the out-of-bounds string\nequals the requested name). A same-share variant with the durable\nfp at the share root reads 1 byte past the buffer\n(strlen(ab_pathname) == share-\u003epath_sz).\n\nCheck before comparing: the path must be longer than share-\u003epath_sz,\nit must start with share-\u003epath, and the next character must be \u0027/\u0027.\nThe share root itself is accepted only for an empty name."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 8.3,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:N - The SMB2 CREATE Name and DH2C/DHnC durable-reconnect context arrive on TCP/445; ksmbd_conn_handler_loop() queues handle_ksmbd_work(), which calls smb2_open() and, for a lease reconnect, smb2_check_durable_oplock() then ksmbd_validate_name_reconnect(), whose strcmp uses that Name.\nAC:L - A client that can tree-connect opens the share root or a short-path file with a durable v2 lease (HANDLE_CACHING), drops its own TCP session so session_fd_check() keeps the fp, then sends CREATE/DH2C with a chosen Name; strcmp(\u0026ab_pathname[share-\u003epath_sz+1], name) then runs deterministically.\nPR:L - smb2_check_user_session() accepts SMB2_CREATE only after a session reaches SMB2_SESSION_VALID, get_ksmbd_tcon() requires a tree connect, and smb2_check_durable_oplock() accepts the reconnect only when ksmbd_vfs_compare_durable_owner() matches sess-\u003euser.\nUI:N - The attacker alone sends the durable CREATE, closes that connection, and sends the reconnect CREATE on a new TCP session to port 445.\nS:U - The out-of-bounds strcmp and the fp-\u003eshare_conf update in ksmbd_reopen_durable_fd() both occur in the host kernel that runs ksmbd, the same security authority as the SMB server.\nC:H - d_path() stores the NUL at the last byte of the kmalloc(PATH_MAX) buffer, so when strlen(ab_pathname) \u003c= share-\u003epath_sz, strcmp(\u0026ab_pathname[share-\u003epath_sz+1], name) reads past the object. Reconnect returns STATUS_SUCCESS only if those bytes equal the CREATE Name, an unbounded heap equality oracle.\nI:L - When the CREATE Name equals the path suffix at ab_pathname[share-\u003epath_sz+1], ksmbd_validate_name_reconnect() returns 0 without a share-prefix check, and ksmbd_reopen_durable_fd() points fp-\u003eshare_conf at that other share, republishing only the caller\u0027s existing filp.\nA:H - strcmp walks from ab_pathname[share-\u003epath_sz+1] until a NUL. d_path() places that NUL at the last byte of the kmalloc(PATH_MAX) buffer, so a longer reconnect share path reads off the allocation and oopses, and the share-root case (strlen(ab_pathname)==share-\u003epath_sz) starts one byte past the object."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-11-23T08:04:05.486Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/89b539970af70a003a475c1ec975b16f6b4dae69"
        },
        {
          "url": "https://git.kernel.org/stable/c/0129f7196a05a974bfb3ac4efd8380be651a51b9"
        },
        {
          "url": "https://git.kernel.org/stable/c/93cb902b0ca04c9dc28b38776f7a03503c84b7ad"
        },
        {
          "url": "https://git.kernel.org/stable/c/828c02c65e2b0541f0cce403e336b978f92b6dfa"
        },
        {
          "url": "https://git.kernel.org/stable/c/783a7fc454991544bf92268d8f2413af1a7c7eb8"
        }
      ],
      "title": "ksmbd: fix OOB read and cross-share confusion in ksmbd_validate_name_reconnect()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-99541",
    "datePublished": "2026-11-19T14:44:56.387Z",
    "dateReserved": "2026-09-25T10:25:14.421Z",
    "dateUpdated": "2026-11-23T08:04:05.486Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-99541",
      "date": "2026-11-22",
      "epss": "0.00168",
      "percentile": "0.06228"
    },
    "microsoft_vex": {
      "current_release_date": "2026-11-23T01:03:49.000Z",
      "cve": "CVE-2026-99541",
      "id": "msrc_CVE-2026-99541",
      "initial_release_date": "2026-11-23T01:03:49.000Z",
      "product_status:under_investigation": "1",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "ksmbd: fix OOB read and cross-share confusion in ksmbd_validate_name_reconnect()",
      "url": "https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-99541.json",
      "version": "1"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "fs/smb/server/vfs_cache.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "89b539970af70a003a475c1ec975b16f6b4dae69",
                    "status": "affected",
                    "version": "8df4bcdb0a4232192b2445256c39b787d58ef14d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "0129f7196a05a974bfb3ac4efd8380be651a51b9",
                    "status": "affected",
                    "version": "c8efcc786146a951091588e5fa7e3c754850cb3c",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "93cb902b0ca04c9dc28b38776f7a03503c84b7ad",
                    "status": "affected",
                    "version": "c8efcc786146a951091588e5fa7e3c754850cb3c",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "828c02c65e2b0541f0cce403e336b978f92b6dfa",
                    "status": "affected",
                    "version": "c8efcc786146a951091588e5fa7e3c754850cb3c",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "783a7fc454991544bf92268d8f2413af1a7c7eb8",
                    "status": "affected",
                    "version": "c8efcc786146a951091588e5fa7e3c754850cb3c",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "6.6.163",
                    "status": "affected",
                    "version": "6.6.32",
                    "versionType": "semver"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "fs/smb/server/vfs_cache.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "6.9"
                  },
                  {
                    "lessThan": "6.9",
                    "status": "unaffected",
                    "version": "0",
                    "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 OOB read and cross-share confusion in ksmbd_validate_name_reconnect()\n\nksmbd_validate_name_reconnect() indexes\nab_pathname[share-\u003epath_sz + 1] without checking that the path is\nlonger than share-\u003epath_sz + 1 (d_path() fills the buffer from the\nend). A durable fp is not bound to its original share, so a client\ncan preserve a file from a short-path share and reconnect it on a\nlong-path share, making strcmp() read past the PATH_MAX buffer -\nwith a long enough share path this oopses the kernel, and on a\nmapped page it also gives a byte-equality oracle on adjacent heap\n(the reconnect succeeds exactly when the out-of-bounds string\nequals the requested name). A same-share variant with the durable\nfp at the share root reads 1 byte past the buffer\n(strlen(ab_pathname) == share-\u003epath_sz).\n\nCheck before comparing: the path must be longer than share-\u003epath_sz,\nit must start with share-\u003epath, and the next character must be \u0027/\u0027.\nThe share root itself is accepted only for an empty name."
          }
        ],
        "id": "CVE-2026-99541",
        "lastModified": "2026-11-23T08:17:56.130",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "HIGH",
                "baseScore": 8.3,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "LOW",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 2.8,
              "impactScore": 5.5,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-11-19T15:18:10.167",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/0129f7196a05a974bfb3ac4efd8380be651a51b9"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/783a7fc454991544bf92268d8f2413af1a7c7eb8"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/828c02c65e2b0541f0cce403e336b978f92b6dfa"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/89b539970af70a003a475c1ec975b16f6b4dae69"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/93cb902b0ca04c9dc28b38776f7a03503c84b7ad"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Important",
      "current_release_date": "2026-11-22T11:31:26+00:00",
      "cve": "CVE-2026-99541",
      "id": "CVE-2026-99541",
      "initial_release_date": "2026-11-19T14:44:56.387000+00:00",
      "product_status:known_not_affected": "204",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: ksmbd: Denial of Service via out-of-bounds read in ksmbd_validate_name_reconnect()",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-99541.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…