CVE-2026-98171·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: smb: client: fix next_buffer UAF and NextCommand bounds in compound PDUs Fix several related bounds checking and pointer lifecycle issues in receive_encrypted_standard()'s handling of compound encrypted frames: - Clear next_buffer after assigning it to server->bigbuf. A stale next_buffer pointer can lead to a use-after-free on subsequent error paths. - Update pdu_length to the decrypted plaintext size (buf_size). Using the pre-decryption length allows NextCommand to point into stale ciphertext residue. - Reject next_cmd values smaller than MID_HEADER_SIZE(server). - Fix an integer overflow in the upper bound check by verifying pdu_length - next_cmd < MID_HEADER_SIZE(server), ensuring the trailing slice is large enough for a header.
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.10.273, 5.15.224, 6.1.189, 6.6.158, 6.12.112, 6.18.54, 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.51% — higher than 42% 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-98171 scores 8.8 on CVSS, so a successful attack would be serious — but at 0.51%, 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
This vulnerability affects SMB client handling in the Linux kernel, where improper memory management in encrypted compound PDU processing can lead to use-after-free conditions and buffer overflows. Update your kernel to version 6.1.189, 6.6.158, 6.12.112, 6.18.54, 7.2.8 or later depending on your current kernel branch, or install your distribution's patched kernel package. Do not skip to mainline unless necessary—stay on your current stable branch for the security patch.
sudo dnf update kernel kernel-headers kernel-develDefensia detects this vulnerability
How to check if you are affected
- Run `uname -r` to retrieve your current kernel version and compare against the fixed versions (6.1.189+, 6.6.158+, 6.12.112+, 6.18.54+, 7.2.8+)
- Check if your system actively uses SMB client mounts by running `mount | grep cifs` or `mount | grep smb`
- Search kernel logs for SMB-related errors: `sudo journalctl -u kernel | grep -i 'smb\|cifs\|compound' | tail -50`
- After patching, reboot the system with `sudo reboot` and verify the new kernel is loaded via `uname -r`, then confirm no SMB-related memory errors appear in `dmesg | tail -20`
FAQ
What is CVE-2026-98171?
This vulnerability affects Linux kernel SMB client code handling encrypted compound protocol data units (PDUs). Improper pointer lifecycle management and bounds checking allow a use-after-free condition and potential buffer overflow when processing malformed encrypted SMB frames, potentially leading to kernel memory corruption and privilege escalation.
Is CVE-2026-98171 being actively exploited?
No, this vulnerability is not listed in CISA's Known Exploited Vulnerabilities (KEV) catalog and has no publicly available proof-of-concept exploits. However, the high CVSS score (8.8) and memory corruption nature warrant prompt patching.
What versions of Kernel are affected by CVE-2026-98171?
All kernel versions prior to the stable branch fixes are affected: 6.1.x before 6.1.189, 6.6.x before 6.6.158, 6.12.x before 6.12.112, 6.18.x before 6.18.54, 7.2.x before 7.2.8, and mainline versions before 7.3. Exact affected ranges depend on your distribution's kernel fork.
How do I check if my server is vulnerable to CVE-2026-98171?
Run `uname -r` and extract the kernel version number. Compare it against the fixed versions for your branch. If your version is lower, you are vulnerable. For example, kernel 6.1.100 is vulnerable; 6.1.189 is patched.
Does Defensia detect CVE-2026-98171?
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-98171 will appear in your dashboard with remediation steps and fixed version details for your specific kernel branch.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/05762c5bc1cfdcac36747994fde2c04387a457f1
- https://git.kernel.org/stable/c/491e33144dee872cffda207f6fcb09260728f803
- https://git.kernel.org/stable/c/72eaef1f37a3b6bec11c342736834dc3707be3e4
- https://git.kernel.org/stable/c/858d5ac22cb889266993e7670f9f0c4f4aeedd78
- https://git.kernel.org/stable/c/8749946579708ea0d339034bb7f423a67dbe89cf
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-98171. Free for 1 server.
Get started free