CVE-2026-98318·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 7.2.8, 7.3
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.12% — higher than 2% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2026-98318 scores 7.8 on CVSS, so a successful attack would be serious — but at 0.12%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
How to fix this CVE
Update your Linux kernel to version 7.2.8 (stable branch) or 7.3 (mainline) to patch a critical memory corruption vulnerability in SMB client symlink handling. If you run a stable distribution, install the patched kernel package provided by your vendor rather than upgrading to mainline. Users with write access to mounted SMB shares are at immediate risk of triggering out-of-bounds writes.
sudo dnf check-update kernel && sudo dnf update kernelDefensia detects this vulnerability
How to check if you are affected
- Run 'uname -r' to display your current kernel version and compare against the fixed versions (7.2.8 or 7.3+)
- Check if SMB client support is enabled: grep -i 'CONFIG_CIFS' /boot/config-$(uname -r) should return 'CONFIG_CIFS=y' or 'm' if vulnerable
- Review kernel logs for memory access violations: dmesg | grep -i 'out of bounds\|buffer overflow\|segfault' around the time SMB shares were mounted
- After patching, reboot and verify the new kernel version with 'uname -r' matches 7.2.8 or later in your branch
FAQ
What is CVE-2026-98318?
This is a memory corruption vulnerability in the Linux kernel's SMB client code that fails to validate symlink targets before performing fixed-offset memory operations, leading to out-of-bounds writes when processing absolute native symlink paths without NT drive prefixes.
Is CVE-2026-98318 being actively exploited?
No, this vulnerability is not currently listed on the CISA KEV catalog and no public exploits are available. However, it is easily triggerable by any user with write access to a mounted SMB share using default settings.
What versions of Kernel are affected by CVE-2026-98318?
Versions prior to 7.2.8 in the stable branch and prior to 7.3 in the mainline are vulnerable. The exact starting affected version is unknown but all unpatched stable and mainline kernels before these releases should be treated as vulnerable.
How do I check if my server is vulnerable to CVE-2026-98318?
Run 'uname -r' to get your kernel version. If it is older than 7.2.8 (stable) or 7.3 (mainline) and you have CONFIG_CIFS enabled (check with 'grep CONFIG_CIFS /boot/config-$(uname -r)'), your system is vulnerable.
Does Defensia detect CVE-2026-98318?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2026-98318 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-98318. Free for 1 server.
Get started free