Home / Selinux Project / Selinux / CVE-2021-36087
CVE-2021-36087: is it exploited, and which versions of Selinux Project Selinux are affected and fixed?
CVE-2021-36087 is an out-of-bounds read vulnerability in Selinux Project Selinux. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 11:38 UTC). Affected: selinux 3.2 and fedora 35 (NVD). No fixed version is listed in the sources yet; check the vendor advisory. Severity: Low (3.3, CVSS 3.1, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:38 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 07:57 UTC.
What is CVE-2021-36087?
The CIL compiler in SELinux 3.2 has a heap-based buffer over-read in ebitmap_match_any (called indirectly from cil_check_neverallow). This occurs because there is sometimes a lack of checks for invalid statements in an optional block.
From the CVE record by mitre, last updated October 14, 2026, 11:49 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| selinux project | selinux | 3.2 | operating system |
| fedoraproject | fedora | 35 | operating system |
NVD analysis (status Modified), last modified October 14, 2026, 12:17 UTC.
How severe is CVE-2021-36087?
| Score | Version | Vector | Source |
|---|---|---|---|
| Low 3.3 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L | NVD |
| Low 2.1 | CVSS 2.0 | AV:L/AC:L/Au:N/C:N/I:N/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-36087 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 0.47% probability of exploitation activity in the next 30 days, percentile 42.7 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-125 Out-of-bounds Read
Where are the vendor advisories and references?
- https://github.com/google/oss-fuzz-vulns/blob/main/vulns/selinux/OSV-2021-585.yaml x_refsource_MISC
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32675 x_refsource_MISC
- https://lore.kernel.org/selinux/CAEN2sdqJKHvDzPnxS-J8grU8fSf32DDtx=kyh84OsCq_Vm+yaQ%40mail.gmail.com/T/ x_refsource_MISC
- https://github.com/SELinuxProject/selinux/commit/340f0eb7f3673e8aacaf0a96cbfcd4d12a405521 x_refsource_MISC
- FEDORA-2021-67efe88c29 vendor-advisory, x_refsource_FEDORA
- https://security.netapp.com/advisory/ntap-20250207-0004/
- https://lists.debian.org/debian-lts-announce/2024/10/msg00021.html
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://cert-portal.siemens.com/productcert/html/ssa-202008.html
When was it published, and where is the official record?
- Reserved
- July 1, 2021
- Published
- July 1, 2021, 02:49 UTC
- CVE record updated
- October 14, 2026, 11:49 UTC by mitre
- NVD
- Modified, last modified October 14, 2026, 12:17 UTC
- Last checked
- CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 07:57 UTC; KEV December 3, 2026, 11:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Selinux?
- Jul 1, 2021CVE-2021-36086 Debian Linux: use after free
- Jul 1, 2021CVE-2021-36085 Selinux Project Selinux: use after free
- Jul 1, 2021CVE-2021-36084 Selinux Project Selinux: use after free
- Jul 21, 2017CVE-2015-3170 Selinux Project Selinux: n/a
- Jan 19, 2017CVE-2016-7545 Selinux Project Selinux: improper access control
Questions about CVE-2021-36087
Is CVE-2021-36087 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:38 UTC. FIRST's EPSS gives it a 0.47% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Selinux Project Selinux are affected by CVE-2021-36087?
selinux 3.2 and fedora 35, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2021-36087?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2021-36087?
Low (3.3, CVSS 3.1, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2021-36087?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.