CVE-2021-36087
libsepol: heap-based buffer overflow in ebitmap_match_any()
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · April 19, 2021
Updated · November 21, 2025
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.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 3.3CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
CWE-119 · Improper Restriction of Operations within the Bounds of a Memory Buffer