CyberRota Analysis
AI-GeneratedThe vulnerability in the Linux kernel affects the security_get_classes() function, which improperly handles unclaimed class values, potentially leading to NULL dereferences during security checks. This flaw could allow attackers to exploit the kernel's security mechanisms if they can manipulate class values in a way that bypasses defined policies. Organizations using Linux should prioritize this issue, particularly those relying on custom SELinux policies, to ensure their systems remain secure against potential exploitation.
Original NVD Description
In the Linux kernel, the following vulnerability has been resolved: selinux: reject an unclaimed class value in security_get_classes() security_get_classes() sizes an array by p_classes.nprim and fills it at value - 1, so a class value the policy never defines leaves a NULL. sel_make_classes() passes every entry to sel_make_dir(), reaching the same d_alloc_name() dereference as the permission array. The class symbol table is allowed to be sparse (policydb_class_isvalid() exists to absorb that), but this getter builds its own array straight from the hash table and has no such predicate. Fail the lookup when a value went unclaimed instead of handing out the NULL. Conforming policies define every class they declare and are unaffected.