CVE-2026-98454·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: smb: client: fix create context out-of-bounds reads smb2_parse_contexts() validates the complete create-context area but does not limit each record to its Next field before dispatching it. A malformed chain can therefore expose bytes beyond the current context to a handler. The QFid handler also used a full response-structure cast although it only reads DiskFileId. The SMB2/SMB3 lease parsers made the same layout assumption: they read LeaseState and LeaseFlags at canonical offsets rather than at DataOffset. A valid non-canonical DataOffset could therefore yield unrelated in-bounds data, while a short DataLength was still accepted. Limit each context to its Next value, reject offsets before the context header, and reject malformed chains. Bound the name range by the current context and do not dispatch a known handler when DataLength is zero. Read the QFid DiskFileId only when the context data covers that field. Parse the lease context from DataOffset and require DataLength to match the v1 or v2 lease_context size used by ksmbd. A size mismatch skips lease parsing without failing the open.
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.10.273, 5.15.224, 6.1.191, 6.6.158, 6.12.112, 6.18.55, 7.2.9, 7.3
- Published
How to fix this CVE
Update your Linux kernel to a patched stable release to remediate memory disclosure vulnerabilities in SMB2/SMB3 context parsing. Choose the appropriate fixed version for your kernel branch: 6.6.158, 6.12.112, 6.18.55, 7.2.9, or 7.3 (mainline). Most users should apply their distribution's kernel security update rather than manually upgrading to mainline.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check kernel version: uname -r — compare against fixed versions (6.6.158+, 6.12.112+, 6.18.55+, 7.2.9+, 7.3+)
- Verify SMB client is enabled: grep -i smb /boot/config-$(uname -r) | grep CONFIG_SMB_CLIENT
- Review kernel logs for SMB context parsing errors: sudo dmesg | grep -i 'smb.*context' or sudo journalctl -k | grep -i smb
- Confirm patch applied: sudo journalctl -b | grep 'kernel.*update' or check /var/log/apt/history.log for recent kernel updates
FAQ
What is CVE-2026-98454?
This vulnerability allows information disclosure through memory reads beyond allocated SMB context structures in the Linux kernel's SMB2/SMB3 client implementation. Malformed SMB server responses can trigger out-of-bounds reads in lease context and file ID handlers, exposing kernel memory to a remote attacker.
Is CVE-2026-98454 being actively exploited?
No — this CVE is not listed in CISA's Known Exploited Vulnerabilities catalog and no public exploit code is available. However, the vulnerability requires network interaction with a malicious SMB server, making defense-in-depth patching important.
What versions of Kernel are affected by CVE-2026-98454?
Kernel versions prior to: 6.6.158, 6.12.112, 6.18.55, 7.2.9, and mainline 7.3. All stable branches from 6.6.x through 7.2.x are affected unless running a patched release.
How do I check if my server is vulnerable to CVE-2026-98454?
Run `uname -r` to get your kernel version and compare it against the fixed versions. If your version is earlier than the corresponding fix (e.g., 6.6.157 vs 6.6.158), your system is vulnerable.
Does Defensia detect CVE-2026-98454?
Yes — Defensia's CVE advisory scanner compares installed kernel package versions against the NVD database. If you are running an affected kernel version on a monitored server, CVE-2026-98454 will appear in your dashboard with remediation steps and patch availability.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/05a7fd80024ff32b9b40ab1478bb172eeab1c386
- https://git.kernel.org/stable/c/0a8c2a6715c2a67b7abbbf874fccc9f5518146d9
- https://git.kernel.org/stable/c/28bc9a871799363afa3139e961a8e3684feb8704
- https://git.kernel.org/stable/c/34245048d6c1fa6d7be4f0dec1d14b5be02360e1
- https://git.kernel.org/stable/c/43d0ca48bb902d554b6531862248810d2ae3b8ef
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-98454. Free for 1 server.
Get started free