Vulnerability · Published Apr 17, 2024 · Assigned by Linux
CVE-2024-26892wifi: mt76: mt7921e: fix use-after-free in free_irq()
High 7.8
In plain English
A high-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 14% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
In the Linux kernel, the following vulnerability has been resolved: wifi: mt76: mt7921e: fix use-after-free in free_irq() From commit a304e1b82808 ("[PATCH] Debug shared irqs"), there is a test to make sure the shared irq handler should be able to handle the unexpected event after deregistration. For this case, let's apply MT76_REMOVED flag to indicate the device was removed and do not run into the resource access anymore. BUG: KASAN: use-after-free in mt7921_irq_handler+0xd8/0x100 [mt7921e] Read of size 8 at addr ffff88824a7d3b78 by task rmmod/11115 CPU: 28 PID: 11115 Comm: rmmod Tainted: G W L 5.17.0 #10 Hardware name: Micro-Star International Co., Ltd. MS-7D73/MPG B650I EDGE WIFI (MS-7D73), BIOS 1.81 01/05/2024 Call Trace: <TASK> dump_stack_lvl+0x6f/0xa0 print_address_description.constprop.0+0x1f/0x190 ? mt7921_irq_handler+0xd8/0x100 [mt7921e] ? mt7921_irq_handler+0xd8/0x100 [mt7921e] kasan_report.cold+0x7f/0x11b ? mt7921_irq_handler+0xd8/0x100 [mt7921e] mt7921_irq_handler+0xd8/0x100 [mt7921e] free_irq+0x627/0xaa0 devm_free_irq+0x94/0xd0 ? devm_request_any_context_irq+0x160/0x160 ? kobject_put+0x18d/0x4a0 mt7921_pci_remove+0x153/0x190 [mt7921e] pci_device_remove+0xa2/0x1d0 __device_release_driver+0x346/0x6e0 driver_detach+0x1ef/0x2c0 bus_remove_driver+0xe7/0x2d0 ? __check_object_size+0x57/0x310 pci_unregister_driver+0x26/0x250 __do_sys_delete_module+0x307/0x510 ? free_module+0x6a0/0x6a0 ? fpregs_assert_state_consistent+0x4b/0xb0 ? rcu_read_lock_sched_held+0x10/0x70 ? syscall_enter_from_user_mode+0x20/0x70 ? trace_hardirqs_on+0x1c/0x130 do_syscall_64+0x5c/0x80 ? trace_hardirqs_on_prepare+0x72/0x160 ? do_syscall_64+0x68/0x80 ? trace_hardirqs_on_prepare+0x72/0x160 entry_SYSCALL_64_after_hwframe+0x44/0xae
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | bpftool | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-abi-stablelists | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-core | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-cross-headers | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-debug | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-debug-core | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-debug-devel | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-debug-modules | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-debug-modules-extra | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-devel | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-doc | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-headers | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-modules | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-modules-extra | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-rt | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux:8 | kernel-rt-core | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux:8 | kernel-rt-debug | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux:8 | kernel-rt-debug-core | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux:8 | kernel-rt-debug-devel | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux:8 | kernel-rt-debug-kvm | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux:8 | kernel-rt-debug-modules | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux:8 | kernel-rt-debug-modules-extra | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux:8 | kernel-rt-devel | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux:8 | kernel-rt-kvm | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux:8 | kernel-rt-modules | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux:8 | kernel-rt-modules-extra | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux:8 | kernel-tools | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-tools-libs | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-tools-libs-devel | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-zfcpdump | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-zfcpdump-core | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-zfcpdump-devel | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-zfcpdump-modules | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | kernel-zfcpdump-modules-extra | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | perf | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux:8 | python3-perf | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| Debian:13 | linux | 6.7.12-1 | DEBIAN-CVE-2024-26892 |
| Debian:14 | linux | 6.7.12-1 | DEBIAN-CVE-2024-26892 |
| Rocky Linux:8 | kernel | 0:4.18.0-553.5.1.el8_10 | RLSA-2024:3618 |
| Rocky Linux:8 | kernel-rt | 0:4.18.0-553.5.1.rt7.346.el8_10 | RLSA-2024:3627 |
| Ubuntu:24.04:LTS | linux | 6.8.0-35.35 | UBUNTU-CVE-2024-26892 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2024-26892 |
| Ubuntu:24.04:LTS | linux-aws | 6.8.0-1009.9 | UBUNTU-CVE-2024-26892 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2024-26892 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | no fix listed | UBUNTU-CVE-2024-26892 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | no fix listed | UBUNTU-CVE-2024-26892 |
| Ubuntu:24.04:LTS | linux-azure | 6.8.0-1008.8 | UBUNTU-CVE-2024-26892 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2024-26892 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | no fix listed | UBUNTU-CVE-2024-26892 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | no fix listed | UBUNTU-CVE-2024-26892 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2024-26892 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | no fix listed | UBUNTU-CVE-2024-26892 |
| Ubuntu:24.04:LTS | linux-gcp | 6.8.0-1008.9 | UBUNTU-CVE-2024-26892 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2024-26892 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | no fix listed | UBUNTU-CVE-2024-26892 |
| Ubuntu:22.04:LTS | linux-gcp-6.5 | no fix listed | UBUNTU-CVE-2024-26892 |
| Ubuntu:24.04:LTS | linux-gke | 6.8.0-1004.7 | UBUNTU-CVE-2024-26892 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2024-26892 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | no fix listed | UBUNTU-CVE-2024-26892 |
| Ubuntu:22.04:LTS | linux-hwe-6.5 | no fix listed | UBUNTU-CVE-2024-26892 |
| Ubuntu:24.04:LTS | linux-ibm | 6.8.0-1006.6 | UBUNTU-CVE-2024-26892 |
| Ubuntu:22.04:LTS | linux-intel-iot-realtime | no fix listed | UBUNTU-CVE-2024-26892 |
| Ubuntu:24.04:LTS | linux-lowlatency | 6.8.0-35.35.1 | UBUNTU-CVE-2024-26892 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2024-26892 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | no fix listed | UBUNTU-CVE-2024-26892 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.5 | no fix listed | UBUNTU-CVE-2024-26892 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | no fix listed | UBUNTU-CVE-2024-26892 |
| Ubuntu:22.04:LTS | linux-nvidia-6.5 | no fix listed | UBUNTU-CVE-2024-26892 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2024-26892 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2024-26892 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | no fix listed | UBUNTU-CVE-2024-26892 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | no fix listed | UBUNTU-CVE-2024-26892 |
| Ubuntu:24.04:LTS | linux-oem-6.8 | 6.8.0-1006.6 | UBUNTU-CVE-2024-26892 |
| Ubuntu:24.04:LTS | linux-oracle | 6.8.0-1006.6 | UBUNTU-CVE-2024-26892 |
| Ubuntu:22.04:LTS | linux-oracle-6.5 | no fix listed | UBUNTU-CVE-2024-26892 |
| Ubuntu:24.04:LTS | linux-raspi | 6.8.0-1005.5 | UBUNTU-CVE-2024-26892 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2024-26892 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2024-26892 |
| Ubuntu:24.04:LTS | linux-riscv | 6.8.0-35.35.1 | UBUNTU-CVE-2024-26892 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2024-26892 |
| Ubuntu:22.04:LTS | linux-riscv-6.5 | no fix listed | UBUNTU-CVE-2024-26892 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2024-26892 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | no fix listed | UBUNTU-CVE-2024-26892 |
| Ubuntu:22.04:LTS | linux-starfive-6.5 | no fix listed | UBUNTU-CVE-2024-26892 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 9270270d62191b7549296721e8d5f3dc0df01563 – before c7dd42fbebcfb02bef070fd48f774d6412d0b49d9270270d62191b7549296721e8d5f3dc0df01563 – before bfe1adf1606f76c180324e53b130f0e76d5cc6c39270270d62191b7549296721e8d5f3dc0df01563 – before bfeaef901194c5923ce3330272786eff2fac513a9270270d62191b7549296721e8d5f3dc0df01563 – before c957280ef6ab6bdf559a91ae693a6b34310697e3a76eaaaafd8b408238d7865bbbbd311f08988f3d95e41ac30a0d0b3637f0b3c93235a7a107a2fb7f6.2.15 – before 6.36.3.2 – before 6.4 |
| Linux | Linux | 6.4 |