{"schemaVersion":3,"id":"CVE-2021-36087","aliases":["UBUNTU-CVE-2021-36087","DEBIAN-CVE-2021-36087"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-07-01T02:49:55.000Z","modified":"2026-10-14T11:49:05.325Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":3.3,"severity":"low","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":3.3,"severity":"low","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","exploitability":4.6,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":3.3,"severity":"low","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","exploitability":4.6,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":3.3,"severity":"low","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":2.1,"severity":"low","vector":"AV:L/AC:L/Au:N/C:N/I:N/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00479,"percentile":0.40042,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.02199999999999997,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00457},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00479,"percentile":0.40042}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00457,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00479,"percentile":0.40042}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_B5614C360DE41C18","name":"Exploit Reference (bugs.chromium.org)","source":"reference","url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32675","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-125","name":"Out-of-bounds Read","description":"The product reads data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/125.html"}],"affected":[{"vendor":"debian","product":"libsepol","name":"libsepol","label":"libsepol","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libsepol","purlType":"deb","versions":[{"text":"< 3.3-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.3-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libsepol","name":"libsepol","label":"libsepol","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libsepol","purlType":"deb","versions":[{"text":"< 2.4-2ubuntu0.1~esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 2.7-1ubuntu0.1","noFixRecorded":false,"fixedIn":null},{"text":"< 3.0-1ubuntu0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.4-2ubuntu0.1~esm1 | < 2.7-1ubuntu0.1 | < 3.0-1ubuntu0.1","eol":null,"hubHref":null},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"35","noFixRecorded":false,"fixedIn":null}],"versionsText":"35","eol":{"isEol":true,"eolDate":"2022-12-13T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"35","label":"35","eolFrom":"2022-12-13T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"selinux_project","product":"selinux","name":"selinux","label":"selinux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"3.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"3.2","eol":null,"hubHref":"/vendor/selinux_project/selinux"}],"affectedCount":4,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/google/oss-fuzz-vulns/blob/main/vulns/selinux/OSV-2021-585.yaml","label":"github.com/google/oss-fuzz-vulns/blob/main/vulns/selinux/OSV-2021-585.yaml","hostname":"github.com","tags":["X Refsource MISC","REPORT","Third Party Advisory"]},{"url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32675","label":"bugs.chromium.org/p/oss-fuzz/issues/detail?id=32675","hostname":"bugs.chromium.org","tags":["X Refsource MISC","Exploit","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://lore.kernel.org/selinux/CAEN2sdqJKHvDzPnxS-J8grU8fSf32DDtx=kyh84OsCq_Vm+yaQ%40mail.gmail.com/T/","label":"lore.kernel.org/selinux/CAEN2sdqJKHvDzPnxS-J8grU8fSf32DDtx=kyh84OsCq_Vm+yaQ%40mail.gmail.com/T/","hostname":"lore.kernel.org","tags":["X Refsource MISC"]},{"url":"https://github.com/SELinuxProject/selinux/commit/340f0eb7f3673e8aacaf0a96cbfcd4d12a405521","label":"github.com/SELinuxProject/selinux/commit/340f0eb7f3673e8aacaf0a96cbfcd4d12a405521","hostname":"github.com","tags":["X Refsource MISC","Patch","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U7ZYR3PIJ75N6U2IONJWCKZ5L2NKJTGR/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://security.netapp.com/advisory/ntap-20250207-0004/","label":"security.netapp.com/advisory/ntap-20250207-0004/","hostname":"security.netapp.com","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/10/msg00021.html","label":"lists.debian.org/debian-lts-announce/2024/10/msg00021.html","hostname":"lists.debian.org","tags":[]},{"url":"https://ubuntu.com/security/CVE-2021-36087","label":"ubuntu.com/security/CVE-2021-36087","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-5391-1","label":"ubuntu.com/security/notices/USN-5391-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-36087","label":"www.cve.org/CVERecord?id=CVE-2021-36087","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-36087","label":"security-tracker.debian.org/tracker/CVE-2021-36087","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","label":"cert-portal.siemens.com/productcert/html/ssa-398330.html","hostname":"cert-portal.siemens.com","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-202008.html","label":"cert-portal.siemens.com/productcert/html/ssa-202008.html","hostname":"cert-portal.siemens.com","tags":[]}],"lineage":{"upstream":[],"downstream":["DLA-3930-1","RHSA-2021:4513","USN-5391-1"],"duplicates":[],"related":["USN-5391-1"]},"timeline":[{"kind":"published","date":"2021-07-01T02:49:55.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-14T11:49:05.325Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":23,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T03:59:25.130Z","stale":false,"partial":false}}