UBUNTU-CVE-2026-97559: Low severity ubuntu/linux-hwe-edge vulnerability
In the Linux kernel, the following vulnerability has been resolved: smb: client: fail DACL rewrite when the new DACL exceeds 64K replacesidsandcopyaces() and setchmoddacl() accumulate the size of the DACL they build in a u16. That accumulator can wrap. validatedacl() caps numaces at (daclsize - sizeof(struct smbacl)) / 20, i.e. 3276 for a maximally sized DACL, while each rewritten ACE can grow to sizeof(struct smbace) (76 bytes) once its SID is replaced with one carrying SIDMAXSUBAUTHORITIES sub-authorities. The worst case is therefore sizeof(struct smbacl) + 3276 76 = 248984 bytes, far beyond what a u16 can hold. A wraparound is reached with 863 ACEs. After the wraparound, ndaclptr->size becomes meaningless and the offset will point anywhere in the ACE array. As a result, we will see corruption of the DACL, which then gets sent to the server. This is not an out-of-bounds write as the allocation now covers the worst-case expansion, so writes will always go into the buffer. Adjust the code to use a u32 internally and return -EOVERFLOW in the overflow case. The operation must be refused, because a DACL can only hold 2^16-1 bytes on the wire and larger DACLs cannot be represented. setchmoddacl() carries the same pattern and is fixed the same way. It only wraps once the source DACL comes within roughly 380 bytes of the 64K ceiling, but the failure mode is identical.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/linux-hwe-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42~24.04.1 - Upgrade
Upgrade
ubuntu/linux-riscv-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1~24.04.1 - Upgrade
Upgrade
ubuntu/linuxto a version that resolves this vulnerability.Fixed in 7.0.0-42.42 - Upgrade
Upgrade
ubuntu/linux-awsto a version that resolves this vulnerability.Fixed in 7.0.0-1016.17 - Upgrade
Upgrade
ubuntu/linux-gcpto a version that resolves this vulnerability.Fixed in 7.0.0-1016.18 - Upgrade
Upgrade
ubuntu/linux-ibmto a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oem-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oracleto a version that resolves this vulnerability.Fixed in 7.0.0-1015.16 - Upgrade
Upgrade
ubuntu/linux-riscvto a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1 - Compensating control
Update replace_sids_and_copy_aces() and set_chmod_dacl() to accumulate the constructed DACL size in a u32, refuse operations whose DACL exceeds 2^16-1 bytes, and return -EOVERFLOW when the overflow limit is reached.
Event History
Frequently Asked Questions
Who is exposed to this issue?
Systems using the affected Ubuntu Linux kernel packages are exposed when the SMB client rewrites a DACL, such as during operations that modify DACLs. Exploitation requires local, low-privileged access; no user interaction is required.
What conditions are needed to trigger the DACL corruption?
The DACL must contain enough ACEs whose SIDs are rewritten to larger SIDs for the internal 16-bit size accumulator to wrap. The described wraparound is reached with 863 ACEs, and the resulting corrupted DACL is sent to the SMB server.
Is this an out-of-bounds memory write?
No. The allocation covers the worst-case ACE expansion, so writes remain within the allocated buffer. The impact described is corruption of the generated DACL due to an invalid wrapped size and offset.
What does the fix change?
The fix uses a 32-bit internal size accumulator and rejects overflow with -EOVERFLOW. It refuses DACL rewrite operations that would exceed the maximum on-wire DACL size of 2^16-1 bytes.