Description
L-SMASH through 2.14.5 contains a double free vulnerability in hevc_setup_first_summary() and h264_setup_first_summary() in importer/nalu_imp.c that frees borrowed codec-specific objects on error paths. Attackers can supply a crafted Annex-B elementary stream lacking a parseable SPS to lsmash_read_file() or the boxdumper, remuxer, or muxer tools, causing use-after-free, heap corruption, and crashes.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| l-smash | l-smash | ≤ 2.14.5 | — |
References
- https://hackmd.io/@haind-pwn/l-smash-hevc-importer-double-free third-party-advisory
- https://github.com/l-smash/l-smash/blob/v2.14.5/importer/nalu_imp.c#L1356-L1378 technical-description
- https://github.com/l-smash/l-smash/blob/v2.14.5/importer/nalu_imp.c#L697-L715 technical-description
- VulnCheck Advisory: L-SMASH through 2.14.5 Double Free in HEVC and H.264 Importer Probe third-party-advisory