Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D439A1F8755 for ; Wed, 16 Apr 2025 14:13:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744812833; cv=none; b=MY+XOwn50PBO2SkkrOoy6UW7DED/c2fVNiU16r3wSSLmu3Qy0/znK+czmCIdrAhWUEw4I8yrJz1kB8GuaCM9uLCMsNlANd95qJdaXZMmcqaLgas87QdgCKmOiy8m9gU8/OdlSBHigDAUO6H2ikBx+P5peWmZU6x1IgttR7e8ggs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744812833; c=relaxed/simple; bh=Bg9Wd1OGc6JlAxEAgL6POUvxwryEK+J85kSxgB8Zh3k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PMKK+WE5GNfZa9vYCZ6KA9mWu2NXHlfTDS5uuzez8agcufL/qKI13+Xhtl/YWN5bkSaHLH9TVIBYdWzSUn0HKk5wQA0OuSlna4oBhEQeH0/0+Z8zrCVxUAaYNEYtuyFPp05Mvx66O+KmCCTVNHlR3hVr1UnDgCTW1snsDI+JM40= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qlx9Ox44; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="qlx9Ox44" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D031BC4CEE2; Wed, 16 Apr 2025 14:13:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744812832; bh=Bg9Wd1OGc6JlAxEAgL6POUvxwryEK+J85kSxgB8Zh3k=; h=From:To:Cc:Subject:Date:Reply-to:From; b=qlx9Ox44En7G7BG6B7Mwxt1f6d5qtW0ZT5LbC3Ae0oup8GNBBidtfiILdMQCHspni KIEdPu6gol+YnfW53lI5pLpOAQLMgt4qMKs6u1EAYYebVRm+xk8IgZ2occJblYSrl3 azxzKVGu9phWCGU8RxsQjmKOjOZTucimZs0h9HAE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-22032: wifi: mt76: mt7921: fix kernel panic due to null pointer dereference Date: Wed, 16 Apr 2025 16:12:03 +0200 Message-ID: <2025041657-CVE-2025-22032-1c05@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=4232; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Bg9Wd1OGc6JlAxEAgL6POUvxwryEK+J85kSxgB8Zh3k=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn/d61V/dai90Lp2K6wDRmPOH7u+VT5LWHl5Ffl8fe3F jgsPfjockcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBM5PIchvlu/usD0pyni82w vjX9ybr3hn8OeqxiWLBeq7B2q5H8W60J+yRu9F/8x/gqqxoA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: wifi: mt76: mt7921: fix kernel panic due to null pointer dereference Address a kernel panic caused by a null pointer dereference in the `mt792x_rx_get_wcid` function. The issue arises because the `deflink` structure is not properly initialized with the `sta` context. This patch ensures that the `deflink` structure is correctly linked to the `sta` context, preventing the null pointer dereference. BUG: kernel NULL pointer dereference, address: 0000000000000400 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 0 P4D 0 Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI CPU: 0 UID: 0 PID: 470 Comm: mt76-usb-rx phy Not tainted 6.12.13-gentoo-dist #1 Hardware name: /AMD HUDSON-M1, BIOS 4.6.4 11/15/2011 RIP: 0010:mt792x_rx_get_wcid+0x48/0x140 [mt792x_lib] RSP: 0018:ffffa147c055fd98 EFLAGS: 00010202 RAX: 0000000000000000 RBX: ffff8e9ecb652000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff8e9ecb652000 RBP: 0000000000000685 R08: ffff8e9ec6570000 R09: 0000000000000000 R10: ffff8e9ecd2ca000 R11: ffff8e9f22a217c0 R12: 0000000038010119 R13: 0000000080843801 R14: ffff8e9ec6570000 R15: ffff8e9ecb652000 FS: 0000000000000000(0000) GS:ffff8e9f22a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000400 CR3: 000000000d2ea000 CR4: 00000000000006f0 Call Trace: ? __die_body.cold+0x19/0x27 ? page_fault_oops+0x15a/0x2f0 ? search_module_extables+0x19/0x60 ? search_bpf_extables+0x5f/0x80 ? exc_page_fault+0x7e/0x180 ? asm_exc_page_fault+0x26/0x30 ? mt792x_rx_get_wcid+0x48/0x140 [mt792x_lib] mt7921_queue_rx_skb+0x1c6/0xaa0 [mt7921_common] mt76u_alloc_queues+0x784/0x810 [mt76_usb] ? __pfx___mt76_worker_fn+0x10/0x10 [mt76] __mt76_worker_fn+0x4f/0x80 [mt76] kthread+0xd2/0x100 ? __pfx_kthread+0x10/0x10 ret_from_fork+0x34/0x50 ? __pfx_kthread+0x10/0x10 ret_from_fork_asm+0x1a/0x30 ---[ end trace 0000000000000000 ]--- The Linux kernel CVE team has assigned CVE-2025-22032 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12.13 with commit 3fe7acc6f4b42ccb1056c5847f18f8eb2fec0834 and fixed in 6.12.23 with commit 0cfea60966e4b1239d20bebf02258295e189e82a Issue introduced in 6.13.2 with commit c9e40880416791287292046917e84bcb3a17e2d2 and fixed in 6.13.11 with commit effec50381991bc067acf4b3351a57831c74d27f Issue introduced in 6.14 with commit 90c10286b176421068b136da51ed83059a68e322 and fixed in 6.14.2 with commit 5a57f8eb2a17d469d65cd1186cea26b798221d4a Issue introduced in 6.14 with commit 90c10286b176421068b136da51ed83059a68e322 and fixed in 6.15-rc1 with commit adc3fd2a2277b7cc0b61692463771bf9bd298036 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2025-22032 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/net/wireless/mediatek/mt76/mt7921/main.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/0cfea60966e4b1239d20bebf02258295e189e82a https://git.kernel.org/stable/c/effec50381991bc067acf4b3351a57831c74d27f https://git.kernel.org/stable/c/5a57f8eb2a17d469d65cd1186cea26b798221d4a https://git.kernel.org/stable/c/adc3fd2a2277b7cc0b61692463771bf9bd298036