A vulnerability has been identified in the libarchive library. This flaw involves an 'off-by-one' miscalculation when handling prefixes and suffixes for file names. This can lead to a 1-byte write overflow. While seemingly small, such an overflow can corrupt adjacent memory, leading to unpredictable program behavior, crashes, or in specific circumstances, could be leveraged as a building block for more sophisticated exploitation.
Workaround:
The product writes data past the end, or before the beginning, of the intended buffer.
Link | Tags |
---|---|
https://access.redhat.com/security/cve/CVE-2025-5917 | vendor advisory vdb entry |
https://bugzilla.redhat.com/show_bug.cgi?id=2370874 | issue tracking |
https://github.com/libarchive/libarchive/pull/2588 | patch |
https://github.com/libarchive/libarchive/releases/tag/v3.8.0 | release notes |