Use After Free Affecting libsepol package, versions <0:3.4-3.amzn2022.0.2


Severity

Recommended
medium

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.46% (38th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2022-LIBSEPOL-3162277
  • published8 Dec 2022
  • disclosed1 Jul 2021

Introduced: 1 Jul 2021

CVE-2021-36085  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2022 libsepol to version 0:3.4-3.amzn2022.0.2 or higher.
This issue was patched in ALAS2022-2022-208.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libsepol package and not the libsepol package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2022 relevant fixed versions and status.

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).

CVSS Base Scores

version 3.1