In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix reference count leak in smbcheckperm_dacl()
The issue happens in a specific path in smbcheckpermdacl(). When "id" and "uid" have the same value, the function simply jumps out of the loop without decrementing the reference count of the object "posixacls", which is increased by get_acl() earlier. This may result in memory leaks.
Fix it by decreasing the reference count of "posixacls" before jumping to label "checkaccess_bits".