CVE-2021-36084
NixOS vulnerability analysis and mitigation

Overview

CVE-2021-36084 is a security vulnerability discovered in SELinux 3.2's CIL (Common Intermediate Language) compiler. The vulnerability involves a use-after-free issue in the cilverifyclassperms function, which is called from cilverifyclasspermission and _cilpreverifyhelper. The issue was initially discovered and reported through OSS-Fuzz on February 19, 2021, and was publicly disclosed on June 30, 2021 (CVE-MITRE, OSS-FUZZ).

Technical details

The vulnerability is classified as a heap-use-after-free issue that occurs during the verification of class permissions in the SELinux CIL compiler. The bug manifests when the classperms list of a classpermission rule is processed, where the list is created and filled during classpermissionset rules processing. The technical issue stems from the fact that the list doesn't own any part of the data and shouldn't retain it when reset. The vulnerability has been assigned a CVSS 3.1 base score of 3.3 (Low), with attack vector being Local, attack complexity Low, and requiring user interaction (UBUNTU).

Impact

The vulnerability has a Low severity impact, primarily affecting the availability of the system. According to the CVSS scoring, there are no direct impacts on confidentiality or integrity. The issue only affects the compilation of SELinux policy, and systems using AppArmor as their default Linux Security Module (LSM) are not affected (UBUNTU).

Mitigation and workarounds

A fix was implemented through a commit that modifies the handling of the classperms list in the CIL compiler. The solution involves destroying the classperms list (without destroying the data in it) when resetting a classpermission rule. The fix is available in updated versions of the libsepol package across various distributions (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