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 C2DBC26E6F6 for ; Sat, 4 Oct 2025 15:19:00 +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=1759591140; cv=none; b=Qr2QtD/V91IR//vaaMLIhsuku+5EKr0qA1m/53BMEycFnyjgxiyfnaC4Zn+PN+qZWbLGa2IWkHLr2pIRvlmLRJhkXE1VgbKXCDncoTXKjE5zcD5eWSN+P5DhtG4uvkfR93LB0u+DzulQRJvGnfkM1HlCVdZFKHMOvigtaC74ta8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759591140; c=relaxed/simple; bh=WfULZ5B9o8LqXMumYlkNftMZGHWuhc1nX/Ic4ABddTw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=enOvZBGjGK5uPJdV/cJUFiuEtFbqCaF3sLR0NGM5XAn1KkHbK4ZlKIKSHcXyOd2q4ErDWVhNgUf2j9w6lch0r9O3o/8VJnZQb0XyVQ2pL3jPGNGx2OsC3y38b7uVdPBs3nFAyoa2H5+czVMMYfwFtWtPWt8InJKD9wu8sEoVPek= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lpFXLy1s; 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="lpFXLy1s" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D919C4CEF1; Sat, 4 Oct 2025 15:18:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759591140; bh=WfULZ5B9o8LqXMumYlkNftMZGHWuhc1nX/Ic4ABddTw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=lpFXLy1srvH/zeKhM9CSGCD/fXGYCu+MFMocznbugqBRRW+TkIn+5YqNCCHqsVbmy S3hULX1k0EUdn4TClp+FGwBTUKvbOVSKgB/6prZz3RFZ6q8cal/4Q0TZSWsKB8Gs1O ATLCeMynUz3ERnnSWCy7CKXgbA7AkjHaKBQJ8ct4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53565: wifi: brcmfmac: Check for probe() id argument being NULL Date: Sat, 4 Oct 2025 17:17:19 +0200 Message-ID: <2025100451-CVE-2023-53565-a882@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=3140; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=u3cQ7weY2LGEFrERuVY4jLMbrm4nCNg1yrSHhvBdVhw=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkPrZKLJL4lLl1ztP7nom13fx5yLVy/0nqi19r2+tnXa /6GNi227IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJNGxjmF+9fkrRmwvqD9dW nDKVDl+tqctT+ZZhwcFs9uUsAeFLT31/qcHbZTfdWjxTCAA= 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: brcmfmac: Check for probe() id argument being NULL The probe() id argument may be NULL in 2 scenarios: 1. brcmf_pcie_pm_leave_D3() calling brcmf_pcie_probe() to reprobe the device. 2. If a user tries to manually bind the driver from sysfs then the sdio / pcie / usb probe() function gets called with NULL as id argument. 1. Is being hit by users causing the following oops on resume and causing wifi to stop working: BUG: kernel NULL pointer dereference, address: 0000000000000018 Hardware name: Dell Inc. XPS 13 9350/0PWNCR, BIDS 1.13.0 02/10/2020 Workgueue: events_unbound async_run_entry_fn RIP: 0010:brcmf_pcie_probe+Ox16b/0x7a0 [brcmfmac] Call Trace: brcmf_pcie_pm_leave_D3+0xc5/8x1a0 [brcmfmac be3b4cefca451e190fa35be8f00db1bbec293887] ? pci_pm_resume+0x5b/0xf0 ? pci_legacy_resume+0x80/0x80 dpm_run_callback+0x47/0x150 device_resume+0xa2/0x1f0 async_resume+0x1d/0x30 Fix this by checking for id being NULL. In the PCI and USB cases try a manual lookup of the id so that manually binding the driver through sysfs and more importantly brcmf_pcie_probe() on resume will work. For the SDIO case there is no helper to do a manual sdio_device_id lookup, so just directly error out on a NULL id there. The Linux kernel CVE team has assigned CVE-2023-53565 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit da6d9c8ecd00e20218461007948f2b0a8e7fa242 and fixed in 6.3.4 with commit 84766e77a5c35e2b60e34f570c62fc97adc05e09 Issue introduced in 6.2 with commit da6d9c8ecd00e20218461007948f2b0a8e7fa242 and fixed in 6.4 with commit 60fc756fc8e6954a5618eecac73b255d651602e4 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-53565 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/broadcom/brcm80211/brcmfmac/bcmsdh.c drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.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/84766e77a5c35e2b60e34f570c62fc97adc05e09 https://git.kernel.org/stable/c/60fc756fc8e6954a5618eecac73b255d651602e4