KernelScan.io

HIGH Introduced in 6.8

smb ParsePosixSids OOB Read

CVE-2026-98405

CVSS 8.1 / 10.0 NVD

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H

KernelScan AI9.1CRITICAL

01

In the Linux kernel, the following vulnerability has been resolved: smb: client: fix missing iov bounds check in parse_posix_sids() In parse_posix_sids(), sidsbuf_end is calculated using the server-supplied out_len without being validated against the actual length of the received iov (iov_len). If a server provides an inflated out_len, sidsbuf_end will point past the end of the iov. This defeats the bounds guards in posix_info_sid_size(), allowing out-of-bounds reads into adjacent kernel memory. Fix this by rejecting responses where the calculated sidsbuf_end would exceed the received iov boundaries or cause pointer wraparound.

02

Engine v0.9.0

Risk summary

A malicious or compromised SMB server can send a crafted response with an inflated length field, causing the Linux SMB client kernel module to read beyond the received network buffer into adjacent kernel memory. This allows remote information disclosure of kernel pointers and data, potentially defeating KASLR and enabling further exploitation. Any system that mounts an SMB share (via CIFS/SMB client) is exposed when connecting to an untrusted server.

Affectedfs/smb/client/smb2inode.c (smb client)

Vulnerability analysis

The SMB client's parse_posix_sids() function calculates a buffer end pointer using a server-supplied length value (out_len) without verifying it against the actual received data size. A malicious server can provide an oversized out_len, making the calculated end pointer extend past the valid I/O vector. Subsequent parsing routines then read out of bounds into adjacent kernel memory, leaking sensitive data. The fix adds two validation checks: one for pointer integer wraparound and another ensuring the calculated end does not exceed the received buffer boundaries, rejecting malformed responses with -EINVAL. The vulnerability is reachable over the network whenever the kernel SMB client connects to a server — no local privileges or user interaction are required on the client side.

03

BranchIntroducedFixed inPatch commit
6.126.86.12.112b862996e5105
6.186.86.18.542f8ed71aaaba
6.66.6.326.6.158d91b9a3b2b38
7.26.87.2.8eac6917a4289
mainline6.87.3b09d092eb24a
cip/6.126.86.12.112-cip33b862996e5105

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.112-cip33