Wind River Support Network

HomeDefectsLIN1021-6586
Fixed

LIN1021-6586 : Security Advisory - libwebp - CVE-2023-5129

Created: Sep 25, 2023    Updated: Oct 5, 2023
Resolved Date: Oct 5, 2023
Found In Version: 10.21.20.1
Severity: Standard
Applicable for: Wind River Linux LTS 21
Component/s: Userspace

Description

With a specially crafted WebP lossless file, libwebp may write data out of bounds to the heap. The ReadHuffmanCodes() function allocates the HuffmanCode buffer with a size that comes from an array of precomputed sizes: kTableSize. The color_cache_bits value defines which size to use. The kTableSize array only takes into account sizes for 8-bit first-level table lookups but not second-level table lookups. libwebp allows codes that are up to 15-bit (MAX_ALLOWED_CODE_LENGTH). When BuildHuffmanTable() attempts to fill the second-level tables it may write data out-of-bounds. The OOB write to the undersized array happens in ReplicateValue.

CREATE(Triage):(User=admin) CVE-2023-5129 (https://nvd.nist.gov/vuln/detail/CVE-2023-5129)
Live chat
Online