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 6A41021A432 for ; Wed, 26 Feb 2025 02:24:43 +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=1740536683; cv=none; b=KpphPkCElL/gMzN2WsGYqsENea4rgzGEdkwzaPd/Er5rxRUNz75MFzN8DLCM7obcHTfd+bLF4JDzL8lffuWZuwa9/DlZF9FoyELTbJvLRLMgB8dPBDPP0hkIxNEFRIp4ssNmg770oeYZ6eTeLpz/nIgxYBefxZYefZmnvpct+sg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536683; c=relaxed/simple; bh=jxuiGAGqVmJBb5zq6dXP8RgWbsW0+kmhwb/3C6mQOE4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HI+9sdjbj/Sl0djvfmsFtXpSd6MHg83kbFE4K1Mo++5/2R/iICYVCUBjQ4cn6bwxZGKsYavQI5r6iy4KQcB/YaoaNb6WH8eiNFAS9iAIo/2bpUPBslUBJGmjNl64pfttVi+s6rmYTULz0etez10mhDy28gqRiBgfoCK6d834Gz0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=r1lC5inD; 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="r1lC5inD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 421FCC4CEDD; Wed, 26 Feb 2025 02:24:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536683; bh=jxuiGAGqVmJBb5zq6dXP8RgWbsW0+kmhwb/3C6mQOE4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=r1lC5inD5UNgShxzj90pi+/3eD8o6OH1hqGMlp2AW/7EJQ47Z7rCJ5H2/JBT4ni/C 8Xt4eteQJyv/KIVzcaT521nGyny3qBYShQnngj+dvlO+bDhgWp0s3RsckaKp8sRklq 6kBimeRVaazLW/bI/K18sQtoOitVMhv0vU0CALBU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49645: drm/panfrost: Fix shrinker list corruption by madvise IOCTL Date: Wed, 26 Feb 2025 03:23:28 +0100 Message-ID: <2025022619-CVE-2022-49645-03ab@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=2699; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jxuiGAGqVmJBb5zq6dXP8RgWbsW0+kmhwb/3C6mQOE4=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7qm4razZcTdxl7Fjz9Oceht2CztKvc23+b/v6P/+3i 2PMx+fJHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARprUM892dv25YeODBrs5J 0iuV0142Rsh3dTPML/BzY+Zzat3AMj/pToDRir0qdueqAA== 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/panfrost: Fix shrinker list corruption by madvise IOCTL Calling madvise IOCTL twice on BO causes memory shrinker list corruption and crashes kernel because BO is already on the list and it's added to the list again, while BO should be removed from the list before it's re-added. Fix it. The Linux kernel CVE team has assigned CVE-2022-49645 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4 with commit 013b6510131568ce4e01856d5360bfdfe9c3632f and fixed in 5.4.207 with commit 393594aad55179eb761af41533d8d1d6eb4543b0 Issue introduced in 5.4 with commit 013b6510131568ce4e01856d5360bfdfe9c3632f and fixed in 5.10.132 with commit 0581613df7f9a4c5fac096ce1d5fb15b7b994240 Issue introduced in 5.4 with commit 013b6510131568ce4e01856d5360bfdfe9c3632f and fixed in 5.15.56 with commit 1807d8867402a58b831a7fc16832747ff559a0d1 Issue introduced in 5.4 with commit 013b6510131568ce4e01856d5360bfdfe9c3632f and fixed in 5.18.13 with commit f036392edd9c49090781d8cca26ad6557a63bae4 Issue introduced in 5.4 with commit 013b6510131568ce4e01856d5360bfdfe9c3632f and fixed in 5.19 with commit 9fc33eaaa979d112d10fea729edcd2a2e21aa912 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-49645 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/panfrost/panfrost_drv.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/393594aad55179eb761af41533d8d1d6eb4543b0 https://git.kernel.org/stable/c/0581613df7f9a4c5fac096ce1d5fb15b7b994240 https://git.kernel.org/stable/c/1807d8867402a58b831a7fc16832747ff559a0d1 https://git.kernel.org/stable/c/f036392edd9c49090781d8cca26ad6557a63bae4 https://git.kernel.org/stable/c/9fc33eaaa979d112d10fea729edcd2a2e21aa912