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 983682BB13 for ; Sun, 19 May 2024 10:11:36 +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=1716113496; cv=none; b=rmp92GPUtpdlks+FUKSfniT/ak9kBqC4UsAEMkmBssqOgrDE0s8zW/5VrSY1OfJVQf9J73zhyun+zJf2T6amoDploKWGoTrwD0B9Btpcf5uWAmH+r+b5HEjh7ECpWz1dWPuyO2R6PX2A87y2fUOJTP4r4Rr2vx0AnUPyPMD+HaQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716113496; c=relaxed/simple; bh=ZkgdTSyaX8nxmTZt15zcA9FHzIR2YxZ7HuEbvjl/yPo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BaNeAcyC3Fj2ypk7OSl3Yz0xqS1ebpw4Y/wfTG0P81xzDABwNkFbAHb2+2NdcK5ZI3okzznpuqMMOXoI8xX8DkUbEgBld1J2bXAv154w8PoPprDO+15B0wVl0CwsKHFTvFoOIS9RU8gnQMpEC0/s3rD6WzjyRiwQ5gs81mZK2lo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mxoP8F5l; 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="mxoP8F5l" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1712EC32781; Sun, 19 May 2024 10:11:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716113496; bh=ZkgdTSyaX8nxmTZt15zcA9FHzIR2YxZ7HuEbvjl/yPo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=mxoP8F5lIDL7YR7hJJy+xic1Zbq0C23jyUnY8Rkv572R0zDgdeE/4dlhgTwzEsL59 w9x7bdgLojV9lNwOSQ0Nvy1hdOIzmhuBMshLGvnh62eE941fFkD+YfhOCy+pnbBPP2 jPC3Ry40FS5l1precXR5fdD12k53eD31tBEG/iW8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35928: drm/amd/amdgpu: Fix potential ioremap() memory leaks in amdgpu_device_init() Date: Sun, 19 May 2024 12:11:22 +0200 Message-ID: <2024051915-CVE-2024-35928-ead3@gregkh> X-Mailer: git-send-email 2.45.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=2244; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ZkgdTSyaX8nxmTZt15zcA9FHzIR2YxZ7HuEbvjl/yPo=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmeF5xtkzv2i707dSkjfGP7S7FTqz6ccYu6+mjBW72UW reStDN/O2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAidYwMC6aKbJHyOnibdbur rXr1c80HDmqvPjHM99qV5v8vTny5CJvEhucFfeWa118fAgA= 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/amdgpu: Fix potential ioremap() memory leaks in amdgpu_device_init() This ensures that the memory mapped by ioremap for adev->rmmio, is properly handled in amdgpu_device_init(). If the function exits early due to an error, the memory is unmapped. If the function completes successfully, the memory remains mapped. Reported by smatch: drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:4337 amdgpu_device_init() warn: 'adev->rmmio' from ioremap() not released on lines: 4035,4045,4051,4058,4068,4337 The Linux kernel CVE team has assigned CVE-2024-35928 to this issue. Affected and fixed versions =========================== Fixed in 6.1.86 with commit c5f9fe2c1e50 Fixed in 6.6.27 with commit 14ac934db851 Fixed in 6.8.6 with commit aa665c3a2aca Fixed in 6.9 with commit eb4f139888f6 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-35928 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/amdgpu/amdgpu_device.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/c5f9fe2c1e5023fa096189a8bfba6420aa035587 https://git.kernel.org/stable/c/14ac934db851642ea8cd1bd4121c788a8899ef69 https://git.kernel.org/stable/c/aa665c3a2aca2ffe31b9645bda278e96dfc3b55c https://git.kernel.org/stable/c/eb4f139888f636614dab3bcce97ff61cefc4b3a7