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 F176130DEAD for ; Mon, 15 Sep 2025 14:26:04 +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=1757946365; cv=none; b=gk/HEYu1YbczSpSTyg9/XArtnLBEZ77Ukkej/QMGHLSEC0sv4P9niuobM175/JxCoR4HsF8Ze9Zla+OlfdglWUwb/cdKGXOkKWN6A1LQrRK8jN/ISwfx66HHT1usSm+xqAhLFR35oD7TNKCnoK9XtAsTei4w1BECCzzw+B9u8ok= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757946365; c=relaxed/simple; bh=wz/RFwnJcacKaXu9No7w5YuhYrih9AKXCsOtAHCczTw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eZ46MiPaVgYj54BLSdUVkYTC1bVQkVOUPE6IxQfsBogHHVrM5EumHt1sqLsTCcSjoWV9hJV262LNLO5s9uETWWea7QJEn0xV/9dDEKwTKLNucL/QqgenBMzfvOWQJi1OKd7sIL02YLGS26gy+H70Jip4eW2JYq6HbimiC5GH4N4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KTt5R+jl; 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="KTt5R+jl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B338C4CEF1; Mon, 15 Sep 2025 14:26:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757946364; bh=wz/RFwnJcacKaXu9No7w5YuhYrih9AKXCsOtAHCczTw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=KTt5R+jloQLZmTpOmU4jiLiNpO8RXP0UX7ELtU8kTREwJA6npFHeIH/M4Jr8NqB85 8wEHZabfzOIrQYvlg3CiHo1hu5xY2aQJKc04TQDofoeMeW63AM4iH6R0auCIEO5jJ8 EJrInBEIs3CkgcT0zpXJVPbIgLQ8ECG8BpJl5DEc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53232: mt76: mt7921: fix kernel panic by accessing unallocated eeprom.data Date: Mon, 15 Sep 2025 16:22:06 +0200 Message-ID: <2025091515-CVE-2023-53232-39fa@gregkh> X-Mailer: git-send-email 2.51.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=4324; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=QEnkjkElcd2kySAS6Pm/WOiBlbhnzl0FTYSZ5JxZx50=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknFG7nnHR/nbnxEdf0rItLZlXKHrh5buXcwpNMD+aev 1kUxn33WkcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMpP8aw4Ijrdvnzdlv9L7y 27+zp6d7dZdvPZvBMFcq39Sq5+yJ/Vk35fMkLx/pbdqqsxMA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: mt76: mt7921: fix kernel panic by accessing unallocated eeprom.data The MT7921 driver no longer uses eeprom.data, but the relevant code has not been removed completely since commit 16d98b548365 ("mt76: mt7921: rely on mcu_get_nic_capability"). This could result in potential invalid memory access. To fix the kernel panic issue in mt7921, it is necessary to avoid accessing unallocated eeprom.data which can lead to invalid memory access. Furthermore, it is possible to entirely eliminate the mt7921_mcu_parse_eeprom function and solely depend on mt7921_mcu_parse_response to divide the RxD header. [2.702735] BUG: kernel NULL pointer dereference, address: 0000000000000550 [2.702740] #PF: supervisor write access in kernel mode [2.702741] #PF: error_code(0x0002) - not-present page [2.702743] PGD 0 P4D 0 [2.702747] Oops: 0002 [#1] PREEMPT SMP NOPTI [2.702755] RIP: 0010:mt7921_mcu_parse_response+0x147/0x170 [mt7921_common] [2.702758] RSP: 0018:ffffae7c00fef828 EFLAGS: 00010286 [2.702760] RAX: ffffa367f57be024 RBX: ffffa367cc7bf500 RCX: 0000000000000000 [2.702762] RDX: 0000000000000550 RSI: 0000000000000000 RDI: ffffa367cc7bf500 [2.702763] RBP: ffffae7c00fef840 R08: ffffa367cb167000 R09: 0000000000000005 [2.702764] R10: 0000000000000000 R11: ffffffffc04702e4 R12: ffffa367e8329f40 [2.702766] R13: 0000000000000000 R14: 0000000000000001 R15: ffffa367e8329f40 [2.702768] FS: 000079ee6cf20c40(0000) GS:ffffa36b2f940000(0000) knlGS:0000000000000000 [2.702769] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [2.702775] CR2: 0000000000000550 CR3: 00000001233c6004 CR4: 0000000000770ee0 [2.702776] PKRU: 55555554 [2.702777] Call Trace: [2.702782] mt76_mcu_skb_send_and_get_msg+0xc3/0x11e [mt76 ] [2.702785] mt7921_run_firmware+0x241/0x853 [mt7921_common ] [2.702789] mt7921e_mcu_init+0x2b/0x56 [mt7921e ] [2.702792] mt7921_register_device+0x2eb/0x5a5 [mt7921_common ] [2.702795] ? mt7921_irq_tasklet+0x1d4/0x1d4 [mt7921e ] [2.702797] mt7921_pci_probe+0x2d6/0x319 [mt7921e ] [2.702799] pci_device_probe+0x9f/0x12a The Linux kernel CVE team has assigned CVE-2023-53232 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit 16d98b548365fcd6fc3fe2e1ae73c9e3cc5ee43d and fixed in 6.1.28 with commit 11181b6c8641cd417935b76ea997d0169f2db262 Issue introduced in 5.16 with commit 16d98b548365fcd6fc3fe2e1ae73c9e3cc5ee43d and fixed in 6.2.15 with commit c8ba6780c65f681d217de79e17d63d5d538a239f Issue introduced in 5.16 with commit 16d98b548365fcd6fc3fe2e1ae73c9e3cc5ee43d and fixed in 6.3.2 with commit ec4d97e8eddcfa9f63f2f62adec5fb4f941ba2ef Issue introduced in 5.16 with commit 16d98b548365fcd6fc3fe2e1ae73c9e3cc5ee43d and fixed in 6.4 with commit 12db28c3ef31f719bd18fa186a40bb152e6a527c 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-2023-53232 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/mcu.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/11181b6c8641cd417935b76ea997d0169f2db262 https://git.kernel.org/stable/c/c8ba6780c65f681d217de79e17d63d5d538a239f https://git.kernel.org/stable/c/ec4d97e8eddcfa9f63f2f62adec5fb4f941ba2ef https://git.kernel.org/stable/c/12db28c3ef31f719bd18fa186a40bb152e6a527c