IT SBIT Services
Schneeberger
DEEN
CVE tracker

Linux kernel SMB client: Use-after-free in compound PDU handling

CVE-2026-98171High 8.8

← All vulnerabilities

Summary

The Linux kernel SMB client mishandles encrypted compound responses from SMB servers, which leads to a use-after-free and insufficient bounds checks on NextCommand. A Linux host that connects to a malicious, compromised or man-in-the-middle SMB server could crash or corrupt kernel memory. The CVSS vector rates the impact on confidentiality, integrity and availability as high and requires user interaction, such as mounting or accessing a share.

Affected

  • Linux kernel from commit b24df3e30cbf48255db866720fb71f14bf9d2f39 onward; the CNA lists affected from 4.19 until the fixed stable builds
  • Azure Linux: affected before 6.6.158.1-1 (per tracker entries, not yet confirmed by Microsoft)

Fixed in

  • Linux stable branches 5.10.273, 5.15.224, 6.1.189, 6.6.158, 6.12.112, 6.18.54 and 7.2.8 (per CNA and OSV)
  • Azure Linux 6.6.158.1-1 (per tracker entries, to be confirmed with Microsoft)
  • Distribution kernels: check the vendor tracker, as the fix status varies

Workaround

  • Unknown. No vendor-documented workaround found.
  • Interim measure: avoid mounting SMB shares from servers you do not control and avoid SMB traffic over untrusted networks until patched.

Exploitation

  • No evidence of exploitation in the wild found.
  • No public proof of concept found.
  • Not listed in the CISA KEV catalog at the time of research.

Our recommendation

  • Identify Linux hosts that use CIFS/SMB mounts, including workstations, NAS and partner or hosted storage.
  • Confirm the kernel build against your distribution's security tracker.
  • Apply the kernel update in your normal patch window, starting with systems that mount external shares.
  • Restrict SMB access to trusted servers until the update is installed.

Public exploits

PoC-in-GitHub, Metasploit and Exploit-DB list nothing for this CVE.

Research sources

Researched and written up in English and German by an AI (Claude by Anthropic) based on NVD, CISA, EPSS and the sources listed. The vendor information is authoritative. Researched on 31 Oct 2026, 22:24.

Original description (NVD)

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.

NVD references (8)

Sources

The tracker combines official, freely usable data sources – updated continuously:

This product uses data from the NVD API but is not endorsed or certified by the NVD. EPSS data © FIRST.org.

Affected? We can help.

We check whether your systems are affected, install updates and close the gap – continuously with the System Health Checker if you wish.