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 649BC2B9A9 for ; Tue, 20 May 2025 17:18:54 +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=1747761535; cv=none; b=IepQiVBBehNNJuP4ggkeFoLuXIQQy8x/PCSNfnI5maYIjlIoL4LwATy3TUwjLHcVuI0hU8jDpP7yQu4O7Aut2j2c8ZvQ8XudJIqXh1Ud0NNnw6hvF/mnxO8My+06qaNETytVCzLZa6fzUB4MkHoDf4XGJuCz5CkDuHPOCxwwRF0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747761535; c=relaxed/simple; bh=i34aG/fdrF8A07QWSAjh2+yzcppjIlTJ+8AboxTqhJE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=J/xYthHRzFadzV7B+Iuv5YBRT2rDgmQ8988mIfekfFpScp/ibZuv821Cbq0vhjIU+z7rqdWdQHYBQf1rjVG6rf7pfZa5yLHEfGa7WvEbKmLaWHWmtToKx7v+C9rLiNHWnRe5g3EpxMoaa8F9pWYL9P/3kGwLB8sLtLFO7Nq87uo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rhlhWSLO; 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="rhlhWSLO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82257C4CEE9; Tue, 20 May 2025 17:18:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747761534; bh=i34aG/fdrF8A07QWSAjh2+yzcppjIlTJ+8AboxTqhJE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=rhlhWSLO2dy5wRKP/rrRIER8aoRSLYqMNQX5q7va26/pAKEFP1D4i8MXA8wQLVKsz 8XA3BvrQiUoSIRJEG2QosqsG7KIM21GrmY8YlToMYNqmvwWSu93cmWa6/GuYRh7WFb nJ6KKy4J5XW+Mx+ptymBItiinp2vuF2csBFQeLz8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37990: wifi: brcm80211: fmac: Add error handling for brcmf_usb_dl_writeimage() Date: Tue, 20 May 2025 19:17:01 +0200 Message-ID: <2025052000-CVE-2025-37990-62bd@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=3252; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jgkI5iIxsz6JFuXRJ5lOLt+raUl6AtuCibEdMK6akiA=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk6O3m6TuR85Q/0Dbo5zSrokUxr9TYh07y/HFfPfVpSw CE980pVRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEwkl4VhwbmjCbu2dR+U+LRP wHLKA/Pkn2JLvRnmO+67Nbdo+mfPO6+e/VGyECqY8j58IQA= 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: brcm80211: fmac: Add error handling for brcmf_usb_dl_writeimage() The function brcmf_usb_dl_writeimage() calls the function brcmf_usb_dl_cmd() but dose not check its return value. The 'state.state' and the 'state.bytes' are uninitialized if the function brcmf_usb_dl_cmd() fails. It is dangerous to use uninitialized variables in the conditions. Add error handling for brcmf_usb_dl_cmd() to jump to error handling path if the brcmf_usb_dl_cmd() fails and the 'state.state' and the 'state.bytes' are uninitialized. Improve the error message to report more detailed error information. The Linux kernel CVE team has assigned CVE-2025-37990 to this issue. Affected and fixed versions =========================== Issue introduced in 3.4 with commit 71bb244ba2fd5390eefe4ee9054abdb3f8b05922 and fixed in 5.15.182 with commit 508be7c001437bacad7b9a43f08a723887bcd1ea Issue introduced in 3.4 with commit 71bb244ba2fd5390eefe4ee9054abdb3f8b05922 and fixed in 6.1.138 with commit 524b70441baba453b193c418e3142bd31059cc1f Issue introduced in 3.4 with commit 71bb244ba2fd5390eefe4ee9054abdb3f8b05922 and fixed in 6.6.90 with commit 08424a0922fb9e32a19b09d852ee87fb6c497538 Issue introduced in 3.4 with commit 71bb244ba2fd5390eefe4ee9054abdb3f8b05922 and fixed in 6.12.28 with commit bdb435ef9815b1ae28eefffa01c6959d0fcf1fa7 Issue introduced in 3.4 with commit 71bb244ba2fd5390eefe4ee9054abdb3f8b05922 and fixed in 6.14.6 with commit fa9b9f02212574ee1867fbefb0a675362a71b31d Issue introduced in 3.4 with commit 71bb244ba2fd5390eefe4ee9054abdb3f8b05922 and fixed in 6.15-rc5 with commit 8e089e7b585d95122c8122d732d1d5ef8f879396 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-37990 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/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/508be7c001437bacad7b9a43f08a723887bcd1ea https://git.kernel.org/stable/c/524b70441baba453b193c418e3142bd31059cc1f https://git.kernel.org/stable/c/08424a0922fb9e32a19b09d852ee87fb6c497538 https://git.kernel.org/stable/c/bdb435ef9815b1ae28eefffa01c6959d0fcf1fa7 https://git.kernel.org/stable/c/fa9b9f02212574ee1867fbefb0a675362a71b31d https://git.kernel.org/stable/c/8e089e7b585d95122c8122d732d1d5ef8f879396