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 44BC02E2DFB for ; Tue, 7 Oct 2025 15:21:44 +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=1759850504; cv=none; b=CUcLokV7nGXBybKyewqKoCEWaAmL1LL7fI2bbJ4vI1KCZ/pxZv3rRS7giPWyQzeGnbx5svoO74HVK2QB5vzOdzM8IiStvTdQZhT39t/Pqu5DuH0mjhKiALoTOQDyQOkLNLotS2DzTEAYmr+2Oz/MSg/d5u+FKefsCwI0yCxLrwY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759850504; c=relaxed/simple; bh=4QyLfXEwRVYBWdnFobuqldH1ARa4EBuaop8MZt7iXLg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IdICHVuBw4dHozmjMk3H72mRObPKtbrYEuTv1ODDrIcoUctBTpg+1QWzx2FcReYo9aQEhdIC9bUlQD37mGzJSfZJJMN+/6e6kqdVuAojuygaK4Zx9d8aNW1vlVRwEE6yAQsn75YlGAKSr32PD4Tg8mi+4BWWqIVI9ToEyIc9JLY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=09qh4zau; 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="09qh4zau" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C69EDC4CEF1; Tue, 7 Oct 2025 15:21:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759850504; bh=4QyLfXEwRVYBWdnFobuqldH1ARa4EBuaop8MZt7iXLg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=09qh4zauCmnzspZw7DwVpX2f7jrN4S6701u+dRNPHbc6iooP/AhfFZX2sDkSwFi4J SvaOSYMqO59k5QvVeK9fS4oTRumnCxQjlnyjlCr/q0sk+dfXD6MGucyWVI5JxIPvmR HmzHfv1U6DF87wWU1z8h9THZGGrh+QzF+5UEsPMo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50527: drm/amdgpu: Fix size validation for non-exclusive domains (v4) Date: Tue, 7 Oct 2025 17:19:14 +0200 Message-ID: <2025100706-CVE-2022-50527-de17@gregkh> X-Mailer: git-send-email 2.51.0 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=2167; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wQSrfTYDgwFdzFnh6usI4RI4EWc5Le6n5fdShV0cIFM=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlP9bM8jcW9TS+2Pjqa/9990f95SxhuViYXvLTidpk3o 78n2eRtRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkVzvD/GIWGdGI6s5OG/8L 94J8PB4dyXBYwjBPS3m16JHN13gyJgSx8nMuFunh5BMEAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: Fix size validation for non-exclusive domains (v4) Fix amdgpu_bo_validate_size() to check whether the TTM domain manager for the requested memory exists, else we get a kernel oops when dereferencing "man". v2: Make the patch standalone, i.e. not dependent on local patches. v3: Preserve old behaviour and just check that the manager pointer is not NULL. v4: Complain if GTT domain requested and it is uninitialized--most likely a bug. The Linux kernel CVE team has assigned CVE-2022-50527 to this issue. Affected and fixed versions =========================== Fixed in 6.0.19 with commit 80546eef216854a7bd47e39e828f04b406c00599 Fixed in 6.1.5 with commit 8ba7c55e112f4ffd2a95b99be1cb1c891ef08ba1 Fixed in 6.2 with commit 7554886daa31eacc8e7fac9e15bbce67d10b8f1f 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-50527 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_object.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/80546eef216854a7bd47e39e828f04b406c00599 https://git.kernel.org/stable/c/8ba7c55e112f4ffd2a95b99be1cb1c891ef08ba1 https://git.kernel.org/stable/c/7554886daa31eacc8e7fac9e15bbce67d10b8f1f