CVE-2026-98318

smb: client: validate absolute native symlink targets before NT fixups

Published Oct 6, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The Linux kernel contains a flaw in the SMB client where a symlink with an absolute target can bypass normal NT drive prefix checks. When the symlinkroot is unset, the target is copied without conversion, and subsequent code assumes an NT prefix is present. This mismatch causes out‑of‑bounds writes into the internal buffer for the symlink path, eventually leading to a large memcpy that overflows a 24‑byte buffer. An attacker who can write to a shared folder can trigger the overflow and potentially gain arbitrary code execution in kernel space.

Affected Systems

Linux kernel, any distribution version that incorporates the vulnerable SMB client code before the patch. The specific product is the core Linux kernel; affected Linux distributions are implied by the inclusion of the kernel code but no particular vendor or version was explicitly listed.

Risk and Exploitability

The vulnerability can be exploited by any user with write privileges on a SMB share that the client mounts. The CVSS score of 7.8 marks this as a high‑severity issue. They can craft a symlink with an absolute target; the client copies the target without ensuring an NT drive prefix, causing subsequent code to miscalculate offsets and underflow the length calculation, which in turn leads to a 24‑byte buffer overflow via a large memcpy. An attacker who succeeds in triggering this overflow could achieve code execution in kernel space and thus root privileges. The EPSS score of <1% indicates a very low probability that the flaw is currently being exploited, and the vulnerability is not yet listed in the CISA KEV catalog, suggesting no publicly known widespread exploitation. Nevertheless, the kernel‑level buffer overflow warrants immediate mitigation through patching.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel that contains the SMB client symlink validation patch, ensuring the system runs a version acknowledged by vendor documentation.
  • If an immediate kernel upgrade is not feasible, isolate vulnerable hosts from the network or migrate SMB file shares to hosts that run a patched kernel.
  • Reduce the attack surface by removing write privileges for users on the SMB shares that the vulnerable client mounts, or configure the SMB client to enforce symlinkroot checks if the option exists.

Generated by OpenCVE AI on October 11, 2026 at 04:11 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9160-1 Linux kernel (Azure) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-122
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Weaknesses CWE-122
Type Values Removed Values Added
Weaknesses CWE-119
Type Values Removed Values Added
Weaknesses CWE-119
Type Values Removed Values Added
Description 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.
Title smb: client: validate absolute native symlink targets before NT fixups
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 19, 2026, 9:17 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Oct 6, 2026, 9:18 AM
Modified
Oct 19, 2026, 10:18 AM
Severity
Important
Public date
Oct 6, 2026, 12:00 AM