CVE-2026-80755

selinux: reject a permission value exceeding the class permission count

Published Sep 3, 2026 CVSS n/a EPSS < 1% KEV · Not listed
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]

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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

Source ID Title
Debian DLA Debian DLA DLA-4817-1 linux-6.12 security update
Debian DLA Debian DLA DLA-4906-1 linux security update
Debian DSA Debian DSA DSA-6528-1 linux security update
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9022-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9023-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9024-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9025-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9026-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9039-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-9040-1 Linux kernel (Low Latency NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9066-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-9091-1 Linux kernel (NVIDIA Tegra) vulnerabilities
Ubuntu USN Ubuntu USN USN-9160-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9183-1 Linux kernel (FIPS) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-122
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
Weaknesses
  • CWE-122

    Heap-based Buffer Overflow

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 30, 2026, 12:31 PM
Reserved
Aug 26, 2026, 2:34 PM
Status
Received
Published
Sep 3, 2026, 1:06 PM
Modified
Oct 30, 2026, 1:20 PM