Skip to contentSkip to conversation

CVE-2026-99110: smb: client: fix heap overflow in cifs_do_set_acl()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 28

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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).

The Linux kernel CVE team has assigned CVE-2026-99110 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.2 with commit dc1af4c4b4721abfa07b351063825acc7e69cc66 and fixed in 6.18.59 with commit d96f3365ce61c5f39602955af43c8174548dee98
	Issue introduced in 6.2 with commit dc1af4c4b4721abfa07b351063825acc7e69cc66 and fixed in 7.2.13 with commit 596b4062e6c75bdd85a7f2b7f2087a872dc420ac
	Issue introduced in 6.2 with commit dc1af4c4b4721abfa07b351063825acc7e69cc66 and fixed in 7.3 with commit 1dac61e2c29d1a71784604b48cf3b1234a65ec29

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-99110

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
fs/smb/client/cifssmb.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/d96f3365ce61c5f39602955af43c8174548dee98
	https://git.kernel.org/stable/c/596b4062e6c75bdd85a7f2b7f2087a872dc420ac
	https://git.kernel.org/stable/c/1dac61e2c29d1a71784604b48cf3b1234a65ec29