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 9F4A7145322 for ; Tue, 21 May 2024 15:34:38 +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=1716305678; cv=none; b=sGts1YnbGNYRE1T4A80qMqssVVrFaDfAcPXE3YJehMjD62AFQXILBz2B2DM8bH6RZXIeKJ3yGA8fEOhd/sYTlzO9BfT0OUy1y0VRWFV/4elKXyvBZwvX1AZbWFCNECNEcVCXca6Zz88N9vHCbJjYWEBKzRRd9Ul4uUCbFCHbsC8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305678; c=relaxed/simple; bh=Xe9G2ZKRHb5N6mmu0rRDTQydD3jTFjjQwb6M/9w+YVk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=m6dFSWVJvEiLtPfgigLYk7C9QQueRSRMmPo+6fjgXoGVqFXRu3dhrVC69MxABVekFKRsltOqRiqCdlPIs4tCjNBrJ7pLiI6lDF5yNGCWzxqHrNR4XXNcTGxca41l8wR6pxZUyw6+saQj8kBawqy9IECiq6cvHJkmjnsr7Ua4yks= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ebhvNQJl; 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="ebhvNQJl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2959DC32786; Tue, 21 May 2024 15:34:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305678; bh=Xe9G2ZKRHb5N6mmu0rRDTQydD3jTFjjQwb6M/9w+YVk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ebhvNQJlva9ebwBQDJY0Bpg5yBnY7ttjaaGkj/TfaziJRSy639ch2KKifqfG7GaP1 dUuj2zg+mFJinsXJVR9+zGhyTFid05C0eQAz9faBmbt27ES81CIElu7jNgmcf50sQ5 EmkR2hT6Mw5lRvpR7liDCf75NAu1Zd/bmeJvzNV0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52768: wifi: wilc1000: use vmm_table as array in wilc struct Date: Tue, 21 May 2024 17:31:04 +0200 Message-ID: <2024052149-CVE-2023-52768-68fc@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=2720; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Xe9G2ZKRHb5N6mmu0rRDTQydD3jTFjjQwb6M/9w+YVk=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk++zTdzLXu8dnUPDhj213F2u9ktu6P/J/etmiVzXz/d l0z2/yzI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaiY8ewYMui3JDV70PSJgQ5 5+f28M5RjOs6yDDPKu1B9aO7+Y5/xDbXrr75a6WNqbQtAA== 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: wilc1000: use vmm_table as array in wilc struct Enabling KASAN and running some iperf tests raises some memory issues with vmm_table: BUG: KASAN: slab-out-of-bounds in wilc_wlan_handle_txq+0x6ac/0xdb4 Write of size 4 at addr c3a61540 by task wlan0-tx/95 KASAN detects that we are writing data beyond range allocated to vmm_table. There is indeed a mismatch between the size passed to allocator in wilc_wlan_init, and the range of possible indexes used later: allocation size is missing a multiplication by sizeof(u32) The Linux kernel CVE team has assigned CVE-2023-52768 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15.68 with commit 32dd0b22a5ba and fixed in 5.15.140 with commit 541b3757fd44 Issue introduced in 6.0 with commit 40b717bfcefa and fixed in 6.1.64 with commit 4b0d6ddb6466 Issue introduced in 6.0 with commit 40b717bfcefa and fixed in 6.5.13 with commit 6aaf7cd8bdfe Issue introduced in 6.0 with commit 40b717bfcefa and fixed in 6.6.3 with commit 3ce1c2c3999b Issue introduced in 6.0 with commit 40b717bfcefa and fixed in 6.7 with commit 05ac1a198a63 Issue introduced in 5.19.9 with commit 5212d958f651 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-2023-52768 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/microchip/wilc1000/wlan.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/541b3757fd443a68ed8d25968eae511a8275e7c8 https://git.kernel.org/stable/c/4b0d6ddb6466d10df878a7787f175a0e4adc3e27 https://git.kernel.org/stable/c/6aaf7cd8bdfe245d3c9a8b48fe70c2011965948e https://git.kernel.org/stable/c/3ce1c2c3999b232258f7aabab311d47dda75605c https://git.kernel.org/stable/c/05ac1a198a63ad66bf5ae8b7321407c102d40ef3