Out-of-Bounds Affecting libsepol-utils package, versions <0:3.4-3.amzn2023.0.3


Severity

Recommended
medium

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.48% (40th 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-AMZN2023-LIBSEPOLUTILS-3340110
  • published6 Mar 2023
  • disclosed1 Jul 2021

Introduced: 1 Jul 2021

CVE-2021-36087  (opens in a new tab)
CWE-119  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 libsepol-utils to version 0:3.4-3.amzn2023.0.3 or higher.
This issue was patched in ALAS2023-2023-017.

NVD Description

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

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.

CVSS Base Scores

version 3.1