CVE-2018-0429
Description
Stack-based buffer overflow in the Cisco Thor decoder before commit 18de8f9f0762c3a542b1122589edb8af859d9813 allows local users to cause a denial of service (segmentation fault) and execute arbitrary code via a crafted non-conformant Thor bitstream.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
2- Range: < commit 18de8f9
Patches
Vulnerability mechanics
Root cause
"Missing input validation on the superblock size field in the Thor bitstream header allows recursive block splitting below the minimum block size, causing a stack-based buffer overflow."
Attack vector
An authenticated local attacker supplies a crafted non-conformant Thor bitstream to the decoder. The bitstream can specify an out-of-range `log2_sb_size` value in the sequence header, which is then used to compute block sizes during recursive decoding. When `split_flag` is set and the computed block size is smaller than `MIN_BLOCK_SIZE`, the recursive call to `process_block_dec` can overflow the stack because the base case is never reached [patch_id=6629298]. No network path is required; the attacker must be able to feed the malicious file to the decoder binary.
What the fix does
The patch adds two guards. In `read_sequence_header`, the parsed `log2_sb_size` is now clipped to the valid range `[log2i(MIN_BLOCK_SIZE), log2i(MAX_SB_SIZE)]`, preventing an attacker from setting an illegally small superblock size. In `process_block_dec`, the recursive split is gated by `size >= MIN_BLOCK_SIZE`, so even if a small size somehow reaches the function, the recursion terminates immediately instead of dividing further. Together these changes ensure the decoder never recurses below the minimum block size, eliminating the stack overflow.
Preconditions
- authAttacker must have local access to the system running the Thor decoder.
- inputAttacker must provide a non-conformant Thor bitstream as input to the decoder.
Generated on Jun 20, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
2- www.securityfocus.com/bid/105059mitrevdb-entryx_refsource_BID
- github.com/cisco/thor/commit/18de8f9f0762c3a542b1122589edb8af859d9813mitrex_refsource_CONFIRM
News mentions
0No linked articles in our index yet.