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 320D326AC1 for ; Tue, 21 May 2024 15:34:06 +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=1716305647; cv=none; b=AfRCfw8CsI6nVFZbcxA6nvXKss7luQgctuJhQFxtWH1qEfCs5JcasbZgcOYlK2TeJmGQURK19moACc/lsQGBVNsN/70XNtOTZQUtRYFpCqx/E15y3vvQm9i1QydJByJUYDuzZpp9QiiTn2x2pw1Quo2KPMrJIE1EEQmP09wF+44= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305647; c=relaxed/simple; bh=CTz5ZMafbw8izzPZOFzllUhQJ3Kcw36tgUs0nvqybys=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=az65jcFhzbyG4nyP6voF2xX16sKrqeU3T2CnKjVglkpj0J0OLcI8IqUU38KMRswUrlR4W+WDcjSeM2wAxwkjUB9qiMcagoX8+Y6RdJPi/522DLh55Ye1q69QLXh+5Pi/WwHTaCW309zw62wX/zgCtrTUK2IxhJBcdrJpe7qTG/w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PwgR87pN; 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="PwgR87pN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6CE26C4AF08; Tue, 21 May 2024 15:34:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305646; bh=CTz5ZMafbw8izzPZOFzllUhQJ3Kcw36tgUs0nvqybys=; h=From:To:Cc:Subject:Date:Reply-to:From; b=PwgR87pN7bdow93PPjBWWvyfH1VZOhNm9rnSFfhmlbtz1zDItQwY7s5cFzH9rsbqZ fAyv2+dKG/18aHfQNJ9YHyywAzwZXBERi1MFoaHWG/+X6XPMiukPs7AFuldN7cNwr4 RPA10Y6FMzfMMIFKlvg34F5lBE9VBYgHUEmwxY9I= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52758: i2c: dev: copy userspace array safely Date: Tue, 21 May 2024 17:30:54 +0200 Message-ID: <2024052146-CVE-2023-52758-9b23@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=2050; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=CTz5ZMafbw8izzPZOFzllUhQJ3Kcw36tgUs0nvqybys=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk++9TsT715cehy3vwHKzcL6q3Q3tD/fv7z+yZPZnxYb 74i+Z5qT0csC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMJOw3w4JjYcrFfZYPHy2f c+TmOsdPcyxOvnNjmB/htyiys5BJ7KYud116i8bvCu5mFwA= 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: i2c: dev: copy userspace array safely i2c-dev.c utilizes memdup_user() to copy a userspace array. This is done without an overflow check. Use the new wrapper memdup_array_user() to copy the array more safely. The Linux kernel CVE team has assigned CVE-2023-52758 to this issue. Affected and fixed versions =========================== Fixed in 5.15.140 with commit 38ada2f304f6 Fixed in 6.1.64 with commit aff8be2cad74 Fixed in 6.5.13 with commit fe4eb2157d8c Fixed in 6.6.3 with commit bef76b854493 Fixed in 6.7 with commit cc9c54232f04 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-52758 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/i2c/i2c-dev.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/38ada2f304f6f2065dd59613ef236a26f4dd73cd https://git.kernel.org/stable/c/aff8be2cad74a22525cd89cdff0b72a5c9a4c0c6 https://git.kernel.org/stable/c/fe4eb2157d8c45b127bd88b1376c38c27b741293 https://git.kernel.org/stable/c/bef76b8544939518dafa3325bcd438b111136437 https://git.kernel.org/stable/c/cc9c54232f04aef3a5d7f64a0ece7df00f1aaa3d