CVE-2026-80912: selinux: reject an unclaimed class value in security_get_classes()

Published Sep 4, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

selinux: reject an unclaimed class value in securitygetclasses()

securitygetclasses() sizes an array by pclasses.nprim and fills it at value - 1, so a class value the policy never defines leaves a NULL. selmakeclasses() passes every entry to selmakedir(), reaching the same dallocname() dereference as the permission array. The class symbol table is allowed to be sparse (policydbclassisvalid() 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.

Affected Software

1 affected component
Linux Linux kernel

Event History

Sep 4, 2026
CVE Published
via MITRE·05:19 PM
Data Sourced
via MITRE·05:19 PM
Description

Frequently Asked Questions

1

Which systems are affected in practice?

Systems loading an SELinux policy with a declared but unclaimed class value are affected. Conforming policies that define every class they declare are unaffected.

2

What is required to trigger the issue?

The policy must contain a sparse class symbol table such that a class value within the declared range is not defined. This leaves a NULL entry in the class array returned by security_get_classes(), which can later be dereferenced while creating SELinux class directories.

3

How can I determine whether my policy is exposed?

Review the loaded or deployed SELinux policy for declared class values that are missing from the policy's class definitions. A policy that defines every declared class is not affected.

4

What can be done if an updated kernel cannot be deployed immediately?

Use only conforming SELinux policies that define every class they declare, and avoid loading policies with sparse or unclaimed class values.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203