Use After Free Affecting byacc-debugsource package, versions <0:2.0.20210109-2.amzn2023.0.3


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.06% (30th 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 Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-AMZN2023-BYACCDEBUGSOURCE-5671576
  • published8 Jun 2023
  • disclosed20 Jan 2023

Introduced: 20 Jan 2023

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

How to fix?

Upgrade Amazon-Linux:2023 byacc-debugsource to version 0:2.0.20210109-2.amzn2023.0.3 or higher.
This issue was patched in ALAS2023-2023-204.

NVD Description

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

When processing files, malloc stores the data of the current line. When processing comments, malloc incorrectly accesses the released memory (use after free).

CVSS Base Scores

version 3.1