From mboxrd@z Thu Jan 1 00:00:00 1970 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 50A594D5A5 for ; Mon, 3 Jun 2024 07:50:40 +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=1717401041; cv=none; b=TOUCbzy2Eib7ThNyeao42aPUIMUEJRsEak9C9JcwJHFaq9Bd4ovICHdNHVb54bBs51vNTjHQs8S91ZCylE8fLaFl/m1NsFV+UUmZZhaUywxSdOpke/aZ2fmvBQ7ljx9ifB1Rkl0lig4kTQZ5JY5gdhx/g61ewTYj0MucP4MjYoU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717401041; c=relaxed/simple; bh=4vZpEQ+SEp5Eigu6d86VRju5Ky9CD2IOsI5LU/8aZIE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VcwEZA1TneTx/Tb6Sg1v8u/S061gCrml7xYFzzg9qb5kpeKS+v7eFghRJoDxeM8Eiqe6w9DSqfwlnzoOy6M1hp21PEWiHKuaVITlgsYLfikAVDtuwSFRGPoWrrEHvLrqp0zWvGklzkAxJqMB/RlTM2cVL6cS99Fh/m41Lfd4TYY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rqdNnU9O; 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="rqdNnU9O" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66AADC4AF07; Mon, 3 Jun 2024 07:50:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1717401040; bh=4vZpEQ+SEp5Eigu6d86VRju5Ky9CD2IOsI5LU/8aZIE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=rqdNnU9OQ1TZp0j4Y2F4qknTTRqafEaOSxRuGXpaEOkMq3Gj63CscSc/Mcjv6zXiJ ZPl8Eh+udyG8BMo7GWOe/QsRCV2jFIZLqJxkcEL4Qd2T3T6v55bZvskTU8PKT+Vy3U RluSGlCAnvhVLGgqREdwlKcSiaQGB6KxyreUonvU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-36960: drm/vmwgfx: Fix invalid reads in fence signaled events Date: Mon, 3 Jun 2024 09:50:42 +0200 Message-ID: <2024060341-CVE-2024-36960-d1bf@gregkh> X-Mailer: git-send-email 2.45.2 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=3019; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=4vZpEQ+SEp5Eigu6d86VRju5Ky9CD2IOsI5LU/8aZIE=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmxpRdXGHs7b227/bz15ZS7pcvd/Z7IWUvISxafELwb2 mO+vDmoI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbCcJ9hwaaZvPMyrWP/WN+Z 06dRc+dnWfbhKIYFU0tqRAQK7c+UvjgXojLBQ+fGXZH1AA== 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/vmwgfx: Fix invalid reads in fence signaled events Correctly set the length of the drm_event to the size of the structure that's actually used. The length of the drm_event was set to the parent structure instead of to the drm_vmw_event_fence which is supposed to be read. drm_read uses the length parameter to copy the event to the user space thus resuling in oob reads. The Linux kernel CVE team has assigned CVE-2024-36960 to this issue. Affected and fixed versions =========================== Issue introduced in 3.4 with commit 8b7de6aa8468 and fixed in 4.19.314 with commit 2f527e3efd37 Issue introduced in 3.4 with commit 8b7de6aa8468 and fixed in 5.4.276 with commit cef0962f2d3e Issue introduced in 3.4 with commit 8b7de6aa8468 and fixed in 5.10.217 with commit 3cd682357c61 Issue introduced in 3.4 with commit 8b7de6aa8468 and fixed in 5.15.159 with commit b7bab33c4623 Issue introduced in 3.4 with commit 8b7de6aa8468 and fixed in 6.1.91 with commit 0dbfc73670b3 Issue introduced in 3.4 with commit 8b7de6aa8468 and fixed in 6.6.31 with commit 7b5fd3af4a25 Issue introduced in 3.4 with commit 8b7de6aa8468 and fixed in 6.8.10 with commit deab66596dfa Issue introduced in 3.4 with commit 8b7de6aa8468 and fixed in 6.9 with commit a37ef7613c00 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-36960 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/vmwgfx/vmwgfx_fence.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/2f527e3efd37c7c5e85e8aa86308856b619fa59f https://git.kernel.org/stable/c/cef0962f2d3e5fd0660c8efb72321083a1b531a9 https://git.kernel.org/stable/c/3cd682357c6167f636aec8ac0efaa8ba61144d36 https://git.kernel.org/stable/c/b7bab33c4623c66e3398d5253870d4e88c52dfc0 https://git.kernel.org/stable/c/0dbfc73670b357456196130551e586345ca48e1b https://git.kernel.org/stable/c/7b5fd3af4a250dd0a2a558e07b43478748eb5d22 https://git.kernel.org/stable/c/deab66596dfad14f1c54eeefdb72428340d72a77 https://git.kernel.org/stable/c/a37ef7613c00f2d72c8fc08bd83fb6cc76926c8c