Ad

CVE-2026-99673

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

В ядре Linux была устранена следующая уязвимость: может: заменить проверки типа ARPHRD_CAN на can_get_ml_priv() Commit 4e096a18867a («net: introduc CAN specific pointer in the struct net_device») Введен явный способ назначения частного указателя среднего уровня (dev->ml_priv) названным пользователям, таким как ML_PRIV_CAN. Таким образом, действительный указатель, возвращаемый can_get_ml_priv(), идентифицирует реальное устройство CAN. Ссылающийся коммит только преобразовывал код j1939 и proc в эту проверку, в то время как другие части подсистемы CAN по-прежнему полагаются на dev->type ARPHRD_CAN. TUNSETLINK ioctl позволяет устройству TUN / TAP установить свой тип оборудования на ARPHRD_CAN, в то время как dev->ml_priv остается NULL.

Такое перепрофилированное сетевое устройство проходит проверку ARPHRD_CAN. 8aa59e355949 ("can: af_can: fix NULL pointer dereference in can_rx_register()") уже заставил can_rx_register() отклонить такие устройства. Но can_rx_unregister() по-прежнему проверяет только dev->type и удаляет ссылки на NULL ml_priv, когда он входит в списки приема устройства. CAN_ISOTP достигает этого пути: isotp_bind() игнорирует возвращаемые значения can_rx_register() и связывает сокет в любом случае. Когда сокет выпущен или устройство незарегистрировано, isotp_release() и isotp_notify() удаляют фильтры, которые никогда не были зарегистрированы, и запускают удаление указателя NULL в can_rx_unregister().

Это требует только наличия устройства TUN / TAP или CAP_NET_ADMIN в непривилегированном пространстве имен пользователей. Конвертируйте оставшиеся чеки ARPHRD_CAN в af_can, bcm, gw, isotp и raw в can_get_ml_priv().

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

In the Linux kernel, the following vulnerability has been resolved: can: replace ARPHRD_CAN type checks with can_get_ml_priv() Commit 4e096a18867a ("net: introduce CAN specific pointer in the struct net_device") introduced an explicit way to assign the midlayer private pointer (dev->ml_priv) to named users like ML_PRIV_CAN. A valid pointer returned by can_get_ml_priv() therefore identifies a real CAN device. The referenced commit only converted the j1939 and proc code to this check, while the other parts of the CAN subsystem still rely on dev->type == ARPHRD_CAN. The TUNSETLINK ioctl allows a down TUN/TAP device to set its hardware type to ARPHRD_CAN while dev->ml_priv remains NULL. Such a repurposed netdevice passes the ARPHRD_CAN checks. Commit 8aa59e355949 ("can: af_can: fix NULL pointer dereference in can_rx_register()") already made can_rx_register() reject such devices. But can_rx_unregister() still only checks dev->type and dereferences the NULL ml_priv when it walks the receive lists of the device. CAN_ISOTP reaches this path: isotp_bind() ignores the return values of can_rx_register() and binds the socket anyway. When the socket is released or the device is unregistered, isotp_release() and isotp_notify() remove the filters that have never been registered and trigger the NULL pointer dereference in can_rx_unregister(). This only requires owning a TUN/TAP device or CAP_NET_ADMIN in an unprivileged user namespace. Convert the remaining ARPHRD_CAN checks in af_can, bcm, gw, isotp and raw to can_get_ml_priv().