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 021CC446B4 for ; Tue, 21 May 2024 15:37:04 +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=1716305825; cv=none; b=FG03n6STqwHxuFZ5Wadq1dyTkzebrzbSj1MZ8LiyBAXX6V3DKVOt/+j1ERigwxTjKqT7qruQ7ohGc3IkBBBYlzr2PhU1xk18euUUIqh1YO0z6bzP7YMvOYQ1DPARDmZDF46OShkVmt4hLdEY0vdKkVSWX48qVTOeDlr2UfW1JmY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305825; c=relaxed/simple; bh=E08YXJiMkFNTaji3ZWS5C2Z5x4R2SfCYu4xCkHS+KDs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=It1nsqodegaAHcmR25ThVac3bULp+1PsFYV8QAh2vDV9kWxGC+9hlsJEn3e/s39V1lFrR/+HPsp069i4fIVesyKQPZSAfId2Gg41hBM3jBUsBabEB6e+ICK68oeZaCSD9/TTfVI5SzF6YrXMWUXHp8hb3EudrHhEYPs7eTDteC8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=II8TogR+; 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="II8TogR+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82021C4AF08; Tue, 21 May 2024 15:37:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305824; bh=E08YXJiMkFNTaji3ZWS5C2Z5x4R2SfCYu4xCkHS+KDs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=II8TogR+2QqF9FJFLc4/0rMk4f3Q9KvQ1Jo54EMoFAIYifT+cV2v19dMxqUbQZNdq pd8mPXiZeGoCjfu7czomgRdzECqJkLeMvFMjeBTKGRLTJvWSwnxAEdKhcVo8TnKW1o aXqr1ZidI2qF8tZm7Kc7NLsO3mSk+iYATYbJojsc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52820: drm_lease.c: copy user-array safely Date: Tue, 21 May 2024 17:31:56 +0200 Message-ID: <2024052105-CVE-2023-52820-1d6d@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=1932; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=E08YXJiMkFNTaji3ZWS5C2Z5x4R2SfCYu4xCkHS+KDs=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk++yynrdwcVcX753SjNcfkbcJbFN6sY3IUYFobeeS5o CT3LUXxjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjILz6GBev7905YtEHpePft 6V80nZ8tXMwbGM4wTzU0wPhfmFxhGt8ct2ucUpqHLzjeAQA= 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: drm_lease.c: copy user-array safely Currently, there is no overflow-check with memdup_user(). Use the new function memdup_array_user() instead of memdup_user() for duplicating the user-space array safely. The Linux kernel CVE team has assigned CVE-2023-52820 to this issue. Affected and fixed versions =========================== Fixed in 6.1.64 with commit 0f5f56745188 Fixed in 6.5.13 with commit 301e597e7b81 Fixed in 6.6.3 with commit ea42bc330723 Fixed in 6.7 with commit f37d63e219c3 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-52820 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/gpu/drm/drm_lease.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/0f5f56745188b06f13509e5054231cb7a4cb047d https://git.kernel.org/stable/c/301e597e7b81efa307dd0969ff8f2af9d7b9064e https://git.kernel.org/stable/c/ea42bc330723644a0bd01d7124a601ab60b27747 https://git.kernel.org/stable/c/f37d63e219c39199a59b8b8a211412ff27192830