CVE-2021-36085
NixOS vulnerability analysis and mitigation

Overview

CVE-2021-36085 is a security vulnerability discovered in SELinux 3.2's CIL (Common Intermediate Language) compiler. The vulnerability was published on February 20, 2021, and involves a use-after-free issue in the cilverifyclassperms function, which is called from verifymappermclassperms and hashtabmap (OSS-Fuzz Report).

Technical details

The vulnerability is classified as a heap-use-after-free READ vulnerability that occurs specifically in the _cilverify_classperms function of SELinux's CIL compiler. The issue arises when the compiler attempts to verify class permissions, leading to potential memory corruption. The vulnerability has been assessed as HIGH severity according to the ecosystem-specific metrics (OSV Report).

Impact

As a heap-use-after-free vulnerability, CVE-2021-36085 could potentially lead to program crashes or memory corruption. Given its presence in SELinux, a critical security component of Linux systems, the vulnerability could impact the security enforcement mechanisms of affected systems (Debian Tracker).

Mitigation and workarounds

The vulnerability was fixed in SELinux version 3.3-1 and later releases. The fix involves properly destroying the classperm list when resetting map perms, as implemented in commit 2d35fcc7e9e976a2346b1de20e54f8663e8a6cba (SELinux Commit).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-48606HIGH7.8
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48625HIGH7
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48608MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48569MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-65799MEDIUM4.3
  • NixOSNixOS
  • memos
NoYesDec 08, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management