{"id":"UBUNTU-CVE-2021-36087","details":"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.","modified":"2026-04-22T14:51:25.070349Z","published":"2021-07-01T03:15:00Z","related":["USN-5391-1"],"upstream":["CVE-2021-36087"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-36087"},{"type":"REPORT","url":"https://github.com/google/oss-fuzz-vulns/blob/main/vulns/selinux/OSV-2021-585.yaml"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5391-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-36087"}],"affected":[{"package":{"name":"libsepol","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/libsepol@2.4-2ubuntu0.1~esm1?arch=source&distro=esm-infra/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4-2ubuntu0.1~esm1"}]}],"versions":["2.3-2","2.4-2"],"ecosystem_specific":{"binaries":[{"binary_name":"libsepol1","binary_version":"2.4-2ubuntu0.1~esm1"},{"binary_name":"sepol-utils","binary_version":"2.4-2ubuntu0.1~esm1"}],"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-36087.json"}},{"package":{"name":"libsepol","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/libsepol@2.7-1ubuntu0.1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7-1ubuntu0.1"}]}],"versions":["2.7-1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libsepol1","binary_version":"2.7-1ubuntu0.1"},{"binary_name":"sepol-utils","binary_version":"2.7-1ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-36087.json"}},{"package":{"name":"libsepol","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/libsepol@3.0-1ubuntu0.1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0-1ubuntu0.1"}]}],"versions":["2.9-2","3.0-1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libsepol1","binary_version":"3.0-1ubuntu0.1"},{"binary_version":"3.0-1ubuntu0.1","binary_name":"sepol-utils"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-36087.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L"},{"type":"Ubuntu","score":"low"}]}