CVE-2026-98318 (GCVE-0-2026-98318)
Vulnerability from cvelistv5
Published
2026-10-06 08:46
Modified
2026-10-19 09:17
Summary
In the Linux kernel, the following vulnerability has been resolved: smb: client: validate absolute native symlink targets before NT fixups With symlinkroot unset, an absolute target is copied without conversion to an NT drive path. Later code still assumes an NT prefix is present when modifying the target and calculating the print name length. For "/ab", this causes two failures: sym[5] and path[5] are written past their allocations, and plen -= 2 * poff subtracts an assumed 8-byte prefix from a 6-byte UTF-16 target, wrapping u16 plen to 65534. That underflow causes another overflow: memcpy() copies 65534 bytes into a 24-byte buffer. A user with write access to a mounted share can trigger these bugs with default settings. Validate the NT drive prefix, including an ASCII drive letter, before accessing fixed offsets or subtracting the prefix length.
Impacted products
Vendor Product Version
Linux Linux Version: 3363da82e02f1bddc54faa92ea430c6532e2cd2e
Version: 3363da82e02f1bddc54faa92ea430c6532e2cd2e
Version: b6ea7b6c6be65149ab6b8e37a9dd1671f76add1b
Version: 6.15.6   ≤
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/smb/client/reparse.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "6913ff607c2bc8694193e1fcc40bf16d75f35f16",
              "status": "affected",
              "version": "3363da82e02f1bddc54faa92ea430c6532e2cd2e",
              "versionType": "git"
            },
            {
              "lessThan": "23c240d9509e15f72e4112fc95f0160ab32ec430",
              "status": "affected",
              "version": "3363da82e02f1bddc54faa92ea430c6532e2cd2e",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "b6ea7b6c6be65149ab6b8e37a9dd1671f76add1b",
              "versionType": "git"
            },
            {
              "lessThan": "6.16",
              "status": "affected",
              "version": "6.15.6",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/smb/client/reparse.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.16"
            },
            {
              "lessThan": "6.16",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.2.*",
              "status": "unaffected",
              "version": "7.2.8",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.3",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2.8",
                  "versionStartIncluding": "6.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3",
                  "versionStartIncluding": "6.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.15.6",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: validate absolute native symlink targets before NT fixups\n\nWith symlinkroot unset, an absolute target is copied without conversion\nto an NT drive path. Later code still assumes an NT prefix is present\nwhen modifying the target and calculating the print name length.\n\nFor \"/ab\", this causes two failures: sym[5] and path[5] are written\npast their allocations, and plen -= 2 * poff subtracts an assumed\n8-byte prefix from a 6-byte UTF-16 target, wrapping u16 plen to 65534.\nThat underflow causes another overflow: memcpy() copies 65534 bytes\ninto a 24-byte buffer. A user with write access to a mounted share\ncan trigger these bugs with default settings.\n\nValidate the NT drive prefix, including an ASCII drive letter, before\naccessing fixed offsets or subtracting the prefix length."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The malformed input is the symlink target string a local user passes to symlink(2) on a CIFS mount (cifs_symlink -\u003e create_reparse_symlink -\u003e create_native_symlink); the SMB server supplies none of the bad data, and the overflow happens before any request is sent.\nAC:L - With default options (reparse_type defaults to NFS so cifs_symlink_type() returns NATIVE, symlinkroot unset) a target like \"/ab\" deterministically triggers the plen underflow; detect_directory_symlink_target() returns 0 for absolute targets, so nothing on the path depends on state outside the attacker\u0027s control.\nPR:L - The attacker needs only an ordinary local account with write access to a directory on an already-mounted CIFS share whose server advertises FILE_SUPPORTS_REPARSE_POINTS; cifs is not mountable from user namespaces, so no further privilege is gained there.\nUI:N - The attacker triggers the bug entirely through their own symlink(2) call; no victim action is needed beyond the share already being mounted.\nS:U - Heap corruption in the CIFS client stays within the local kernel\u0027s security authority; this is ordinary local privilege escalation or crash with no VM or IOMMU boundary crossed.\nC:H - memcpy(buf-\u003ePathBuffer, path+poff, plen) reads 65534 bytes past the small UTF-16 path allocation, and the matching heap overflow can be groomed into read primitives over adjacent slab objects.\nI:H - Out-of-bounds heap writes: sym[5]/path[5] past their allocations, and a 65534-byte memcpy into a 24-byte kzalloc buffer after u16 plen and len wrap, corrupting adjacent slab objects in a way usable for control-flow hijack.\nA:H - The 64 KiB overflow of the kmalloc buffer corrupts large amounts of slab memory and reliably oopses or panics the kernel, and any user with write access to the share can repeat it."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-10-19T09:17:28.900Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/6913ff607c2bc8694193e1fcc40bf16d75f35f16"
        },
        {
          "url": "https://git.kernel.org/stable/c/23c240d9509e15f72e4112fc95f0160ab32ec430"
        }
      ],
      "title": "smb: client: validate absolute native symlink targets before NT fixups",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-98318",
    "datePublished": "2026-10-06T08:46:13.140Z",
    "dateReserved": "2026-09-25T10:25:14.340Z",
    "dateUpdated": "2026-10-19T09:17:28.900Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…