Lucene search
K

📄 liblcf 0.8.1 Integer Overflow

🗓️ 19 Aug 2025 00:00:00Reported by Ron EType 
packetstorm
 packetstorm
🔗 packetstorm.news👁 84 Views

Liblcf 0.8.1 overflow in LcfReader ReadInt for compressed integers; unbounded shift causes overflow and parsing errors; PoC uses 11 FF bytes plus 7F to overflow to FFFFFFFF

Code
A crafted RPG Maker save file (`.lsd`) can trigger an integer overflow in
    liblcf’s lcfstrings compressed integer decoding logic
    (`LcfReader::ReadInt()`), resulting in an unbounded shift and accumulation
    loop. The overflowed value is later used in buffer size allocations and
    structure parsing, causing large memory access requests and parsing errors.
    
    
    *Steps to Reproduce*
    
    
    1. Use the attached `.lsd` file (see PoC section).
    
    2. Run: `./lcfstrings poc_overflow.lsd`
    
    3. Observe invalid reads such as:
    
       - `Read 4294967205 bytes!`
    
       - Multiple `Invalid Primitive` and `Corrupted Chunk` warnings
    
       - Crash or excessive memory consumption in affected builds
    
    
    *Proof of Concept:*
    
    
    A `.lsd` file with a malformed compressed integer containing 11 bytes of
    `0xFF` followed by `0x7F` triggers the overflow. This causes the loop in
    `ReadInt()` to shift left repeatedly and accumulate a 32-bit integer
    overflow (e.g., `0xFFFFFFFF`), resulting in corrupted internal values.

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

19 Aug 2025 00:00Current
7.8High risk
Vulners AI Score7.8
84