# 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\_chec…

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 3.3
- **CVSS:** 3.3 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.47% (percentile 33, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2021-07-01T02:49:55.000Z
- **Modified:** 2026-10-14T12:17:14.510Z

## Who should check

- Anyone running n/a (versions: see the vendor advisory)
- Anyone running Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP \>= V3.1.0, \< V3.1.5
- Anyone running Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP \>= V3.1.0, \< V3.1.5
- Anyone running Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP \>= V3.1.0, \< V3.1.5
- Anyone running Siemens RUGGEDCOM ROX MX5000 \< V2.17.0
- Anyone running Siemens RUGGEDCOM ROX MX5000RE \< V2.17.0
- Anyone running Siemens RUGGEDCOM ROX RX1400 \< V2.17.0
- Anyone running Siemens RUGGEDCOM ROX RX1500 \< V2.17.0

## Description

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.

## Affected and fixed versions

- n/a: see vendor advisory (nvd)
- Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP: \>= V3.1.0, \< V3.1.5 (nvd)
- Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP: \>= V3.1.0, \< V3.1.5 (nvd)
- Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP: \>= V3.1.0, \< V3.1.5 (nvd)
- Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP: \>= V3.1.0, \< V3.1.5 (nvd)
- Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP: \>= V3.1.0, \< V3.1.5 (nvd)
- Siemens RUGGEDCOM ROX MX5000: \< V2.17.0 (nvd)
- Siemens RUGGEDCOM ROX MX5000RE: \< V2.17.0 (nvd)
- Siemens RUGGEDCOM ROX RX1400: \< V2.17.0 (nvd)
- Siemens RUGGEDCOM ROX RX1500: \< V2.17.0 (nvd)
- Siemens RUGGEDCOM ROX RX1501: \< V2.17.0 (nvd)
- Siemens RUGGEDCOM ROX RX1510: \< V2.17.0 (nvd)
- Siemens RUGGEDCOM ROX RX1511: \< V2.17.0 (nvd)
- Siemens RUGGEDCOM ROX RX1512: \< V2.17.0 (nvd)
- Siemens RUGGEDCOM ROX RX1524: \< V2.17.0 (nvd)
- Siemens RUGGEDCOM ROX RX1536: \< V2.17.0 (nvd)
- Siemens RUGGEDCOM ROX RX5000: \< V2.17.0 (nvd)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-36087. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-36087.md
Affected: n/a; Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.0, < V3.1.5; Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.0, < V3.1.5; Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP >= V3.1.0, < V3.1.5; Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP >= V3.1.0, < V3.1.5; Siemens SIPLUS S7-1500 CPU 1…
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for n/a, Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP, Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP, Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP, Siemens RUGGEDCOM ROX MX5000, Siemens RUGGEDCOM ROX MX5000RE: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-36087 being exploited?

There is no confirmed exploitation: CVE-2021-36087 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.47% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-36087?

Low: CVSS 3.3 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-36087?

n/a; Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP \>= V3.1.0, \< V3.1.5; Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP \>= V3.1.0, \< V3.1.5; Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP \>= V3.1.0, \< V3.1.5; Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP \>= V3.1.0, \< V3.1.5; Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP \>= V3.1.0, \< V3.1.5; Siemens RUGGEDCOM ROX MX5000 \< V2.17.0; Siemens RUGGEDCOM ROX MX5000RE \< V2.17.0; Siemens RUGGEDCOM ROX RX1400 \< V2.17.0; Siemens RUGGEDCOM ROX RX1500 \< V2.17.0; Siemens RUGGEDCOM ROX RX1501 \< V2.17.0; Siemens RUGGEDCOM ROX RX1510 \< V2.17.0; Siemens RUGGEDCOM ROX RX1511 \< V2.17.0; Siemens RUGGEDCOM ROX RX1512 \< V2.17.0; Siemens RUGGEDCOM ROX RX1524 \< V2.17.0; Siemens RUGGEDCOM ROX RX1536 \< V2.17.0; Siemens RUGGEDCOM ROX RX5000 \< V2.17.0.

### Is there a fix for CVE-2021-36087?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2021-36087?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U7ZYR3PIJ75N6U2IONJWCKZ5L2NKJTGR/>
- patch: <https://github.com/SELinuxProject/selinux/commit/340f0eb7f3673e8aacaf0a96cbfcd4d12a405521>
- exploit: <https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32675>
- other: <https://github.com/google/oss-fuzz-vulns/blob/main/vulns/selinux/OSV-2021-585.yaml>
- other: <https://lore.kernel.org/selinux/CAEN2sdqJKHvDzPnxS-J8grU8fSf32DDtx=kyh84OsCq_Vm+yaQ%40mail.gmail.com/T/>
- other: <https://security.netapp.com/advisory/ntap-20250207-0004/>
- other: <https://lists.debian.org/debian-lts-announce/2024/10/msg00021.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-202008.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-36087>

HTML: <https://flawdb.com/CVE-2021-36087> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-36087>
