Description
When processing files, malloc stores the data of the current line. When processing comments, malloc incorrectly accesses the released memory (use after free).
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | byacc | <1.9.20200330 and <2.0.20210808 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | byacc | 2.0.20210109-2.amzn2023.0.3 | ALAS2023-2023-204 |
Advisories 1
- ALAS2023-2023-204 Important: byacc security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Jun 7, 2023