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 5B4FE1B14FE for ; Wed, 14 Aug 2024 14:50:58 +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=1723647058; cv=none; b=hJ9jPMacUJoZfywEToBRWwIPL1ecQBDQ7du8uoc6cuBkmqhO2Bkj43KRYDbrnqzk2F2iJyP7TBLIx3c61JyR7j5PGnmISvs8SLSKRwQ41E6712jjxdnsWcxFQK3Q+9UARIChvWy2pJfDm0crhGcZhElML91hGIqMqO0iPbIVWEM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723647058; c=relaxed/simple; bh=03K9kFg2CYA0WMJsEbLpeydY+MwWD786/BheJzhyHFE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IS662HE3MIYVEKCaR2Gkc0q5hSJ60ZU4MbQtn2b7488Qx1/4F6v+kbXHNVfDQSkPlQdoLJIdPT1O1T4i0taVWjLLevecLIIp9tKFQkmt5ZGvSeAoqBAZ2lvmCCfG5vGJhw227wApMNCAZMQSbv6i3frnUuj57j0p+zO9z9x+MEY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zcRzvjF5; 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="zcRzvjF5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CDCEFC4AF09; Wed, 14 Aug 2024 14:50:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723647058; bh=03K9kFg2CYA0WMJsEbLpeydY+MwWD786/BheJzhyHFE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=zcRzvjF5OMsKNVL2P+kBfA/KEBQkZjMagVPkbuQZE1DKFPEx1+hiTvglqTfkNNNYK 9v2w6clRWqDM0qJM0FBHqK2NXfOkpzxKRQOJj/2AGiLgsfxT/D3PZtvB9grqDvzAge o4wfGUAso8Hp2hRR0P796L3l6Naego8CO/AYUjcI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42259: drm/i915/gem: Fix Virtual Memory mapping boundaries calculation Date: Wed, 14 Aug 2024 16:50:53 +0200 Message-ID: <2024081452-CVE-2024-42259-4cef@gregkh> X-Mailer: git-send-email 2.46.0 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=2473; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=03K9kFg2CYA0WMJsEbLpeydY+MwWD786/BheJzhyHFE=; b=owGbwMvMwCRo6H6F97bub03G02pJDGl7jvgYvrZVupF6Sn/n8ef2r87c07Vhm811XCdnm1INo /GK7D6njlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIlx7DfE/l/0b5lfcCi3T+ 5T96G+F35OH9EIYFa6bunNe7MaRskudvizT1vtdX3yUuBQA= 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/i915/gem: Fix Virtual Memory mapping boundaries calculation Calculating the size of the mapped area as the lesser value between the requested size and the actual size does not consider the partial mapping offset. This can cause page fault access. Fix the calculation of the starting and ending addresses, the total size is now deduced from the difference between the end and start addresses. Additionally, the calculations have been rewritten in a clearer and more understandable form. [Joonas: Add Requires: tag] Requires: 60a2066c5005 ("drm/i915/gem: Adjust vma offset for framebuffer mmap offset") (cherry picked from commit 97b6784753da06d9d40232328efc5c5367e53417) The Linux kernel CVE team has assigned CVE-2024-42259 to this issue. Affected and fixed versions =========================== Issue introduced in 4.9 with commit c58305af1835 and fixed in 6.6.46 with commit 4b09513ce93b Issue introduced in 4.9 with commit c58305af1835 and fixed in 6.10.5 with commit ead9289a51ea Issue introduced in 4.9 with commit c58305af1835 and fixed in 6.11-rc3 with commit 8bdd9ef7e9b1 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-42259 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/i915/gem/i915_gem_mman.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/4b09513ce93b3dcb590baaaff2ce96f2d098312d https://git.kernel.org/stable/c/ead9289a51ea82eb5b27029fcf4c34b2dd60cf06 https://git.kernel.org/stable/c/8bdd9ef7e9b1b2a73e394712b72b22055e0e26c3