Ad

CVE-2026-43456

HIGH CVSS 3.1: 7,8 EPSS 0.19%
Обновлено 30 октября 2026
Linux
Параметр Значение
CVSS 7,8 (HIGH)
Уязвимые версии 2.6.24 — 6.19.9
Устранено в версии 6.12.78
Тип уязвимости CWE-843 (Смешение типов), CWE-908 (Использование неинициализированного ресурса)
Поставщик Linux
Публичный эксплойт Нет

В ядре Linux устранена следующая уязвимость: соединение: исправлена путаница типов в Bond_setup_by_slave(). ОШИБКА ядра в net/core/skbuff.c:2306! К сожалению: неверный код операции: 0000 [#1] SMP KASAN NOPTI RIP: 0010:pskb_expand_head+0xa08/0xfe0 net/core/skbuff.c:2306 RSP: 0018:ffffc90004aff760 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff88807e3c8780 RCX: ffffffff89593e0e RDX: ffff88807b7c4900 RSI: ffffffff89594747 RDI: ffff88807b7c4900 РБП: 0000000000000820 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000961a63e0 R11: 0000000000000000 R12: ffff88807e3c8780 R13: 00000000961a6560 R14: dffffc0000000000 R15: 00000000961a63e0 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe1a0ed8df0 CR3: 000000002d816000 CR4: 00000000003526f0 Отслеживание вызова: <ЗАДАЧА> ipgre_header+0xdd/0x540 net/ipv4/ip_gre.c:900 dev_hard_header include/linux/netdevice.h:3439 [встроенный] package_snd net/packet/af_packet.c:3028 [встроенный] package_sendmsg+0x3ae5/0x53c0 net/packet/af_packet.c:3108 sock_sendmsg_nosec net/socket.c:727 [встроенный] __sock_sendmsg net/socket.c:742 [встроенный] ____sys_sendmsg+0xa54/0xc30 net/socket.c:2592 ___sys_sendmsg+0x190/0x1e0 net/socket.c:2646 __sys_sendmsg+0x170/0x220 net/socket.c:2678 do_syscall_x64 Arch/x86/entry/syscall_64.c:63 [встроенный] do_syscall_64+0x106/0xf80 Arch/x86/entry/syscall_64.c:94 запись_SYSCALL_64_after_hwframe+0x77/0x7f РИП: 0033:0x7fe1a0e6c1a9 Когда устройство, не являющееся Ethernet (например, туннель GRE), подключено к соединению, Bond_setup_by_slave() напрямую копирует header_ops ведомого устройства в устройство связи: Bond_dev->header_ops = подчиненное_устройство->header_ops; Это приводит к путанице типов при последующем вызове dev_hard_header(). на связном устройстве. Такие функции, как ipgre_header(), ip6gre_header(), все используют netdev_priv(dev) для доступа к личным данным, относящимся к конкретному устройству.

Когда вызываемый с помощью устройства связи, netdev_priv() возвращает частный данные (связывание структур) вместо ожидаемого типа (например, структура ip_tunnel), что приводит к чтению мусорных значений и сбою ядра. Исправьте это, представив Bond_header_ops с функциями-оболочками, которые делегировать header_ops активного подчиненного устройства, используя собственный устройство. Это гарантирует использование netdev_priv() в функциях заголовка подчиненного устройства. всегда получает правильное устройство.

Исправление помещается в драйвер связывания, а не в отдельное устройство. драйверы, поскольку основная причина заключается в том, что Bond слепо наследует header_ops от подчиненное устройство, не учитывая, что эти обратные вызовы ожидают определенного Макет netdev_priv(). Путаницу типов можно наблюдать, добавив printk в ipgre_header() и выполнив следующие команды: IP-ссылка добавить тип dummy0 типа dummy IP-адрес добавить 10.0.0.1/24 dev dummy0 IP-ссылка установлена ​​dummy0 ip-ссылка добавить gre1 типа gre local 10.0.0.1 IP-ссылка добавить тип Bond1, режим связи, активное резервное копирование IP-ссылка установлена ​​gre1 master Bond1 IP-ссылка настроена gre1 IP-ссылка настроена на Bond1 IP-адрес добавить fe80::1/64 dev Bond1

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

In the Linux kernel, the following vulnerability has been resolved: bonding: fix type confusion in bond_setup_by_slave() kernel BUG at net/core/skbuff.c:2306! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI RIP: 0010:pskb_expand_head+0xa08/0xfe0 net/core/skbuff.c:2306 RSP: 0018:ffffc90004aff760 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff88807e3c8780 RCX: ffffffff89593e0e RDX: ffff88807b7c4900 RSI: ffffffff89594747 RDI: ffff88807b7c4900 RBP: 0000000000000820 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000961a63e0 R11: 0000000000000000 R12: ffff88807e3c8780 R13: 00000000961a6560 R14: dffffc0000000000 R15: 00000000961a63e0 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe1a0ed8df0 CR3: 000000002d816000 CR4: 00000000003526f0 Call Trace: <TASK> ipgre_header+0xdd/0x540 net/ipv4/ip_gre.c:900 dev_hard_header include/linux/netdevice.h:3439 [inline] packet_snd net/packet/af_packet.c:3028 [inline] packet_sendmsg+0x3ae5/0x53c0 net/packet/af_packet.c:3108 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] ____sys_sendmsg+0xa54/0xc30 net/socket.c:2592 ___sys_sendmsg+0x190/0x1e0 net/socket.c:2646 __sys_sendmsg+0x170/0x220 net/socket.c:2678 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe1a0e6c1a9 When a non-Ethernet device (e.g. GRE tunnel) is enslaved to a bond, bond_setup_by_slave() directly copies the slave's header_ops to the bond device: bond_dev->header_ops = slave_dev->header_ops; This causes a type confusion when dev_hard_header() is later called on the bond device. Functions like ipgre_header(), ip6gre_header(),all use netdev_priv(dev) to access their device-specific private data. When called with the bond device, netdev_priv() returns the bond's private data (struct bonding) instead of the expected type (e.g. struct ip_tunnel), leading to garbage values being read and kernel crashes. Fix this by introducing bond_header_ops with wrapper functions that delegate to the active slave's header_ops using the slave's own device. This ensures netdev_priv() in the slave's header functions always receives the correct device. The fix is placed in the bonding driver rather than individual device drivers, as the root cause is bond blindly inheriting header_ops from the slave without considering that these callbacks expect a specific netdev_priv() layout. The type confusion can be observed by adding a printk in ipgre_header() and running the following commands: ip link add dummy0 type dummy ip addr add 10.0.0.1/24 dev dummy0 ip link set dummy0 up ip link add gre1 type gre local 10.0.0.1 ip link add bond1 type bond mode active-backup ip link set gre1 master bond1 ip link set gre1 up ip link set bond1 up ip addr add fe80::1/64 dev bond1

Характеристики атаки

Способ атаки
Локальный
Нужен локальный доступ
Сложность
Низкая
Легко эксплуатировать
Нужны права
Низкие
Нужны базовые права
Участие пользователя
Не требуется
Не нужно действие пользователя

Последствия

Конфиденциальность
Высокое
Полная утечка данных
Целостность
Высокое
Полная модификация данных
Доступность
Высокое
Полный отказ в обслуживании

Строка CVSS v3.1

Уязвимые продукты 6

Конфигурация От (включительно) До (исключительно)
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
2.6.24 6.12.78
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
6.13 6.18.19
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
6.19 6.19.9
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
— —
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
— —
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
— —