Amazon Linux 2 Security Advisory: ALAS-2022-1877
Advisory Release Date: 2022-10-31 19:40 Pacific
Advisory Updated Date: 2022-11-08 22:19 Pacific
A vulnerability was found in expat. With this flaw, it is possible to create a situation in which parsing is suspended while substituting in an internal entity so that XML_ResumeParser directly uses the internalEntityProcessor as its processor. If the subsequent parse includes some unclosed tags, this will return without calling storeRawNames to ensure that the raw versions of the tag names are stored in memory other than the parse buffer itself. Issues occur if the parse buffer is changed or reallocated (for example, if processing a file line by line), problems occur. Using this vulnerability in the doContent function allows an attacker to triage a denial of service or potentially arbitrary code execution. (CVE-2022-40674)
Affected Packages:
expat
Note:
This advisory is applicable to Amazon Linux 2 (AL2) Core repository. Visit this FAQ section for the difference between AL2 Core and AL2 Extras advisories.
Issue Correction:
Run yum update expat to update your system.
aarch64:
expat-2.1.0-15.amzn2.0.1.aarch64
expat-devel-2.1.0-15.amzn2.0.1.aarch64
expat-static-2.1.0-15.amzn2.0.1.aarch64
expat-debuginfo-2.1.0-15.amzn2.0.1.aarch64
i686:
expat-2.1.0-15.amzn2.0.1.i686
expat-devel-2.1.0-15.amzn2.0.1.i686
expat-static-2.1.0-15.amzn2.0.1.i686
expat-debuginfo-2.1.0-15.amzn2.0.1.i686
src:
expat-2.1.0-15.amzn2.0.1.src
x86_64:
expat-2.1.0-15.amzn2.0.1.x86_64
expat-devel-2.1.0-15.amzn2.0.1.x86_64
expat-static-2.1.0-15.amzn2.0.1.x86_64
expat-debuginfo-2.1.0-15.amzn2.0.1.x86_64