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

selinux: reject a permission value exceeding the class permission count

perm_read() bounds a permission value by SEL_VEC_MAX but never by the
nprim of the owning class or common, which is taken verbatim from the
policy image. security_get_permissions() then writes perms[value - 1]
into an nprim-sized kcalloc() array, so a class declaring fewer
permissions than its largest permission value drives an out-of-bounds
heap write. The top-level symbol tables are validated this way; the
nested per-class permission table is not.

Reject a permission whose value exceeds nprim, which is already set when
perm_read() runs. Well-formed policies are unaffected.

[PM: tweak comment for line length]
Published: 2026-09-03
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel contained an out‑of‑bounds heap write in its SELinux permission handling. When a policy declares a permission value that exceeds the number of permissions defined for that class, the code still bounds the value by the maximum vector size but not by the actual class permission count. As a result, writing to the permissions array overruns the allocated buffer. This corruption can be exploited to achieve arbitrary code execution or privilege escalation at the kernel level, should an attacker be able to introduce a malicious policy entry.

Affected Systems

All Linux distributions that ship the vulnerable kernel and use SELinux policy files. No specific kernel version ranges are listed in the data, so every current installation that accepts custom SELinux policies is potentially affected.

Risk and Exploitability

The vulnerability is not listed in CISA’s KEV catalog and no EPSS score is available, but the impact of a heap overflow in kernel space is severe. Attackers would need the ability to create or modify SELinux policy files, which is typically privileged. If such access is granted, the buffer overflow can be triggered without additional conditions. The absence of a public exploit does not reduce the risk because the flaw is straightforward to implement once the privilege condition is met.

Generated by OpenCVE AI on September 3, 2026 at 12:53 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that contains the official kernel patch that rejects permission values exceeding the class permission count.
  • Restrict which users or processes can create or modify SELinux policy files, limiting the attack surface for local policy manipulation.
  • Verify that the kernel’s SELinux policy engine rejects permissions outside the declared range by reviewing audit logs for policy load failures or by using SELinux policy sanity‑check tools.

Generated by OpenCVE AI on September 3, 2026 at 12:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 03 Sep 2026 13:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-122

Thu, 03 Sep 2026 07:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: selinux: reject a permission value exceeding the class permission count perm_read() bounds a permission value by SEL_VEC_MAX but never by the nprim of the owning class or common, which is taken verbatim from the policy image. security_get_permissions() then writes perms[value - 1] into an nprim-sized kcalloc() array, so a class declaring fewer permissions than its largest permission value drives an out-of-bounds heap write. The top-level symbol tables are validated this way; the nested per-class permission table is not. Reject a permission whose value exceeds nprim, which is already set when perm_read() runs. Well-formed policies are unaffected. [PM: tweak comment for line length]
Title selinux: reject a permission value exceeding the class permission count
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-09-03T08:26:33.797Z

Reserved: 2026-08-26T14:34:25.790Z

Link: CVE-2026-80755

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-03T13:06:15.247

Modified: 2026-09-03T13:06:15.247

Link: CVE-2026-80755

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-03T13:00:04Z

Weaknesses
  • CWE-122

    Heap-based Buffer Overflow