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 7965D187558 for ; Thu, 30 May 2024 15:36:28 +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=1717083388; cv=none; b=nqRvqAUy9UFTRz3EJOyuYLNBC+OcZiCWXpzUyJ2BUTYXJi0pyUWKOnInNXcIZY7DlUW7sZ+ls9QYXhfa+iIbeGVa1uBJ+7SVhjbx7QjW4YwwDeyElIDvdhRH3XficRPL8TUJ4SStXYKSUxFrxpcKinMe+xQmLFBQIZZgSU6bplY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717083388; c=relaxed/simple; bh=mESYbTuZPN62HntqhzRW/CbMdFbfUP26X+FHMZO8tZA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XcWWzc8OdLR3C5OxqiKOYk6YDcPM15UF5u7/4l8FGZhGuxNd9KTkWpD0CvAKshYpkqAlO2yR1FtRem8+VaPvHZ26h//0b2+A/vIhur3l8yPuqz/xGoEEDKN9h4eJkNFxSYC/6K7b3T0/J2Jg/DppDQXjq1UWVjGgvk8RU7+w/8Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YGC1V+rC; 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="YGC1V+rC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D2B6C2BBFC; Thu, 30 May 2024 15:36:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1717083388; bh=mESYbTuZPN62HntqhzRW/CbMdFbfUP26X+FHMZO8tZA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=YGC1V+rCkj/R+/6vSG6+u+hhhADHqqTU1szAal36Ktm27Nj1lmv6bU7NDgFDnuBZA WKydiijI2sEhg8YlOIO7FbFdWVhT0nTGYK+7qS6CY0ZtG1Jq3Llykx92cRii5QKgoD ARsIiQbvURPpADgmEXYfkxqdflLGOzz0rwpR5scc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-36951: drm/amdkfd: range check cp bad op exception interrupts Date: Thu, 30 May 2024 17:35:48 +0200 Message-ID: <2024053040-CVE-2024-36951-d3cb@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=2040; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mESYbTuZPN62HntqhzRW/CbMdFbfUP26X+FHMZO8tZA=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkRc85cDdx9z/t2sfWMfXrHs1bduaRdfXpRJcOPsIXsr seXLm4z7IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJTLjFsGDJrPI1yw63ZjnN swyf6z/tUHSPpBTDbJZzjf0bn/oEpLH8WMG93qVE7Dk7CwA= 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/amdkfd: range check cp bad op exception interrupts Due to a CP interrupt bug, bad packet garbage exception codes are raised. Do a range check so that the debugger and runtime do not receive garbage codes. Update the user api to guard exception code type checking as well. The Linux kernel CVE team has assigned CVE-2024-36951 to this issue. Affected and fixed versions =========================== Fixed in 6.6.31 with commit 41dc67915966 Fixed in 6.8.10 with commit b6735bfe9414 Fixed in 6.9 with commit 0cac183b98d8 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-36951 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/amdkfd/kfd_int_process_v10.c drivers/gpu/drm/amd/amdkfd/kfd_int_process_v11.c drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c include/uapi/linux/kfd_ioctl.h 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/41dc6791596656dd41100b85647ed489e1d5c2f2 https://git.kernel.org/stable/c/b6735bfe941486c5dfc9c3085d2d75d4923f9449 https://git.kernel.org/stable/c/0cac183b98d8a8c692c98e8dba37df15a9e9210d