CVE-2021-36085
The CIL compiler in SELinux 3.2 has a use-after-free in __cil_verify_classperms (called from __verify_map_perm_classperms and hashtab_map).
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | libsepol | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | libsepol | Fixed | 3.0-1ubuntu0.1 | UBUNTU-CVE-2021-36085 |
| Ubuntu 18.04 | libsepol | Fixed | 2.7-1ubuntu0.1 | UBUNTU-CVE-2021-36085 |
| Ubuntu 16.04 | libsepol | Fix pending | 2.4-2ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2021-36085 |
| Ubuntu 14.04 | libsepol | Not affected vulnerable_code_not_present | ||
| Debian 14 | libsepol | Fixed | 3.3-1 | DEBIAN-CVE-2021-36085 |
| Debian 13 | libsepol | Fixed | 3.3-1 | DEBIAN-CVE-2021-36085 |
| Debian 12 | libsepol | Fixed | 3.3-1 | DEBIAN-CVE-2021-36085 |
| Red Hat Enterprise Linux 9 | libsepol | Not affected | ||
| Red Hat Enterprise Linux 9 | libsepol-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | libsepol-static | Not affected | ||
| Red Hat Enterprise Linux 9 | libsepol-utils | Not affected | ||
| Red Hat Enterprise Linux 8 | libsepol | Fixed | 0:2.9-3.el8 | RHSA-2021:4513 |
| Red Hat Enterprise Linux 8 | libsepol-devel | Fixed | 0:2.9-3.el8 | RHSA-2021:4513 |
| Red Hat Enterprise Linux 8 | libsepol-static | Fixed | 0:2.9-3.el8 | RHSA-2021:4513 |
| Red Hat Enterprise Linux 7 | libsepol | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | libsepol-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | libsepol-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | libsepol | Not affected | ||
| Red Hat Enterprise Linux 6 | libsepol-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | libsepol-static | Not affected | ||
| AlmaLinux 8 | libsepol | Fixed | 2.9-3.el8 | ALSA-2021:4513 |
| AlmaLinux 8 | libsepol-devel | Fixed | 2.9-3.el8 | ALSA-2021:4513 |
| AlmaLinux 8 | libsepol-static | Fixed | 2.9-3.el8 | ALSA-2021:4513 |
| Rocky Linux 8 | libsepol | Fixed | 0:2.9-3.el8 | RLSA-2021:4513 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
References
- https://github.com/google/oss-fuzz-vulns/blob/main/vulns/selinux/OSV-2021-421.yaml
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=31124
- https://github.com/SELinuxProject/selinux/commit/2d35fcc7e9e976a2346b1de20e54f8663e8a6cba
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U7ZYR3PIJ75N6U2IONJWCKZ5L2NKJTGR/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.