Към съдържанието

CVE-2026-98302: Linux

Няма оценка

CVSS

Няма данни

Вероятност да бъде експлоатирана в следващите 30 дни (EPSS)

Няма потвърждение

Атакува се

Няма данни

Време до експлоатация

    Описание

    Оригинално описание

    In the Linux kernel, the following vulnerability has been resolved: net: fddi: skfp: fix NULL deref when setting the MAC address while down skfp_ctl_set_mac_address() calls ResetAdapter() unconditionally, without checking netif_running(). ResetAdapter() first calls card_stop(), which sets smc->hw.hw_state to STOPPED, and then mac_drv_clear_tx_queue(), which walks the two transmit queues: for (i = QUEUE_S; i <= QUEUE_A0; i++) { queue = smc->hw.fp.tx[i] ; ... t = queue->tx_curr_get ; smc->hw.fp.tx[] is only populated by init_tx(), which is reached from skfp_open() through init_smt() -> init_fddi_driver() -> init_fplus() -> init_mac() -> init_tx(). The private area is allocated and zeroed by alloc_fddidev(), so on an interface that has never been brought up both queue pointers are still NULL. The hw_state test at the top of mac_drv_clear_tx_queue() does not catch this, because card_stop() has just set STOPPED; the function proceeds into the loop and dereferences NULL. ResetAdapter() does call init_smt() itself, but only after the queues have been cleared. Setting the MAC address on a down interface therefore oopses: ip link set dev fddi0 address 02:00:00:00:00:01 BUG: KASAN: null-ptr-deref in mac_drv_clear_tx_queue+0x68/0x2c0 [skfp] Read of size 8 at addr 0000000000000010 by task ip/302 Call Trace: <TASK> mac_drv_clear_tx_queue+0x68/0x2c0 [skfp 6c01d4bab63c36978bd0a7d7e90837adb44cc37b] ResetAdapter+0x29/0x100 [skfp 6c01d4bab63c36978bd0a7d7e90837adb44cc37b] skfp_ctl_set_mac_address+0x57/0x80 [skfp 6c01d4bab63c36978bd0a7d7e90837adb44cc37b] netif_set_mac_address+0x1e4/0x2c0 do_setlink+0x684/0x2680 </TASK> Address 0x10 is the offset of tx_curr_get, the third pointer in struct s_smt_tx_queue, on 64-bit. mac_drv_clear_rx_queue(), which ResetAdapter() calls immediately afterwards, dereferences smc->hw.fp.rx[QUEUE_R1] in the same way behind the same ineffective hw_state test; the transmit queue merely crashes first. Both are covered

    Засегнати продукти

    • Linux Linux: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 преди 835903bea770ad96ab4322e18d98e00f8e0b39c3; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 преди 5fd0f401b3eee95c93daa35ef99cb03d676031f0; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 преди 731db6110b3148331ed8d5d11a564bfd520721d9; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 преди 822903ed991971780db1db1be31a4f00e2b13e30; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 преди 616ba18b2cfb72b7bea214bdd72df2485b2e37dc; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 преди d6f63fdb298d546a47790cb373db65462c264d04; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 преди 438131e7ae847e907d345bf504d7e25585561b5c; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 преди 7c8810c2e69c3d9ca6df870b40ae9218e50b4fb1
    • Linux Linux: 2.6.12; преди 2.6.12; 5.10.271 до 5.10.*; 5.15.222 до 5.15.*; 6.1.189 до 6.1.*; 6.6.158 до 6.6.*; 6.12.112 до 6.12.*; 6.18.54 до 6.18.*; 7.2.8 до 7.2.*; от 7.3 нататък

    История

    • 6 октомври 2026 Публикувано

    Други уязвимости в Linux Linux

    Първоизточници

    CVE-2026-98302: Linux | freedomonline.bg