ALAS2MOCK2-2026-006


Amazon Linux 2 (EOS) Security Advisory: ALAS2MOCK2-2026-006
Advisory Released Date: 2026-11-12
Advisory Updated Date: 2026-11-12
Severity: Important

Issue Overview:

A heap-based buffer overflow flaw was found in rpm. Parsing a symlink entry in an untrusted RPM package whose declared RPMTAG_LONGFILESIZES value is 0xFFFFFFFFFFFFFFFF causes an integer overflow in iterReadArchiveNext() that shrinks a buffer allocation to one byte, after which the payload's independently-controlled cpio filesize field is used to write attacker-controlled data past the end of that allocation. This is reachable via rpm2cpio, rpm2archive, and rpm -qlvp on an untrusted package. (CVE-2026-95520)

A command injection flaw was found in rpm. Installing or rebuilding a source RPM whose source or spec file basenames contain a %() macro construct causes rpm to execute an attacker-controlled shell command via popen() while relocating the source file list. This allows arbitrary command execution as the invoking (typically non-root) user, simply by installing, rebuilding, or otherwise processing an untrusted .src.rpm. (CVE-2026-95521)


Affected Packages:

rpm


Note:

This advisory is applicable to Amazon Linux 2 - Mock2 Extra. Visit this page to learn more about Amazon Linux 2 (AL2) Extras and this FAQ section for the difference between AL2 Core and AL2 Extras advisories.


Issue Correction:
Run yum update rpm or yum update --advisory ALAS2MOCK2-2026-006 to update your system.

New Packages:
aarch64:
    rpm-4.14.3-4.amzn2.0.5.aarch64
    rpm-libs-4.14.3-4.amzn2.0.5.aarch64
    rpm-build-libs-4.14.3-4.amzn2.0.5.aarch64
    rpm-devel-4.14.3-4.amzn2.0.5.aarch64
    rpm-build-4.14.3-4.amzn2.0.5.aarch64
    rpm-sign-4.14.3-4.amzn2.0.5.aarch64
    python2-rpm-4.14.3-4.amzn2.0.5.aarch64
    python3-rpm-4.14.3-4.amzn2.0.5.aarch64
    rpm-plugin-selinux-4.14.3-4.amzn2.0.5.aarch64
    rpm-plugin-syslog-4.14.3-4.amzn2.0.5.aarch64
    rpm-plugin-systemd-inhibit-4.14.3-4.amzn2.0.5.aarch64
    rpm-plugin-ima-4.14.3-4.amzn2.0.5.aarch64
    rpm-plugin-prioreset-4.14.3-4.amzn2.0.5.aarch64
    rpm-debuginfo-4.14.3-4.amzn2.0.5.aarch64

noarch:
    rpm-apidocs-4.14.3-4.amzn2.0.5.noarch
    rpm-cron-4.14.3-4.amzn2.0.5.noarch

src:
    rpm-4.14.3-4.amzn2.0.5.src

x86_64:
    rpm-4.14.3-4.amzn2.0.5.x86_64
    rpm-libs-4.14.3-4.amzn2.0.5.x86_64
    rpm-build-libs-4.14.3-4.amzn2.0.5.x86_64
    rpm-devel-4.14.3-4.amzn2.0.5.x86_64
    rpm-build-4.14.3-4.amzn2.0.5.x86_64
    rpm-sign-4.14.3-4.amzn2.0.5.x86_64
    python2-rpm-4.14.3-4.amzn2.0.5.x86_64
    python3-rpm-4.14.3-4.amzn2.0.5.x86_64
    rpm-plugin-selinux-4.14.3-4.amzn2.0.5.x86_64
    rpm-plugin-syslog-4.14.3-4.amzn2.0.5.x86_64
    rpm-plugin-systemd-inhibit-4.14.3-4.amzn2.0.5.x86_64
    rpm-plugin-ima-4.14.3-4.amzn2.0.5.x86_64
    rpm-plugin-prioreset-4.14.3-4.amzn2.0.5.x86_64
    rpm-debuginfo-4.14.3-4.amzn2.0.5.x86_64