Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 4F1063CD8C5 for ; Mon, 10 Aug 2026 12:07:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786363673; cv=none; b=RB26q/ocWQTFFu+lALDK8Nw21qLqIRMQTIxFSAqCmsIHs61I8rg6UB6NMA8093hPuymlQn0JrnkgKi9Huu1RZrTvIfXy372hMZ9BqNJUMLjnlg6FJR7JyJas7ab3uY5jSgIUo6138933+4pbkKmlZZmUixEDMR7OPgXoHD5p6ak= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786363673; c=relaxed/simple; bh=vV7woPeOMwBdLnV4vUDUiWgO+ryD16Yjcbdnk63UQ0U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TIf7DqvtQsSK6wq8tFjpv6NRtLp8F1WUA6JUQ5np2BeEbtQSp2664w8LgOKdMkdisAomhpjq/Ipc+4s1u6BULYkqBV+OLzADxA3rXEiLQUfIaiRu5yj8Be0E+7CGigJXcOWQD/UUH/zWou5GEe7/b6+AGMDa0nS2b70U5vF4ZPI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kq85JBTk; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="kq85JBTk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BE7CB1F000E9; Mon, 10 Aug 2026 12:07:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786363672; bh=LbyHZzPbzOonI9uCggDErWnEuXpIlOq89ekMBc+bIfA=; h=From:To:Cc:Subject:Date:Reply-To; b=kq85JBTkELVhU0pAaM2LTqCHIk0EZlnbKj0ia5T0N7V1QRGcvVEhE2kYxyYk+hpkW WjJqEqMGOwOAmb9RHyPMy0qiIrrzZ4MOuvqhW8KEYJI+6gw7o4ch/n7XSZ0CgGgIgO ljXJKeSP8B06KHEINt0Rlt5A5HAG2gxuCEA/XwmY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-68257: drm/amdkfd: fix 32-bit overflow in CWSR total size calculation Date: Mon, 10 Aug 2026 13:59:34 +0200 Message-ID: <2026081021-CVE-2026-68257-994c@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2413; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nIR7WWtVIO/7awv7pXsNE3TPCJWgvq8+foaYRaJOs70=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmVexbuvhexesPi8ISDHMenrHlxaE3322+fylU2nT4at WFj+uN9yztiWRgEmRhkxRRZvmzjObq/4pCil6HtaZg5rEwgQxi4OAVgIhcEGObXCb2WvfrvTcWi k981tl6dd+231RUrhnmmccHsJ9covX9kaaEvO8Vl5+d/51UB 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/amdkfd: fix 32-bit overflow in CWSR total size calculation total_cwsr_size was computed in 32-bit before being used as a BO/SVM allocation size. With large ctx_save_restore_area_size and debug_memory_size multiplied by the XCC count, the product can wrap, yielding an undersized CWSR save area that firmware later overruns. Promote total_cwsr_size to u64 and use check_add_overflow()/ check_mul_overflow() in both kfd_queue_acquire_buffers() and kfd_queue_release_buffers(). (cherry picked from commit 319f7e13423ae3f486b9aea82f9ad2d6af0ee608) The Linux kernel CVE team has assigned CVE-2026-68257 to this issue. Affected and fixed versions =========================== Fixed in 6.12.101 with commit b88ffe6593607364a8c06a48c6f29e55437cdf8e Fixed in 6.18.42 with commit abce3276c57e36c955627307469b9f009057a467 Fixed in 7.1.6 with commit 865532d54eb57b660b1cb1b0e1755776ce21b849 Fixed in 7.2-rc4 with commit 2b0386d4293920e690c0e017708f999b93cc729b 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-2026-68257 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_queue.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/b88ffe6593607364a8c06a48c6f29e55437cdf8e https://git.kernel.org/stable/c/abce3276c57e36c955627307469b9f009057a467 https://git.kernel.org/stable/c/865532d54eb57b660b1cb1b0e1755776ce21b849 https://git.kernel.org/stable/c/2b0386d4293920e690c0e017708f999b93cc729b