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 40AD91FAEE4 for ; Mon, 21 Oct 2024 18:54:59 +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=1729536899; cv=none; b=YEL2ffIHsZXPKDLO5mNTCkvtsvYd8MGLu5ZBQj5vmhp21lOSEFmh01pu2us0YrtNEUI5xioI4X2fshP4otQxHeTivBlzyB38Rf+vixPo49mr51IbfrEcZr7juO6emiA8eNfErkacjhOa4tgEplm9ctXmFsgOXQxQ0ZckCUOkxpE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729536899; c=relaxed/simple; bh=8u5NW65eSKHjTMfZoISJTs052OlwvA6Jl4HXALXimyM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IzezuHj7eSp0mDX/tx0ka9L1Yap1zRYHA9hjFsjV9lNMyJr+yQL8sjmba+Vkgd1Hjxc7Qz+n+0rmZ8W5P8CfGwPE3ISvHVofnNc/w97xBADPp5Ym2yDF3rqngyXe4f8+bIuW7jUXQf2itHTl+l0uTJD6KNBRG+cTWsPiqLftahY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zl+9KDcq; 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="zl+9KDcq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B19B9C4CEC3; Mon, 21 Oct 2024 18:54:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729536899; bh=8u5NW65eSKHjTMfZoISJTs052OlwvA6Jl4HXALXimyM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=zl+9KDcq0McD1KI7ItoVr6xwhlC1mk9VrFm02k1foijPcLyZZdPn2IfVG44gk1p6p yle31OOlMzsI4KwW77q+CTxHiwSQAmseWjNuKi+mWKjAtgLLO7rZmBYk+eQhvV72/g id6DJGCDFFA47/WXcMoMWh8PVsO1gl7BHJvfXaGY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50008: wifi: mwifiex: Fix memcpy() field-spanning write warning in mwifiex_cmd_802_11_scan_ext() Date: Mon, 21 Oct 2024 20:54:12 +0200 Message-ID: <2024102109-CVE-2024-50008-0152@gregkh> X-Mailer: git-send-email 2.47.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=2801; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=8u5NW65eSKHjTMfZoISJTs052OlwvA6Jl4HXALXimyM=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliiwNtP+dPbDykNvPAugOJ/9akflz7yKFT6NKJbU9ZX m+de8mWvSOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwBuchbDPFNNpYNeR3QNiouL l6U0/PFSsXB8wjA/Woz101XbDSlOtQ1/TsiyXGLRWLANAA== 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: mwifiex: Fix memcpy() field-spanning write warning in mwifiex_cmd_802_11_scan_ext() Replace one-element array with a flexible-array member in `struct host_cmd_ds_802_11_scan_ext`. With this, fix the following warning: elo 16 17:51:58 surfacebook kernel: ------------[ cut here ]------------ elo 16 17:51:58 surfacebook kernel: memcpy: detected field-spanning write (size 243) of single field "ext_scan->tlv_buffer" at drivers/net/wireless/marvell/mwifiex/scan.c:2239 (size 1) elo 16 17:51:58 surfacebook kernel: WARNING: CPU: 0 PID: 498 at drivers/net/wireless/marvell/mwifiex/scan.c:2239 mwifiex_cmd_802_11_scan_ext+0x83/0x90 [mwifiex] The Linux kernel CVE team has assigned CVE-2024-50008 to this issue. Affected and fixed versions =========================== Fixed in 5.10.227 with commit 1756918f51e9 Fixed in 5.15.168 with commit e59bdb1ba594 Fixed in 6.1.113 with commit 17199b69a847 Fixed in 6.6.55 with commit fef7b51f22cf Fixed in 6.10.14 with commit 71267bd4e8c7 Fixed in 6.11.3 with commit a3a12c30f951 Fixed in 6.12-rc1 with commit 498365e52beb 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-50008 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/marvell/mwifiex/fw.h drivers/net/wireless/marvell/mwifiex/scan.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/1756918f51e9ab247a0f4782cc28853c2bb457c1 https://git.kernel.org/stable/c/e59bdb1ba594104cd0ee0af3ee9e4435d842a8fe https://git.kernel.org/stable/c/17199b69a84798efffc475040fbef44374ef1de1 https://git.kernel.org/stable/c/fef7b51f22cf2049b0ca6740adeb0ba6f2e671dc https://git.kernel.org/stable/c/71267bd4e8c752d7af6c6b96bb83984a6a95273d https://git.kernel.org/stable/c/a3a12c30f9510f3753286fadbc6cdb7dad78c1d5 https://git.kernel.org/stable/c/498365e52bebcbc36a93279fe7e9d6aec8479cee