Out-of-bounds write in FFmpeg LoongArch LASX YUV-to-RGB converters
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- High
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
FFmpeg 6.0 before 6.1.7, 7.0 before 7.1.5, and 8.0 before 8.0.3 contains an out-of-bounds write in the LoongArch LASX YUV420P-to-RGB converters in libswscale. The converters round the output width up to a multiple of 8 and store whole blocks, so they write up to 7 pixels past the end of each row when the width is not a multiple of 8. An attacker who controls the width of YUV420P video converted to packed RGB on a LoongArch CPU with LASX can corrupt heap memory and crash the application.
Written with Claude Haiku 5.5 from the sources below · 2026-12-04
Description from the CNA
FFmpeg 6.0 before 6.1.7, 7.0 before 7.1.5, and 8.0 before 8.0.3 contains an out-of-bounds write vulnerability in the LoongArch LASX YUV420P-to-RGB converters in libswscale/loongarch/yuv2rgb_lasx.c, such as yuv420_rgb24_lasx() and yuv420_rgba32_lasx(), which round the output width up to a multiple of 8 pixels and store whole 8- and 16-pixel blocks, writing up to 7 pixels past the end of each row when the width is not a multiple of 8. Attackers who control the width of YUV420P video that an application converts to packed RGB with libswscale on a LoongArch CPU with LASX, into tightly packed destination buffers, can write up to 21 bytes (24-bit formats) or 28 bytes (32-bit formats) past the end of the destination buffer, corrupting heap memory and crashing the application.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| FFmpeg | FFmpeg | 6.0 to before 6.1.7; 7.0 to before 7.1.5; 8.0 to before 8.0.3 | 6.1.7, 7.1.5, 8.0.3 | Patch available | CNA |
- FFmpeg VendorFFmpeg Affected 6.0 to before 6.1.7; 7.0 to before 7.1.5; 8.0 to before 8.0.3 Fixed in 6.1.7, 7.1.5, 8.0.3 Patch available CNA
Remediation
Upgrade FFmpeg to version 6.1.7, 7.1.5, or 8.0.3, depending on the release branch in use.
Written with Claude Haiku 5.5 from the sources below · 2026-12-04
- Fix · CNA FFmpeg (FFmpeg) Fixed in 6.1.7, 7.1.5, 8.0.3
Timeline
- 2026-12-03 Threatist record created from CVE-2026-144455
- 2026-12-04 Alias added: GHSA-2hwr-p742-hmhw
References
More FFmpeg vulnerabilities
- TI-2025-19015 FFmpeg git-master before commit d5873b was discovered to contain a memory leak in the component libavutil/iamf.c. CVSS 3.1HIGH 8.8
- TI-2024-21238 FFmpeg 7.0 contains a heap-buffer-overflow at libavfilter/vf_tiltandshift.c:189:5 in copy_column. CVSS 3.1HIGH 8.4
- TI-2023-06050 Ffmpeg: null pointer dereference in ffmpeg hls parsing CVSS 3.1HIGH 7.5
- TI-2023-28420 Buffer Overflow vulnerability in Ffmpeg v.N113007-g8d24a28d06 allows a local attacker to… CVSS 3.1HIGH 8.0
- TI-2023-27357 FFmpeg v.n6.1-3-g466799d4f5 allows a heap-based buffer overflow via the… CVSS 3.1HIGH 8.0
- TI-2023-27044 Buffer Overflow vulnerability in FFmpeg version n6.1-3-g466799d4f5, allows a local… CVSS 3.1HIGH 8.0
Sources
- CVE-2026-144455 · CVE Program
- CVE-2026-144455 · NVD
- GHSA-2hwr-p742-hmhw · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences