CVE-2026-80912 PUBLISHED

selinux: reject an unclaimed class value in security_get_classes()

Assigner: Linux
Reserved: 26.08.2026 Published: 04.09.2026 Updated: 04.09.2026

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 55fcf09b3fe4325c9395ebbb0322a547a157ebc7 to e0285bb152211c00900136b66d4b420c14a59094 (excl.)
  • affected from 55fcf09b3fe4325c9395ebbb0322a547a157ebc7 to 099869e9343a5f8c22b58497f074b34f63cbf856 (excl.)
  • affected from 55fcf09b3fe4325c9395ebbb0322a547a157ebc7 to 841aea4d5a25e16273d04cd07a74142b4687e03b (excl.)
  • affected from 55fcf09b3fe4325c9395ebbb0322a547a157ebc7 to d8a10899ea3c84b80de72ca8ee9039e9a5156c9a (excl.)
  • affected from 55fcf09b3fe4325c9395ebbb0322a547a157ebc7 to 22b05fec62c0fe9864cfceb52f7d0f3a34d9b1dd (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 2.6.23 is affected
  • unaffected from 0 to 2.6.23 (excl.)
  • unaffected from 6.6.153 to 6.6.* (incl.)
  • unaffected from 6.12.105 to 6.12.* (incl.)
  • unaffected from 6.18.46 to 6.18.* (incl.)
  • unaffected from 7.1.10 to 7.1.* (incl.)
  • unaffected from 7.2 to * (incl.)

References