Ad

CVE-2026-80772

NONE EPSS 0.21%
Обновлено 19 октября 2026
Linux
Параметр Значение
Поставщик Linux
Публичный эксплойт Нет

В ядре Linux устранена следующая уязвимость: HID: nintendo: исправлено чтение за пределами границ в joycon_ctlr_read_handler(). joycon_ctlr_read_handler() передает входящий отчет о вводе HID в struct joycon_input_report и анализирует его, защищая приведение только с помощью Проверка длины 12 байт: if (size >= 12) /* убедитесь, что он содержит входной отчет */ joycon_parse_report (ctlr, (struct joycon_input_report *) data); Структура joycon_input_report имеет размер 49 байт: 13-байтовый заголовок, за которым следует объединение, чья рука IMU составляет 36 байт. Для отчета IMU joycon_parse_report() -> joycon_parse_imu_report() проходит по этому объединению (смещение структуры 13..48), поэтому передается отчет размером ровно 12 байт с data[0] == JC_INPUT_IMU_DATA защита все же считывается на 37 байт больше заявленной длины. перечитанные байты декодируются в значения акселерометра/гироскопа и пересылается в пространство пользователя через устройство ввода «(IMU)», происходит утечка внутренняя память драйвера. data[0] и размер полностью контролируются вредоносный или поддельный контроллер Joy-Con/Pro. Размер буферов приема соответствует максимальной длине отчета, поэтому это перечитано внутри выделения, а не в блоке OOB, но декодированное байты все еще достигают пользовательского пространства.

Родственный путь subcmd в joycon_ctlr_handle_event() уже ограничивает тот же состав правильно: if (size < sizeof(struct joycon_input_report) || данные[0] != JC_INPUT_SUBCMD_REPLY) перерыв; Используйте тот же самый sizeof(struct joycon_input_report), связанный здесь.

Показать оригинальное описание (EN)

In the Linux kernel, the following vulnerability has been resolved: HID: nintendo: fix out-of-bounds read in joycon_ctlr_read_handler() joycon_ctlr_read_handler() casts an incoming HID input report to struct joycon_input_report and parses it, guarding the cast only with a 12-byte length check: if (size >= 12) /* make sure it contains the input report */ joycon_parse_report(ctlr, (struct joycon_input_report *)data); struct joycon_input_report is 49 bytes: a 13-byte header followed by a union whose IMU arm is 36 bytes. For an IMU report joycon_parse_report() -> joycon_parse_imu_report() walks that union (struct offsets 13..48), so a report of exactly 12 bytes with data[0] == JC_INPUT_IMU_DATA passes the guard yet is read up to 37 bytes past its declared length. The over-read bytes are decoded into accelerometer/gyroscope values and forwarded to userspace through the "(IMU)" input device, leaking driver-internal memory. data[0] and size are fully controlled by a malicious or spoofed Joy-Con/Pro Controller. Receive buffers are sized to the maximum report length, so this is an over-read within the allocation rather than a slab OOB, but the decoded bytes still reach userspace. The sibling subcmd path in joycon_ctlr_handle_event() already bounds the same cast correctly: if (size < sizeof(struct joycon_input_report) || data[0] != JC_INPUT_SUBCMD_REPLY) break; Use the same sizeof(struct joycon_input_report) bound here.