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 BE3B2259CA7 for ; Fri, 2 May 2025 15:58:08 +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=1746201488; cv=none; b=mJY10dD+GU6HOm8sLKu9wqe+O6F42ggPY82Rfi7vgOgf+erb6+d3n/PkH5YlUKvExy5j/JDRjAtFmXA21nac4LR67TgNGByr/Imkt2YwXwjrWBzhCrt2DMpynHtuGOTCc/U2r3oh0v3YnccmatKL9iZ+SvGK86Vvyohy1tF1r58= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746201488; c=relaxed/simple; bh=oBht7Y/efc9nV6d/R0rq+0etNtIfjiHqMHWIRwFhmJs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bgaP9t7mcGfDYrrW5UMamGe8A9CNkl18PZ6pfdsGeh8q+Sb+w4S5zFmLreIYlTOs/Bgw19OPhij0Dcs/SBgrXOGjNg/tumas2YZK4gYRgZlWwv8/rgyxUUnF3+Z+F1aZSzBvUdLYX9ur5cpJSOyD8Wuw2blkI2i2l+naQ4w2ULo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zcPCnsm1; 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="zcPCnsm1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 192E6C4CEE4; Fri, 2 May 2025 15:58:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746201488; bh=oBht7Y/efc9nV6d/R0rq+0etNtIfjiHqMHWIRwFhmJs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=zcPCnsm1PZ54L8RI9kEwRosapncf6T7tkkKFaeapiy94AdrW8Z8uZTtekfp9DUY3C 8aCNnDkLq3SH5eOsBDSPy/jg3cFk4d4rndplngtKeAB11ImEoC+WCcK9oCOQvFyqz8 R8IZh/sR/Y6X8WLwFtyCSb5yWGl0ybUrOBHNMUv4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53071: wifi: mt76: do not run mt76_unregister_device() on unregistered hw Date: Fri, 2 May 2025 17:55:36 +0200 Message-ID: <2025050213-CVE-2023-53071-8d91@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=2400; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=dAA6TemRomyn0PIPgJ8osheiwR2D2w3MVDSDV0jKsLQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkirx4yvXv7awtfdm/13wmPhPye7P3lqPZ4QSfXlJzGk FKPqJ99HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARzViGBX3+2QX759xazXF/ afSe7g8TLxyc/5FhwULuyFjt7tmcswsT+OYUTqgLOJX9CgA= 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: wifi: mt76: do not run mt76_unregister_device() on unregistered hw Trying to probe a mt7921e pci card without firmware results in a successful probe where ieee80211_register_hw hasn't been called. When removing the driver, ieee802111_unregister_hw is called unconditionally leading to a kernel NULL pointer dereference. Fix the issue running mt76_unregister_device routine just for registered hw. The Linux kernel CVE team has assigned CVE-2023-53071 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit 1c71e03afe4b457a15e50de40006b927dfc00755 and fixed in 6.1.113 with commit dffe86df26aee01a5fc56a175b7a7f157961e370 Issue introduced in 5.18 with commit 1c71e03afe4b457a15e50de40006b927dfc00755 and fixed in 6.2.9 with commit 2d34f27714c97a9786a30b3bb54944d6d8ed612f Issue introduced in 5.18 with commit 1c71e03afe4b457a15e50de40006b927dfc00755 and fixed in 6.3 with commit 41130c32f3a18fcc930316da17f3a5f3bc326aa1 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-53071 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/mac80211.c drivers/net/wireless/mediatek/mt76/mt76.h 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/dffe86df26aee01a5fc56a175b7a7f157961e370 https://git.kernel.org/stable/c/2d34f27714c97a9786a30b3bb54944d6d8ed612f https://git.kernel.org/stable/c/41130c32f3a18fcc930316da17f3a5f3bc326aa1