توضیح (فارسی)
FFmpeg 6.0 قبل از 6.1.7، 7.0 قبل از 7.1.5، و 8.0 قبل از 8.0.3 حاوی یک آسیبپذیری نوشتن خارج از مرز در تبدیلکنندههای LoongArch LASX YUV420P-to-RGB در فایل libswscale/loongarch/yuv2rgb_lasx.c، مانند توابع yuv420_rgb24_lasx() و yuv420_rgba32_lasx()، است که Display width را به عدد مضاعف 8 پیکسلimar окру rond hlt و بلوکهای کامل 8 و 16 پیکسلی ذخیره میکنند، نوشتن تا 7 پیکسل بعد از انتهای هر سطر وقتی Display width چند مضاعف 8 نباشد. مهاجمانی که عرض ویدیوی YUV420P که یک برنامه با libswscale به رنگ packed RGB روی CPU LoongArch با LASX تبدیل میکند، به بافرهای مقصد چست کنترل میکنند، میتوانند تا 21 بایت (فرمتهای 24 بیتی) یا 28 بایت (فرمتهای 32 بیتی) بعد از انتهای بافر مقصد بنویسند، حافظه heap را خراب کنند و برنامه را متوقف کنند.
Original description (English)
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.