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 EC8A721B19D for ; Wed, 26 Feb 2025 02:25:05 +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=1740536706; cv=none; b=pFTkmajXwwXGCFaMGh966432elZcJOYLBYYiwa9ag8uQRjgRGDdtksMEWydh5mAUn2G3SRb46o+nvCkMAOHXnpvFgzDl4mNMVNGtEV38uYYkhtUxhws3keaSRsH8aZRNDBWnX5c89FMNWGSwJzMT1hj1rE3RFtIcFlIY5A5xSsk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536706; c=relaxed/simple; bh=SJUH7EelVyTnXwLZrAXZbzfFVC4606FpuXV7nhr2AIo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mjkTxthwyq1VlCc/YTBgVyTWVw4L4Zjl+V4ctctMzRRpUDg08j0rYL0e2sVx4t7ooMTjw1TnId0jeLsxe1ttXaTLsmWj3Av6ypz/bomFnJU94RV9yVMFsJ7gV32G2fC3df9fy3HHmG0Y4cEDr67XxPhjar0tTHSzp0e3SNQhFi8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=da/LNRYD; 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="da/LNRYD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C223DC4CEE6; Wed, 26 Feb 2025 02:25:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536705; bh=SJUH7EelVyTnXwLZrAXZbzfFVC4606FpuXV7nhr2AIo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=da/LNRYDW3i/6Ts2/XJAh+dBJmVTnmK1Vw0Pe3TY8jHnRrd/iq1GQZAFHRLi2/abr 10RyVD//EvCT0oSAdJDFc5i6fkRSPyf6cYYETkfzrd1PbQrb4bM9b/UPZmcBjXgCTy m2VX0vYCySau1OKZoVjAdqWEwYH4kVEVmTMTLgJc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49635: drm/i915/selftests: fix subtraction overflow bug Date: Wed, 26 Feb 2025 03:23:18 +0100 Message-ID: <2025022617-CVE-2022-49635-af1b@gregkh> X-Mailer: git-send-email 2.48.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=2046; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=SJUH7EelVyTnXwLZrAXZbzfFVC4606FpuXV7nhr2AIo=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7qm5WsB06Hsu48MHpi09Cchf/3ea3Z9HEyrmKmRNi+ rK4er73dcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBErOYzLNj1I0iyhI/Rky38 ubrAqW6u+zkWfxnmKdmtPHa2dCeHxUNpo+Pv7m5REs/vBgA= 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/selftests: fix subtraction overflow bug On some machines hole_end can be small enough to cause subtraction overflow. On the other side (addr + 2 * min_alignment) can overflow in case of mock tests. This patch should handle both cases. (cherry picked from commit ab3edc679c552a466e4bf0b11af3666008bd65a2) The Linux kernel CVE team has assigned CVE-2022-49635 to this issue. Affected and fixed versions =========================== Issue introduced in 4.12 with commit e1c5f754067b594de58d387aa5873dec83b6c9fd and fixed in 5.18.13 with commit e8997d2d6b8d764e12489f1af2a1ce1d7384ca2a Issue introduced in 4.12 with commit e1c5f754067b594de58d387aa5873dec83b6c9fd and fixed in 5.19 with commit 333991c4e66b3d4b5613315f18016da80344f659 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-2022-49635 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/selftests/i915_gem_gtt.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/e8997d2d6b8d764e12489f1af2a1ce1d7384ca2a https://git.kernel.org/stable/c/333991c4e66b3d4b5613315f18016da80344f659