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 476EB3C3C for ; Fri, 27 Sep 2024 12:36:16 +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=1727440577; cv=none; b=m1JoLAn/EcyPZdJzWExajKfu/O1DT1P5I+vgSL4IG3hdYPIvWqPXhXrxl+8BHTM3OMTpRWjhbOp+9f3qCfod+HUdre4B/u+3A4UlYKjZy2sdzvelTqIwKUihzWdcILpT4EZfcqmJSE8Oe72CWKtMVISiW6QShC1tUnEKNxpVNO0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727440577; c=relaxed/simple; bh=0886tEufFQ2JuAQwSTqrRPmQ5exPZwG1vbHKL+EPBBE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IjlTFRNCqWe5sRUCii9iHKHN+Z6fVBnQv2VSXC9kDuVIaLZUxKvBkGY5Q4ThWJugQkFubiKHVVVnibpbkKa32zzPL/FakakDWss09z/PwSLmyqyNR1+x8TasdQ9TcaOHFzLTudOBzcFHOgLR+m0Bn6dC+/Emtpd1/4liciKWzUQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=B7bOpjvj; 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="B7bOpjvj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6B32AC4CEC4; Fri, 27 Sep 2024 12:36:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1727440576; bh=0886tEufFQ2JuAQwSTqrRPmQ5exPZwG1vbHKL+EPBBE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=B7bOpjvjPMdoT5T9VOnJ8gbIN48ihvI/4M54tzPT9Ib6sPKYCEky/o9m4GN3w8lLA j9iETkwVgIctymqn+jydNDxP2UVcDP09cTHM25yiM/wWaxgblPRyqMIJKOUeQydThM uTi8LfwBscy870AMV2JynolFLPMnSguWn0TIcNic= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46803: drm/amdkfd: Check debug trap enable before write dbg_ev_file Date: Fri, 27 Sep 2024 14:36:08 +0200 Message-ID: <2024092708-CVE-2024-46803-689b@gregkh> X-Mailer: git-send-email 2.46.2 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=1926; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0886tEufFQ2JuAQwSTqrRPmQ5exPZwG1vbHKL+EPBBE=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnflu24Xb5mXoycWtnBv+WLQmKPxrOxbWmRePpljllUb 5Sf/aqUjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIFDaGeYZuXAe5Q++8vy96 omeXXapqfffuxwwLJvJdPxJwc1b0jAlcAsmvhS3WFJkkAwA= 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: Check debug trap enable before write dbg_ev_file In interrupt context, write dbg_ev_file will be run by work queue. It will cause write dbg_ev_file execution after debug_trap_disable, which will cause NULL pointer access. v2: cancel work "debug_event_workarea" before set dbg_ev_file as NULL. The Linux kernel CVE team has assigned CVE-2024-46803 to this issue. Affected and fixed versions =========================== Fixed in 6.6.50 with commit e6ea3b8fe398 Fixed in 6.10.9 with commit 820dcbd38a77 Fixed in 6.11 with commit 547033b59306 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-46803 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_debug.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/e6ea3b8fe398915338147fe54dd2db8155fdafd8 https://git.kernel.org/stable/c/820dcbd38a77bd5fdc4236d521c1c122841227d0 https://git.kernel.org/stable/c/547033b593063eb85bfdf9b25a5f1b8fd1911be2