ALAS2-2023-1972

Related Vulnerabilities: CVE-2021-38185  

GNU cpio through 2.13 allows attackers to execute arbitrary code via a crafted pattern file, because of a dstring.c ds_fgetstr integer overflow that triggers an out-of-bounds heap write. NOTE: it is unclear whether there are common cases where the pattern file, associated with the -E option, is untrusted data. (CVE-2021-38185)

ALAS2-2023-1972


Amazon Linux 2 Security Advisory: ALAS-2023-1972
Advisory Release Date: 2023-03-02 22:35 Pacific
Advisory Updated Date: 2023-03-07 00:20 Pacific
Severity: Medium

Issue Overview:

GNU cpio through 2.13 allows attackers to execute arbitrary code via a crafted pattern file, because of a dstring.c ds_fgetstr integer overflow that triggers an out-of-bounds heap write. NOTE: it is unclear whether there are common cases where the pattern file, associated with the -E option, is untrusted data. (CVE-2021-38185)


Affected Packages:

cpio


Issue Correction:
Run yum update cpio to update your system.

New Packages:
aarch64:
    cpio-2.12-11.amzn2.aarch64
    cpio-debuginfo-2.12-11.amzn2.aarch64

i686:
    cpio-2.12-11.amzn2.i686
    cpio-debuginfo-2.12-11.amzn2.i686

src:
    cpio-2.12-11.amzn2.src

x86_64:
    cpio-2.12-11.amzn2.x86_64
    cpio-debuginfo-2.12-11.amzn2.x86_64