FFmpeg 6.0 before 8.0.3 Out-of-Bounds Write via LoongArch LASX YUV-to-RGB Row Tail
- CVE-2026-144455
- GHSA-2hwr-p742-hmhw
- EUVD-2026-143774
Description
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.
Text from the CVE.org record.
Recommendation
FFmpeg
- If you run 8.0.xupdate to 8.0.3 or laterPatch update: breaking changes are unlikely
- If you run a version from 7.0 to before 7.1.5update to 7.1.5 or laterMinor version change: check the release notes
- If you run a version from 6.0 to before 6.1.7update to 6.1.7 or laterMinor version change: check the release notes
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
FFmpeg
Affected versions Fixed in from 8.0 to before 8.0.3 8.0.3 from 7.0 to before 7.1.5 7.1.5 from 6.0 to before 6.1.7 6.1.7
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.