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 626481A2C11 for ; Wed, 26 Feb 2025 01:58:39 +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=1740535119; cv=none; b=GX5WkyVUC6Jmh/biM5ZQv2CfU+NoCyUMDPbrOzxaMrNsLI/3Xi1Nbf7Yqfs2Ah09a/9k4g+KCem5Gj6E3GizvUfVZ+fzrtI9x8QQbaJ0C402cvIJejuL1hHTOJhWsdAab6+IKkigfOfrlx5fkQjafROunDGNy4XfuA2+a2AwIJU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535119; c=relaxed/simple; bh=O+OgBtTflV6DSkWYsUhKhC2gEnjV0YrPM/+IEWcr9HI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Lp+T+yjhq7K6JlQ2R0F5oaFCp4qwMK2eNYk7dFyFy4j42aoraL9vbJTQZ8QJkcb1R0oe/CbAo2nr4lI7chagD/YqB/gC5FZJWnqcatrRmv18xWpOq6XXxh3/V0SO9XWWanHqUcOTFURwiowvjV5svOhQ/NHU6sbqn9JpNYmiI5k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qtb3r/m1; 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="qtb3r/m1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39349C4CEDD; Wed, 26 Feb 2025 01:58:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535119; bh=O+OgBtTflV6DSkWYsUhKhC2gEnjV0YrPM/+IEWcr9HI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=qtb3r/m1bse9yUOgHszTDI1LLwYBrK6qCq45eH7C0eAAbCZKSWbMZrmC0AXnxTJ3L 41V18SHgzugYx8fLr6Qwagc+gj+nKnAJndyeNt7m1QQ1fHM5EXt3rWgKr5zm0bD2W6 LKcN0TyjwEQ23DE2OF7aG5yfcEY3wL95zRkgz8dc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49135: drm/amd/display: Fix memory leak Date: Wed, 26 Feb 2025 02:55:40 +0100 Message-ID: <2025022606-CVE-2022-49135-adff@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=2051; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=O+OgBtTflV6DSkWYsUhKhC2gEnjV0YrPM/+IEWcr9HI=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7Suxehb7l83QrlxRr26zl0+aUoxI1nfGjOX8pV5GJs HKr85KOWBYGQSYGWTFFli/beI7urzik6GVoexpmDisTyBAGLk4BmIibCcOCTbnr7tftmtO++f9p nrt8As5+V9/JMSxofphXHLtGwyzclmnrprzdz73VgxYAAA== 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/amd/display: Fix memory leak [why] Resource release is needed on the error handling path to prevent memory leak. [how] Fix this by adding kfree on the error handling path. The Linux kernel CVE team has assigned CVE-2022-49135 to this issue. Affected and fixed versions =========================== Fixed in 5.15.34 with commit 7e10369c72db7a0e2f77b2e306aadc07aef6b07a Fixed in 5.16.20 with commit 3ce1497add6d17b48cc9df65095bd20202d93994 Fixed in 5.17.3 with commit 9d0bef3cc22cf250278ed45b829f062a00af9e27 Fixed in 5.18 with commit 5d5c6dba2b43e28845d7d7ed32a36802329a5f52 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-49135 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/amd/display/amdgpu_dm/amdgpu_dm_debugfs.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/7e10369c72db7a0e2f77b2e306aadc07aef6b07a https://git.kernel.org/stable/c/3ce1497add6d17b48cc9df65095bd20202d93994 https://git.kernel.org/stable/c/9d0bef3cc22cf250278ed45b829f062a00af9e27 https://git.kernel.org/stable/c/5d5c6dba2b43e28845d7d7ed32a36802329a5f52