CVE Catalog

CVE-2026-95520

HighCVSS 7.1
Published: Updated: Translated: NVD NIST

Summary

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.

Risk Assessment

An attacker could supply a malicious RPM package that, when processed by a victim, leads to arbitrary code execution or system crash.

Recommendation

Update rpm to a patched version or avoid processing untrusted RPM packages with rpm2cpio, rpm2archive, and rpm -qlvp.

Other vulnerabilities in rpm

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS