compress provides various compression algorithms. Prior to 1.20.2, the zstd DecodeAll and streaming decoder paths can panic when a crafted two-block f...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Ubuntu:16.04:LTSgolang-github-klauspost-compress |
All versions→ Not listed |
Not listed |
| Ubuntu:18.04:LTSgolang-github-klauspost-compress |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSgolang-github-klauspost-compress |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSgolang-github-klauspost-compress |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSgolang-github-klauspost-compress |
All versions→ Not listed |
Not listed |
| Ubuntu:26.10golang-github-klauspost-compress |
All versions→ Not listed |
Not listed |
| Ubuntu:26.04:LTSgolang-github-klauspost-compress |
All versions→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
compress provides various compression algorithms. Prior to 1.20.2, the zstd DecodeAll and streaming decoder paths can panic when a crafted two-block frame reaches huff0.ReadTable with an FSE normalized count of 32768 that readNCount stores in int16 as -32768. The wrapped count allows buildDtable to retain stale fse.Scratch decode-table state from the prior block, and nextFast then derives an out-of-range state and indexes beyond the table instead of returning a decode error. Both blocks are required to preserve and then reuse the stale state, allowing untrusted zstd input to crash an application. This issue is fixed in version 1.20.2.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- report ubuntu.com
- report cve.org
- report github.com
- report github.com
- report github.com