REDHAT-BUG-2482481: Buffer Overflow
A heap buffer overflow exists in RPM's NDB database backend (lib/backend/ndb/rpmpkg.c) due to unchecked 32-bit arithmetic when parsing the slot table. The slotnpages value is read directly from the on-disk NDB header and used in a 32-bit multiplication (slotnpages (PAGESIZE / SLOTSIZE)) to size a heap allocation. A crafted Packages.db can supply a slotnpages value that wraps this product to a small number, causing xcalloc to allocate an undersized buffer. The subsequent loop iterates over the full unwrapped page count, writing pkgslot entries past the heap boundary before per-slot validation runs. Exploitation requires the victim to open a crafted NDB database file with RPM tooling, and NDB is not the default backend in Fedora or RHEL (both default to sqlite).
Affected Software
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2482481?
The severity of REDHAT-BUG-2482481 is low.
What causes the vulnerability REDHAT-BUG-2482481?
REDHAT-BUG-2482481 is caused by a heap buffer overflow in RPM's NDB database backend due to unchecked 32-bit arithmetic.
How do I fix REDHAT-BUG-2482481?
To fix REDHAT-BUG-2482481, update your RPM software to the latest version where this vulnerability has been addressed.
What types of vulnerabilities are associated with REDHAT-BUG-2482481?
REDHAT-BUG-2482481 is associated with Buffer Overflow and SQL Injection vulnerabilities.
When was REDHAT-BUG-2482481 published?
REDHAT-BUG-2482481 was published on May 28, 2026.