{"api_version":"1","generated_at":"2026-10-12T02:49:46+00:00","cve":"CVE-2026-98318","urls":{"html":"https://cve.report/CVE-2026-98318","api":"https://cve.report/api/cve/CVE-2026-98318.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-98318","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-98318"},"summary":{"title":"smb: client: validate absolute native symlink targets before NT fixups","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-10-06 09:18:23","updated_at":"2026-10-07 07:17:08"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"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"}}],"references":[{"url":"https://git.kernel.org/stable/c/23c240d9509e15f72e4112fc95f0160ab32ec430","name":"https://git.kernel.org/stable/c/23c240d9509e15f72e4112fc95f0160ab32ec430","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/6913ff607c2bc8694193e1fcc40bf16d75f35f16","name":"https://git.kernel.org/stable/c/6913ff607c2bc8694193e1fcc40bf16d75f35f16","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-98318","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98318","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3363da82e02f1bddc54faa92ea430c6532e2cd2e 6913ff607c2bc8694193e1fcc40bf16d75f35f16 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3363da82e02f1bddc54faa92ea430c6532e2cd2e 23c240d9509e15f72e4112fc95f0160ab32ec430 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b6ea7b6c6be65149ab6b8e37a9dd1671f76add1b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.15.6 6.16 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.16","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.16 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.2.8 7.2.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3-rc4 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"98318","cve":"CVE-2026-98318","epss":"0.001620000","percentile":"0.048460000","score_date":"2026-10-06","updated_at":"2026-10-07 00:14:55"},"legacy_qids":[]},"source_records":{"cve_program":{"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-rc4","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-rc4","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 -> create_reparse_symlink -> 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's 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's security authority; this is ordinary local privilege escalation or crash with no VM or IOMMU boundary crossed.\nC:H - memcpy(buf->PathBuffer, 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-07T06:50:00.705Z","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-07T06:50:00.705Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-10-06 09:18:23","lastModifiedDate":"2026-10-07 07:17:08","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"98318","Ordinal":"1","Title":"smb: client: validate absolute native symlink targets before NT ","CVE":"CVE-2026-98318","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"98318","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"smb: client: validate absolute native symlink targets before NT "}]}}}