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 7262814264C for ; Tue, 21 May 2024 14:40:09 +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=1716302409; cv=none; b=ql6mb6G+RsbNLHZ0/Wt3qaj0upVZZ/RIhEy73A5ybnGTuJbvbp9avCMBf5JRR/PpUDPhg4cp1esDj9ZB7rbO4ndvDttclBhPmvbZycS90Eu1rkQkXWSAe9qhi9Y1MreneXtaCtEYVn1prqNLHefeciuDtkAlckzrUFi6tmo30iA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716302409; c=relaxed/simple; bh=n2+r0yJPWEtKjeEmZVMZI3kOtZMTsLWJwN/ea/SdDzU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NwJuVk+YqsAKumpWwyl1vTZ5UmvC9d98L9Pq6/ihq8wScEMJrjdP8hiRoZG818F+H/6812Nv9MZxSd+a7PzNPwpuiA4XTpsVzKV2VKFm/rfOAzkafnASorqBhpf9APNwTYu9AY2XL4+h1S5E8tyO1tciKFnH9G3MG79yrpPGsd8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2S/bZ1Qy; 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="2S/bZ1Qy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F0C73C2BD11; Tue, 21 May 2024 14:40:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716302409; bh=n2+r0yJPWEtKjeEmZVMZI3kOtZMTsLWJwN/ea/SdDzU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=2S/bZ1QyNlUNO2mEfDjiR5CvyKhnp4gaMevA1QjOWMxvEd1uk55rDZQSggMR/JrE6 5UUr1kzRoTY6sHWEHfg5nt7M/coyrLwIs+eGeuEELYcv0jlyTG1xioJPCX+/QHtmuN BsN7K0o/YgJWntJS+0yOSB1rwaJ4bnAB3E2uxLSo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47347: wl1251: Fix possible buffer overflow in wl1251_cmd_scan Date: Tue, 21 May 2024 16:36:21 +0200 Message-ID: <2024052139-CVE-2021-47347-82e1@gregkh> X-Mailer: git-send-email 2.45.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=2523; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=n2+r0yJPWEtKjeEmZVMZI3kOtZMTsLWJwN/ea/SdDzU=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+G60T7umeP31IZ7Z53DWO20mLVN0flIczalRNbTiv4 fHrt8emjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhI9GWGBdtvblxyWu+9+uml 5ja/RZ95yt5yfsIwV9QzYqZL7/6SlIK3G32lFq42OKnQAQA= 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: wl1251: Fix possible buffer overflow in wl1251_cmd_scan Function wl1251_cmd_scan calls memcpy without checking the length. Harden by checking the length is within the maximum allowed size. The Linux kernel CVE team has assigned CVE-2021-47347 to this issue. Affected and fixed versions =========================== Fixed in 4.4.276 with commit 57ad99ae3c67 Fixed in 4.9.276 with commit d3d8b9c9c784 Fixed in 4.14.240 with commit 0f6c0488368c Fixed in 4.19.198 with commit 115103f6e3f1 Fixed in 5.4.133 with commit d71dddeb5380 Fixed in 5.10.51 with commit c5e4a10d7bd5 Fixed in 5.12.18 with commit 302e2ee34c5f Fixed in 5.13.3 with commit 40af3960a153 Fixed in 5.14 with commit d10a87a3535c 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-2021-47347 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/ti/wl1251/cmd.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/57ad99ae3c6738ba87bad259bb57c641ca68ebf6 https://git.kernel.org/stable/c/d3d8b9c9c7843dce31e284927d4c9904fd5a510a https://git.kernel.org/stable/c/0f6c0488368c9ac1aa685821916fadba32f5d1ef https://git.kernel.org/stable/c/115103f6e3f1c26c473766c16439c7c8b235529a https://git.kernel.org/stable/c/d71dddeb5380613f9ef199f3e7368fd78fb1a46e https://git.kernel.org/stable/c/c5e4a10d7bd5d4f419d8b9705dff60cf69b302a1 https://git.kernel.org/stable/c/302e2ee34c5f7c5d805b7f835d9a6f2b43474e2a https://git.kernel.org/stable/c/40af3960a15339e8bbd3be50c3bc7b35e1a0b6ea https://git.kernel.org/stable/c/d10a87a3535cce2b890897914f5d0d83df669c63