CyberRota Analysis
AI-GeneratedThe vulnerability affects the Linux kernel's ksmbd component, specifically in the handling of Access Control Entries (ACEs) during the validation of Security Identifiers (SIDs). An attacker could exploit this flaw to manipulate ACE sizes, potentially leading to unauthorized access or data corruption during POSIX ACL deduplication processes. Organizations using Linux systems, particularly those leveraging ksmbd for file sharing, should prioritize addressing this vulnerability to mitigate risks associated with improper access controls.
Original NVD Description
In the Linux kernel, the following vulnerability has been resolved: ksmbd: validate ACE size against SID sub-authorities set_ntacl_dacl() validates sid.num_subauth before copying an ACE, but does not verify that the declared ACE size contains all sub-authorities described by that field. An undersized ACE can therefore be copied and later make the POSIX ACL deduplication walk inspect data beyond the copied ACE boundary. The existing initial bound check is also too small. It only ensures that the ACE size field is accessible before set_ntacl_dacl() reads sid.num_subauth farther into the input buffer. Require enough input for the fixed SID header before accessing num_subauth, reject ACEs smaller than that header, and skip ACEs whose declared size cannot contain the complete SID. This makes the validation consistent with the other ACE walk paths.