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 22719190497 for ; Thu, 27 Feb 2025 02:18:47 +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=1740622727; cv=none; b=bxVg5mLXa+S4AInaaJWkqQzxOws4Bewqdg9HqfrQjsZcHrUo2665DFIQwO3zMD7+oblsZbqvt8NHl6CxJUZpAjrJR4/K63cgGR0uvyUwv71AyAl8zohm9r/fsNg25JvEF5p7zEbQ5qVc+gDyZYtwo9XSa5sj4zLYELZYSk3SETw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622727; c=relaxed/simple; bh=DUJVp+zfAq5zl6M32IrbV6B2bOOhU18qL4MGaIHVjeo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cW6emPW/B48Eu1EjVafO+kjT039+bBs4e9hxys3bVzSk1iWONFXS/JKxr20ItseLEU7R8W59LD6sEnggBkQM1zCTBT9DHzRv71M08VZ1mNwynX/D+B2YygP26+wtgFPCasdIKJFVaAwVGEnFepPhJQv9kW8fG99FB34rd5me50M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=azCRSu/Z; 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="azCRSu/Z" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EAA46C4CED6; Thu, 27 Feb 2025 02:18:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740622727; bh=DUJVp+zfAq5zl6M32IrbV6B2bOOhU18qL4MGaIHVjeo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=azCRSu/ZFQk4bpVWYwLpOyGDfQgZQtfsxeIhwnUnCYVAmRkr7KdAbH1i1XXEFpgeF a7lN50xWt90IY7k7+QAK+etsvC2hHYKd7MSXY1tavnd+TLEvfktoT++McLH3GJbeC4 zKQupjhf5b1qa+HVSnF4U6lNtXO89hxgROtkD4PQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-52559: drm/msm/gem: prevent integer overflow in msm_ioctl_gem_submit() Date: Wed, 26 Feb 2025 18:17:03 -0800 Message-ID: <2025022602-CVE-2024-52559-6125@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=2309; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=DUJVp+zfAq5zl6M32IrbV6B2bOOhU18qL4MGaIHVjeo=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7T8vpuSg9EtVI/86m4ywg9/bGnfJ13yzXLF74MM7s/ R8FNdX6jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAbjJJgzzE+9+d/kWGyXy+4/k +aT16U9vZ3E0MCyY26Lq/ObtwhBzqf1n/utIifHMm/EVAA== 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/msm/gem: prevent integer overflow in msm_ioctl_gem_submit() The "submit->cmd[i].size" and "submit->cmd[i].offset" variables are u32 values that come from the user via the submit_lookup_cmds() function. This addition could lead to an integer wrapping bug so use size_add() to prevent that. Patchwork: https://patchwork.freedesktop.org/patch/624696/ The Linux kernel CVE team has assigned CVE-2024-52559 to this issue. Affected and fixed versions =========================== Issue introduced in 3.12 with commit 198725337ef1f73b73e7dc953c6ffb0799f26ffe and fixed in 6.12.16 with commit 2f1845e46c41ed500789d53dc45b383b7745c96c Issue introduced in 3.12 with commit 198725337ef1f73b73e7dc953c6ffb0799f26ffe and fixed in 6.13.4 with commit e43a0f1327a1ee70754f8a0de6e0262cfa3e0b87 Issue introduced in 3.12 with commit 198725337ef1f73b73e7dc953c6ffb0799f26ffe and fixed in 6.14-rc1 with commit 3a47f4b439beb98e955d501c609dfd12b7836d61 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-52559 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/msm/msm_gem_submit.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/2f1845e46c41ed500789d53dc45b383b7745c96c https://git.kernel.org/stable/c/e43a0f1327a1ee70754f8a0de6e0262cfa3e0b87 https://git.kernel.org/stable/c/3a47f4b439beb98e955d501c609dfd12b7836d61