heifer-hevc-dec
Affected
- introduced
0.0.0-0, fixed0.3.27(semver)
Fixed versions
0.3.27
Fix
- Fixed version
0.3.27cargo update -p heifer-hevc-dec --precise 0.3.27
Advisory
Also known as: GHSA-rcff-5x58-7w2p
Panic on an HEVC tile layout that does not match the active SPS
An HEVC picture parameter set (PPS) stores explicit tile column widths and row
heights computed against the sequence parameter set (SPS) active when it was
parsed. A crafted stream can redefine that SPS afterwards, so that the tile sizes
add up to more than the picture. The decoder then indexed past its coding tree
block tables: Rust's bounds checks turned this into a panic, or the picture was
decoded wrongly. A panic aborts the decoding thread, or the whole process when
built with panic = "abort". The crate forbids unsafe code, so there is no
memory corruption.
Any application that decodes untrusted HEIC files or HEVC streams withheifer-hevc-dec, directly or through the heifer crate, is affected.
The flaw was corrected in 0.3.27 (commit
`71dfc67`):
a tile layout that does not match the picture size is rejected withError::Invalid at decode time.
Medium Basis: CVSS v3 score 6.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
0.0.0-0, fixed 0.3.27 (semver)0.3.27
0.3.27cargo update -p heifer-hevc-dec --precise 0.3.27Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: RustSec Advisory Database · CC0-1.0