CVE-2026-99110: smb: client: fix heap overflow in cifs_do_set_acl()
In the Linux kernel, the following vulnerability has been resolved:
smb: client: fix heap overflow in cifsdosetacl()
cifssetacl() validates ACL size using posixaclxattrsize():
4 + (count 8) // 4-byte header + 8 bytes per ACE
cifsdosetacl() then calls posixacltocifs() 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 cifssetacl() can overflow the heap when posixacltocifs() writes the larger CIFS format.
Validate the CIFS format size against the remaining buffer space and USHRTMAX before converting--datacount is u16, so sizes above USHRTMAX truncate the on-wire packet length, causing the server to apply a partial ACL. Replace MaxDataCount = 1000 with min(CIFSMaxBufSize, USHRTMAX).
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.161 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.115 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.59 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.2.13 - Upgrade
Upgrade
azurelinux/kernelto a version that resolves this vulnerability.Fixed in 6.6.161.1-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.115-2 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.2.13-1 - Upgrade
Upgrade
debian/linux-6.12to a version that resolves this vulnerability.Fixed in 6.12.115-2~deb12u1 - Upgrade
Upgrade
ubuntu/linux-gcp-6.8to a version that resolves this vulnerability.Fixed in 6.8.0-1074.82~22.04.1 - Upgrade
Upgrade
ubuntu/linux-ibm-6.8to a version that resolves this vulnerability.Fixed in 6.8.0-1070.71~22.04.1 - Upgrade
Upgrade
ubuntu/linux-oracle-6.8to a version that resolves this vulnerability.Fixed in 6.8.0-1068.72~22.04.1 - Upgrade
Upgrade
ubuntu/linuxto a version that resolves this vulnerability.Fixed in 6.8.0-151.151 - Upgrade
Upgrade
ubuntu/linux-awsto a version that resolves this vulnerability.Fixed in 6.8.0-1070.76 - Upgrade
Upgrade
ubuntu/linux-gcpto a version that resolves this vulnerability.Fixed in 6.8.0-1074.82 - Upgrade
Upgrade
ubuntu/linux-gcp-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1018.20~24.04.1 - Upgrade
Upgrade
ubuntu/linux-gketo a version that resolves this vulnerability.Fixed in 6.8.0-1069.78 - Upgrade
Upgrade
ubuntu/linux-gkeopto a version that resolves this vulnerability.Fixed in 6.8.0-1054.58 - Upgrade
Upgrade
ubuntu/linux-ibmto a version that resolves this vulnerability.Fixed in 6.8.0-1070.71 - Upgrade
Upgrade
ubuntu/linux-vmwareto a version that resolves this vulnerability.Fixed in 6.8.0-1011.11 - Upgrade
Upgrade
ubuntu/linux-aws-fipsto a version that resolves this vulnerability.Fixed in 6.8.0-1070.76+fips1 - Upgrade
Upgrade
ubuntu/linuxto a version that resolves this vulnerability.Fixed in 7.0.0-44.44 - Upgrade
Upgrade
ubuntu/linux-awsto a version that resolves this vulnerability.Fixed in 7.0.0-1018.19 - Upgrade
Upgrade
ubuntu/linux-gcpto a version that resolves this vulnerability.Fixed in 7.0.0-1018.20 - Upgrade
Upgrade
ubuntu/linux-gketo a version that resolves this vulnerability.Fixed in 7.0.0-1011.12 - Upgrade
Upgrade
ubuntu/linux-ibmto a version that resolves this vulnerability.Fixed in 7.0.0-1019.19 - Upgrade
Upgrade
ubuntu/linux-oem-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1019.19 - Upgrade
Upgrade
ubuntu/linux-vmwareto a version that resolves this vulnerability.Fixed in 7.0.0-1007.7 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.115-2Fixed in 7.2.13-1 - Upgrade
Upgrade
azurelinux/kernelto a version that resolves this vulnerability.Fixed in 0:6.18.62-1.1.azl4 - Configuration
Replace MaxDataCount = 1000 with min(CIFSMaxBufSize, USHRT_MAX).
CIFS client MaxDataCount = min(CIFSMaxBufSize, USHRT_MAX) - Compensating control
In cifs_do_set_acl(), validate the CIFS-format ACL size against the remaining buffer space and USHRT_MAX before converting it.
Event History
Frequently Asked Questions
Which systems are in scope?
Systems using the Linux kernel SMB client and setting POSIX ACLs on CIFS shares are in scope. The issue is reached through the ACL-setting path that converts a POSIX ACL into the CIFS wire format.
What input condition triggers the unsafe write?
A POSIX ACL can pass the earlier xattr-size validation because that format accounts for 8 bytes per access-control entry, while the later CIFS conversion writes 10 bytes per entry into the same buffer. An ACL large enough to exceed the available buffer during that conversion can cause a heap overflow.
Is there a separate ACL integrity concern for very large ACLs?
Yes. The on-wire data_count field is a 16-bit value, so CIFS ACL sizes above USHRT_MAX can truncate the packet length and cause the server to apply only a partial ACL.
What does the resolved fix enforce?
The fix validates the required CIFS-format size against the remaining buffer space and USHRT_MAX before conversion. It also limits MaxDataCount to the smaller of CIFSMaxBufSize and USHRT_MAX.