rusty_h265 decodes untrusted HEVC / H.265 bitstreams, so input-handling bugs
are security bugs here. The threat model is
docs/threat-model.md; the hardening audit for each
published crate is in its docs/plans/use-protection-please.md.
Please do not open a public issue for a security problem.
Report privately through GitHub's "Report a vulnerability" button on this repository's Security tab (open a draft advisory). That opens a private advisory only the maintainers can see.
Please include:
- the crate (
rusty_h265orrusty_h265-accel) and version or commit, - a minimal reproducer: ideally the bitstream, or a crashing fuzz case from
fuzz/(cargo +nightly fuzz run <target> <case>reproduces it), - the impact you observed (crash, hang, out-of-bounds access, memory growth, wrong output from a conforming stream).
We aim to acknowledge within 5 business days, to agree a disclosure timeline with you from there (90 days at most by default, sooner once a fix is released), and to publish a GitHub security advisory and a RustSec advisory for any confirmed vulnerability in a released version. We credit reporters who want it.
In scope:
- The decoder (
rusty_h265): any panic, hang, unbounded allocation or memory unsafety on malformed input reached through the public API (Decoder::push_annexb,Decoder::push_nal, thenal/ps/slice/seiparsing functions). A panic on hostile input is a bug. - The kernels (
rusty_h265-accel): any out-of-bounds access reachable from a safepub fn, with any arguments. Every dispatcher must be sound for every input, not only the geometry the decoder passes. - Wrong output for a stream in the conformance scope (the JCT-VC HEVC_v1 and RExt suites the README names).
Out of scope:
- Memory use proportional to a legitimately large picture. A host decoding
untrusted input should lower
Decoder::max_luma_samples(default: the level 6.2 maximum, 35,651,584 luma samples) to the largest picture it accepts. - The bundled
rusty_h265binary's handling of its own command line (it is a conformance-harness front end, run by the person who invokes it). - Bugs in the developer tooling under
tools/.
From 1.0.0, the latest 1.x release receives security fixes. Pre-1.0 releases (0.x) are not patched; upgrade to 1.x.