CVE-2026-99323: ksmbd: fix invalid pointer dereference when get_inode_acl() fails
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix invalid pointer dereference when getinodeacl() fails
When getinodeacl() fails, it returns an ERRPTR(), but ksmbdaclsfattr() stored that pointer in smbfattr without checking for errors. Later callers then passed the error pointer to security descriptor helpers or posixaclrelease(), resulting in an invalid pointer dereference.
This was reproduced on an XFS-backed share when xfsgetacl() returned ERRPTR(-ENOMEM). Querying the SMB ACL from a CIFS client triggered the crash:
BUG: unable to handle page fault for address: fffffffffffffff8 RIP: smbaclsecdescscratchlen+0x58/0x90 [ksmbd] Call Trace: smb2queryinfo+0x40d/0x17c0 [ksmbd] handleksmbdwork+0x1ca/0x770 [ksmbd]
Fix this by checking the return values from getinodeacl() in ksmbdaclsfattr(). Treat -EOPNOTSUPP as indicating that no ACL is available, and propagate all other errors to the callers. Update smb2open() and smb2getinfosec() to handle these errors.
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.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.61 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.2