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 3A03414C59C for ; Fri, 27 Dec 2024 14:12:20 +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=1735308740; cv=none; b=XBK0cquKH2uIhGhg8iMhaOGFd5Nd02IPbzL0avGnSEUiigHvwGnnRxek3igIHDuHPMUsLdNRRwfMikOOem7TnRTZ+dNzcQisx+bwsX/D2jiCylkzLqkryyjMdGtKz/plhdSghTMOJzmCTXkE2QpNLl9LZJ+z1ax8mKmDz4KZ1Lo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735308740; c=relaxed/simple; bh=XAZZROw0H7DGaq20Wuw5qbBBJYyFuhaj/xuyOyW1rUc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qaliZzswx05nVWZ6BFUIJLN3QzgVjmKqKULaAbl538M+sFfhzbISqF1mkzFyqnCU/96aKYAaYcswyN4dL7yVLX9SeOADMxq0KAaJPNi3Fblj5KlwhB2paqVOC9ODkHpT2dYkAX3NfREnev3AzfmjdHV70gZyg3OlZUmTdrCn4HY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=veHU+kD1; 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="veHU+kD1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9DB18C4CED0; Fri, 27 Dec 2024 14:12:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735308740; bh=XAZZROw0H7DGaq20Wuw5qbBBJYyFuhaj/xuyOyW1rUc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=veHU+kD1LEbKesvw595NS8rhYy5bVEo2h9zYO02/knSX99OFBVXgRb2Y7R7+Ff8LJ HRTpnsdCrHxoZPvKPgpkW9INF4T70sfrveWfo+NXePyNyPjZ3amD04bGmG9dizhX85 BMaS00kaAzvj8jHFDhb7zqclDeACQPzrRN0whxSg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56535: wifi: rtw89: coex: check NULL return of kmalloc in btc_fw_set_monreg() Date: Fri, 27 Dec 2024 15:11:26 +0100 Message-ID: <2024122725-CVE-2024-56535-4683@gregkh> X-Mailer: git-send-email 2.47.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=2172; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=XAZZROw0H7DGaq20Wuw5qbBBJYyFuhaj/xuyOyW1rUc=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5W3vfKbVe/+6dpcUsuz88PG957fKmO9PMFkeEm3e4v Lr+8+aijlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZgIgxHDXJFLotabWGQU607I T42bs1p9RscDJob5Ne+Yp4caz+95XBkf3Tlhaeav1cqVAA== 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: wifi: rtw89: coex: check NULL return of kmalloc in btc_fw_set_monreg() kmalloc may fail, return value might be NULL and will cause NULL pointer dereference. Add check NULL return of kmalloc in btc_fw_set_monreg(). The Linux kernel CVE team has assigned CVE-2024-56535 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit b952cb0a6e2d2e6942de3f8c6a1bd985815b9550 and fixed in 6.11.11 with commit 051577414271961f3f4c3bff87b427924b486219 Issue introduced in 6.10 with commit b952cb0a6e2d2e6942de3f8c6a1bd985815b9550 and fixed in 6.12.2 with commit 64db1a42d98307001a48cec1b3e68ce9f905e73d Issue introduced in 6.10 with commit b952cb0a6e2d2e6942de3f8c6a1bd985815b9550 and fixed in 6.13-rc1 with commit 81df5ed446b448bdc327b7c7f0b50121fc1f4aa2 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-56535 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/realtek/rtw89/coex.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/051577414271961f3f4c3bff87b427924b486219 https://git.kernel.org/stable/c/64db1a42d98307001a48cec1b3e68ce9f905e73d https://git.kernel.org/stable/c/81df5ed446b448bdc327b7c7f0b50121fc1f4aa2