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 B310154670 for ; Thu, 27 Feb 2025 02:08:36 +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=1740622116; cv=none; b=V8+aCKSRfULz5GC65UL+2bYCAEO+eoTYrTYQEIDGHKf4oS4+eErEXAJnrnhK+ClDXysq4+pJ39MJs1B1QXWaChq5NEpyaq1f0+qVN1duxlpM8AZYrdy9PGL8owVrTVR3INiI8SoueUwMnVUUF/CHorPphGgciPLdiCTVYp3L0Js= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622116; c=relaxed/simple; bh=q5sXvmKNns74pNyao9AJ83vywkwNHkkk0t98Ofd3pCY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Fz8l6JIJYCchkjaMGjG7o/or6ZsLVssBy2jB9zR1m1u4mgMHkvzXWowYBWci5zplr6z12Mtcv36XygRt1EpnwQp30Kvrvp2P37MOJT4SDadYu6FCUWyOjFyq6vZjpEZCwS5I+CGVU9EQN5+JdNhh16VEjvSW4QJfa7qcUIUDBkg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0dXAbuiX; 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="0dXAbuiX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D2DFC4CEE9; Thu, 27 Feb 2025 02:08:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740622116; bh=q5sXvmKNns74pNyao9AJ83vywkwNHkkk0t98Ofd3pCY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=0dXAbuiXoSU/CiXLzWjlxM7OExZDbiq0N9lF/l5V7P/xc2idvu7s7ZwMW6W5WOMxs 5pOEonT2iUNpLjYMJKGcQ4R1YoxhAmlwVWhzrKKasUXHaOYiwb7YAiY6t0jRentF0h RYyjpqY1oZGWXEeen/nyVGa+UoIzsDnYI8PvTDGw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-57988: Bluetooth: btbcm: Fix NULL deref in btbcm_get_board_name() Date: Wed, 26 Feb 2025 18:05:47 -0800 Message-ID: <2025022637-CVE-2024-57988-db3b@gregkh> X-Mailer: git-send-email 2.48.1 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=2208; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=q5sXvmKNns74pNyao9AJ83vywkwNHkkk0t98Ofd3pCY=; b=kA0DAAIRMUfUDdst+ykByyZiAGe/yHGglEzNWML11qI4UcDuyzGJ7hAMWwNKiU90tbd7UPBuU YhdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAme/yHEACgkQMUfUDdst+yk7MQCdFieh 2/xbmvnCdVGXSD1etiubW+wAoKiLdcZJ+UREO7wXFekSMsFXE496 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: Bluetooth: btbcm: Fix NULL deref in btbcm_get_board_name() devm_kstrdup() can return a NULL pointer on failure,but this returned value in btbcm_get_board_name() is not checked. Add NULL check in btbcm_get_board_name(), to handle kernel NULL pointer dereference error. The Linux kernel CVE team has assigned CVE-2024-57988 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit f9183eaad91521ba1c04a19e5606ae61560a735e and fixed in 6.12.13 with commit df2f2d9199e61819cca5da0121dfa4d4cb57000f Issue introduced in 6.9 with commit f9183eaad91521ba1c04a19e5606ae61560a735e and fixed in 6.13.2 with commit 74af8b9d0e79deefd2d43e14b84575839a849169 Issue introduced in 6.9 with commit f9183eaad91521ba1c04a19e5606ae61560a735e and fixed in 6.14-rc1 with commit b88655bc6593c6a7fdc1248b212d17e581c4334e 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-2024-57988 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/bluetooth/btbcm.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/df2f2d9199e61819cca5da0121dfa4d4cb57000f https://git.kernel.org/stable/c/74af8b9d0e79deefd2d43e14b84575839a849169 https://git.kernel.org/stable/c/b88655bc6593c6a7fdc1248b212d17e581c4334e