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.

Severity (CVSS NVD)7.8High
Exploit odds (30 days)0.2%top 86.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
AlmaLinux:8bpftool4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-abi-stablelists4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-core4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-cross-headers4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-debug4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-debug-core4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-debug-devel4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-debug-modules4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-debug-modules-extra4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-devel4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-doc4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-headers4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-modules4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-modules-extra4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-rt4.18.0-553.5.1.rt7.346.el8_10ALSA-2024:3627
AlmaLinux:8kernel-rt-core4.18.0-553.5.1.rt7.346.el8_10ALSA-2024:3627
AlmaLinux:8kernel-rt-debug4.18.0-553.5.1.rt7.346.el8_10ALSA-2024:3627
AlmaLinux:8kernel-rt-debug-core4.18.0-553.5.1.rt7.346.el8_10ALSA-2024:3627
AlmaLinux:8kernel-rt-debug-devel4.18.0-553.5.1.rt7.346.el8_10ALSA-2024:3627
AlmaLinux:8kernel-rt-debug-kvm4.18.0-553.5.1.rt7.346.el8_10ALSA-2024:3627
AlmaLinux:8kernel-rt-debug-modules4.18.0-553.5.1.rt7.346.el8_10ALSA-2024:3627
AlmaLinux:8kernel-rt-debug-modules-extra4.18.0-553.5.1.rt7.346.el8_10ALSA-2024:3627
AlmaLinux:8kernel-rt-devel4.18.0-553.5.1.rt7.346.el8_10ALSA-2024:3627
AlmaLinux:8kernel-rt-kvm4.18.0-553.5.1.rt7.346.el8_10ALSA-2024:3627
AlmaLinux:8kernel-rt-modules4.18.0-553.5.1.rt7.346.el8_10ALSA-2024:3627
AlmaLinux:8kernel-rt-modules-extra4.18.0-553.5.1.rt7.346.el8_10ALSA-2024:3627
AlmaLinux:8kernel-tools4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-tools-libs4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-tools-libs-devel4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-zfcpdump4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-zfcpdump-core4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-zfcpdump-devel4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-zfcpdump-modules4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-zfcpdump-modules-extra4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8perf4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8python3-perf4.18.0-553.5.1.el8_10ALSA-2024:3618
Debian:13linux6.7.12-1DEBIAN-CVE-2024-26892
Debian:14linux6.7.12-1DEBIAN-CVE-2024-26892
Rocky Linux:8kernel0:4.18.0-553.5.1.el8_10RLSA-2024:3618
Rocky Linux:8kernel-rt0:4.18.0-553.5.1.rt7.346.el8_10RLSA-2024:3627
Ubuntu:24.04:LTSlinux6.8.0-35.35UBUNTU-CVE-2024-26892
Ubuntu:22.04:LTSlinux-allwinner-5.19no fix listedUBUNTU-CVE-2024-26892
Ubuntu:24.04:LTSlinux-aws6.8.0-1009.9UBUNTU-CVE-2024-26892
Ubuntu:22.04:LTSlinux-aws-5.19no fix listedUBUNTU-CVE-2024-26892
Ubuntu:22.04:LTSlinux-aws-6.2no fix listedUBUNTU-CVE-2024-26892
Ubuntu:22.04:LTSlinux-aws-6.5no fix listedUBUNTU-CVE-2024-26892
Ubuntu:24.04:LTSlinux-azure6.8.0-1008.8UBUNTU-CVE-2024-26892
Ubuntu:22.04:LTSlinux-azure-5.19no fix listedUBUNTU-CVE-2024-26892
Ubuntu:22.04:LTSlinux-azure-6.2no fix listedUBUNTU-CVE-2024-26892
Ubuntu:22.04:LTSlinux-azure-6.5no fix listedUBUNTU-CVE-2024-26892
Ubuntu:22.04:LTSlinux-azure-fde-5.19no fix listedUBUNTU-CVE-2024-26892
Ubuntu:22.04:LTSlinux-azure-fde-6.2no fix listedUBUNTU-CVE-2024-26892
Ubuntu:24.04:LTSlinux-gcp6.8.0-1008.9UBUNTU-CVE-2024-26892
Ubuntu:22.04:LTSlinux-gcp-5.19no fix listedUBUNTU-CVE-2024-26892
Ubuntu:22.04:LTSlinux-gcp-6.2no fix listedUBUNTU-CVE-2024-26892
Ubuntu:22.04:LTSlinux-gcp-6.5no fix listedUBUNTU-CVE-2024-26892
Ubuntu:24.04:LTSlinux-gke6.8.0-1004.7UBUNTU-CVE-2024-26892
Ubuntu:22.04:LTSlinux-hwe-5.19no fix listedUBUNTU-CVE-2024-26892
Ubuntu:22.04:LTSlinux-hwe-6.2no fix listedUBUNTU-CVE-2024-26892
Ubuntu:22.04:LTSlinux-hwe-6.5no fix listedUBUNTU-CVE-2024-26892
Ubuntu:24.04:LTSlinux-ibm6.8.0-1006.6UBUNTU-CVE-2024-26892
Ubuntu:22.04:LTSlinux-intel-iot-realtimeno fix listedUBUNTU-CVE-2024-26892
Ubuntu:24.04:LTSlinux-lowlatency6.8.0-35.35.1UBUNTU-CVE-2024-26892
Ubuntu:22.04:LTSlinux-lowlatency-hwe-5.19no fix listedUBUNTU-CVE-2024-26892
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.2no fix listedUBUNTU-CVE-2024-26892
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.5no fix listedUBUNTU-CVE-2024-26892
Ubuntu:22.04:LTSlinux-nvidia-6.2no fix listedUBUNTU-CVE-2024-26892
Ubuntu:22.04:LTSlinux-nvidia-6.5no fix listedUBUNTU-CVE-2024-26892
Ubuntu:22.04:LTSlinux-oem-5.17no fix listedUBUNTU-CVE-2024-26892
Ubuntu:22.04:LTSlinux-oem-6.0no fix listedUBUNTU-CVE-2024-26892
Ubuntu:22.04:LTSlinux-oem-6.1no fix listedUBUNTU-CVE-2024-26892
Ubuntu:22.04:LTSlinux-oem-6.5no fix listedUBUNTU-CVE-2024-26892
Ubuntu:24.04:LTSlinux-oem-6.86.8.0-1006.6UBUNTU-CVE-2024-26892
Ubuntu:24.04:LTSlinux-oracle6.8.0-1006.6UBUNTU-CVE-2024-26892
Ubuntu:22.04:LTSlinux-oracle-6.5no fix listedUBUNTU-CVE-2024-26892
Ubuntu:24.04:LTSlinux-raspi6.8.0-1005.5UBUNTU-CVE-2024-26892
Ubuntu:22.04:LTSlinux-realtimeno fix listedUBUNTU-CVE-2024-26892
Ubuntu:22.04:LTSlinux-riscvno fix listedUBUNTU-CVE-2024-26892
Ubuntu:24.04:LTSlinux-riscv6.8.0-35.35.1UBUNTU-CVE-2024-26892
Ubuntu:22.04:LTSlinux-riscv-5.19no fix listedUBUNTU-CVE-2024-26892
Ubuntu:22.04:LTSlinux-riscv-6.5no fix listedUBUNTU-CVE-2024-26892
Ubuntu:22.04:LTSlinux-starfive-5.19no fix listedUBUNTU-CVE-2024-26892
Ubuntu:22.04:LTSlinux-starfive-6.2no fix listedUBUNTU-CVE-2024-26892
Ubuntu:22.04:LTSlinux-starfive-6.5no fix listedUBUNTU-CVE-2024-26892

Affected products (as reported)

VendorProductVersions
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

References