В ядре Linux устранена следующая уязвимость: platform/x86: hp-bioscfg: fix password encoding bounds check Пароль PSWD_ENCODINGS парсер читает password_obj[elem + pos_values] при копировании поддерживаемых кодировок паролей из пакета ACPI. Внешняя петля только гарантирует, что elem находится внутри password_obj_count. Количество кодировок ограничено MAX_ENCODINGS_SIZE, но это не гарантирует, что пакет ACPI содержит достаточно записей для всех elem + pos_values доступов.
Таким образом, искаженный пакет может объявлять ненулевое число кодирования без предоставления достаточного количества строковых объектов, в результате чего анализатор считывает массив пакетов ACPI и передает указатель строки out-of-bounds в hp_convert_hexstr_to_str(). Добавьте ту же самую проверку границ вычисленного индекса, используемую другими циклами парсинга пакетов на основе смещения, прежде чем читать password_obj[elem + pos_values .
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: platform/x86: hp-bioscfg: fix password encoding bounds check The password PSWD_ENCODINGS parser reads password_obj[elem + pos_values] while copying the supported password encodings from the ACPI package. The outer loop only guarantees that elem is within password_obj_count. The encoding count is bounded by MAX_ENCODINGS_SIZE, but that does not guarantee that the ACPI package contains enough entries for all elem + pos_values accesses. A malformed package can therefore declare a non-zero encoding count without providing enough string objects, causing the parser to read past the ACPI package array and pass an out-of-bounds string pointer and length to hp_convert_hexstr_to_str(). Add the same computed-index bounds check used by the other offset-based package parsing loops before reading password_obj[elem + pos_values].
Характеристики атаки
Последствия
Строка CVSS v3.1