В ядре Linux устранена следующая уязвимость:
соединение: отказаться от порабощения CAN-устройств
syzbot сообщил о сбое запроса на подкачку ядра в
can_rx_unregister() внутри net/can/af_can.c. Авария происходит
потому что виртуальное CAN-устройство (vxcan) подчиняется
мастер по склеиванию. В процессе порабощения драйвер связи мутирует.
и изменяет состояния сетевых устройств, чтобы они соответствовали Ethernet-подобному
модель агрегации.
Однако устройства CAN работают полностью
другая архитектура уровня 2, основанная на промежуточном уровне CAN
частная структура данных (can_ml_priv) вместо стандартной
Структуры Ethernet. Поскольку соединение не инициализируется или
поддерживать эти структуры CAN, последующие операции на
полуподчиненный интерфейс (например, закрытие связанных сокетов
через isotp_release) приводят к разыменованию нулевого указателя, когда
доступ к спискам CAN-приемников. Объединение интерфейсов CAN архитектурно недопустимо, поскольку в CAN отсутствует
MAC-адреса, возможности ARP и стандарт Ethernet
механизмы канального уровня.
Хотя обычные устройства обратной связи
заблокировано глобально в net/core/dev.c, виртуальных устройствах CAN
обойти эту проверку, поскольку они не несут IFF_LOOPBACK
флаг, несмотря на то, что он действует как локальная программная петля. Исправьте это, явно заблокировав сетевые устройства типа
ARPHRD_CAN от порабощения в самом начале
связь_порабощать (). Это предотвращает незаконные мутации состояния,
устраняет возникающие в результате сбои KASAN и позволяет избежать потенциальных
утечки памяти из-за неполной очистки сокетов.
Поскольку поддержка CAN была добавлена спустя много времени после привязки
тег Fixes указывает на введение ARPHRD_CAN, который
потребовалась бы специальная обработка в Bonding_main.c.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: bonding: refuse to enslave CAN devices syzbot reported a kernel paging request crash in can_rx_unregister() inside net/can/af_can.c. The crash occurs because a virtual CAN device (vxcan) is being enslaved to a bonding master. During the enslavement process, the bonding driver mutates and modifies the network device states to fit an Ethernet-like aggregation model. However, CAN devices operate on a completely different Layer 2 architecture, relying on the CAN mid-layer private data structure (can_ml_priv) instead of standard Ethernet structures. Since bonding does not initialize or maintain these CAN structures, subsequent operations on the half-enslaved interface (such as closing associated sockets via isotp_release) lead to a null-pointer dereference when accessing the CAN receiver lists. Bonding CAN interfaces is architecturally invalid as CAN lacks MAC addresses, ARP capabilities, and standard Ethernet link-layer mechanisms. While generic loopback devices are blocked globally in net/core/dev.c, virtual CAN devices bypass this check because they do not carry the IFF_LOOPBACK flag, despite acting as local software-loopbacks. Fix this by explicitly blocking network devices of type ARPHRD_CAN from being enslaved at the very beginning of bond_enslave(). This prevents illegal state mutations, eliminates the resulting KASAN crashes, and avoids potential memory leaks from incomplete socket cleanups. As the CAN support has been added a long time after bonding the Fixes-tag points to the introduction of ARPHRD_CAN that would have needed a specific handling in bonding_main.c.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 12
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.25
|
5.15.210
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.25
|
6.1.176
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.25
|
6.6.143
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.25
|
6.12.93
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.25
|
6.18.35
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.25
|
7.0.12
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.25
|
7.1
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc5:*:*:*:*:*:*
|
— | — |