KernelScan.io

HIGH Introduced in 6.2

smb SetAcl Overflow

CVE-2026-99110

CVSS 7.0 / 10.0 NVD

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

KernelScan AI7.8HIGH

01

In the Linux kernel, the following vulnerability has been resolved: smb: client: fix heap overflow in cifs_do_set_acl() cifs_set_acl() validates ACL size using posix_acl_xattr_size(): 4 + (count * 8) // 4-byte header + 8 bytes per ACE cifs_do_set_acl() then calls posix_acl_to_cifs() to write the CIFS wire format into the same buffer: 6 + (count * 10) // 6-byte header + 10 bytes per ACE An ACL that passes the xattr-based check in cifs_set_acl() can overflow the heap when posix_acl_to_cifs() writes the larger CIFS format. Validate the CIFS format size against the remaining buffer space and USHRT_MAX before converting--data_count is __u16, so sizes above USHRT_MAX truncate the on-wire packet length, causing the server to apply a partial ACL. Replace MaxDataCount = 1000 with min(CIFSMaxBufSize, USHRT_MAX).

02

Engine v0.9.0

Risk summary

A local attacker with access to a mounted CIFS/SMB share can trigger a heap buffer overflow by setting a POSIX ACL with many access control entries. The kernel validates the ACL size using the smaller xattr format but writes the larger CIFS wire format into the same buffer, corrupting adjacent heap memory. This can lead to privilege escalation, information disclosure, or kernel crash.

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

Vulnerability analysis

The SMB client's ACL handling validates the size of a POSIX ACL using the xattr encoding (4-byte header plus 8 bytes per ACE) but later converts it to the CIFS wire format (6-byte header plus 10 bytes per ACE) in the same buffer. An ACL that passes the initial size check can exceed the buffer when written in the larger CIFS format, causing a heap overflow. The fix adds a pre-conversion check that the CIFS-format size fits within the remaining buffer space and does not exceed USHRT_MAX (the on-wire length field limit), rejecting oversized ACLs with -E2BIG. Any local user who can mount a CIFS share and set ACLs on files — including unprivileged users in containers with appropriate capabilities or file ownership — can trigger this vulnerability.

03

BranchIntroducedFixed inPatch commit
6.126.26.12.1159312a0021560
6.186.26.18.59d96f3365ce61
6.66.26.6.16168652afb9b9a
7.26.27.2.13596b4062e6c7
mainline6.27.31dac61e2c29d
cip/6.126.26.12.117-cip359312a0021560

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.117-cip35