توضیح (فارسی)
VLC media player 3.0.0 قبل از نسخه 3.0.22 حاوی یک آسیبپذیری سرریز بافر مبتنی بر هیپ (heap-based buffer overflow) در تابع CEA708_Window_Scroll() در فایل modules/codec/cea708.c است. این تابع ستون سمت راست استفادهشده در یک پنجره کپشن اسکرولکننده چپبهراست را با CEA708_WINDOW_MAX_ROWS - 1 به جای CEA708_WINDOW_MAX_COLS - 1 مقایسه میکند. در حالی که CEA708_Window_MaxCol() سطر اشتباهی را بررسی میکند و CEA708_Window_Truncate() همیشه ستون آخر سطرهایی که بیش از یک کاراکتر دارند را حذف نمیکند، بنابراین سطرهایی که قبلاً به ستون آخر رسیدهاند به سمت راست جابجا میشوند. مهاجم میتواند یک فایل رسانه یا استریم دستکاریشده با دادههای کپشن بسته CEA-708 تهیه کند که بهصورت تکراری یک پنجره چپبهراست تمامپهناه (full-width) را اسکرول میکند، که منجر به نوشتن فراتر از پایان آرایههای کاراکتر و استایل سطر تخصیصیافته در هیپ میشود. این باعث کرش VLC و خرابی حافظه هیپ هنگام رمزگشاری تراک کپشن میشود.
Original description (English)
VLC media player 3.0.0 before 3.0.22 contains a heap-based buffer overflow vulnerability in CEA708_Window_Scroll() in modules/codec/cea708.c that compares the rightmost used column of a left-to-right scrolling caption window against CEA708_WINDOW_MAX_ROWS - 1 instead of CEA708_WINDOW_MAX_COLS - 1, while CEA708_Window_MaxCol() inspects the wrong row and CEA708_Window_Truncate() never drops the last column of a row holding more than one character, so rows that already reach the last column are shifted further right. Attackers can supply a crafted media file or stream whose CEA-708 closed caption data repeatedly scrolls a full-width left-to-right window, writing past the end of the heap-allocated row's character and style arrays, which crashes VLC and corrupts heap memory when the caption track is decoded.