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 81AEF16DEC3 for ; Fri, 12 Jul 2024 12:27:41 +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=1720787261; cv=none; b=RaQ68IbBydQeuvowCGVl0UZBiMPiH4p7CDhGD9DSSxQTScuW0huUOf3HgP3oYfbu00uIAusRv6/q1uQW7n43eQdq+Q6qrctzsnWcRCAp0Z8/gaGIayqtutVNLhULCPESlFQq3pnXnHCL491SyzFufNw66k5b6KsJ4XLQwqYwaFg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720787261; c=relaxed/simple; bh=GcwaxN66ekbwZTh122JAt41IgbjaSOlUbHi0gmaWKkg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=feDUzbf7/gdvn9M/YUogFg+RKvffK+rbNs0UF6b5q8KEAFhQQdDRf04kBx8klDlKYozrzUB7LZ8ERxuPiiVR3kQmbzClCV6kyB22beGykNRahceI6qZnBCh/lsz64CFdHORGlR19QWbvY5jTT6IPDRKVlqtazdmw+ftXeGlR9NY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CFwxqs/H; 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="CFwxqs/H" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B13C1C32782; Fri, 12 Jul 2024 12:27:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1720787261; bh=GcwaxN66ekbwZTh122JAt41IgbjaSOlUbHi0gmaWKkg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=CFwxqs/HRaUKo8eSGlVc+eIZZ/NlL08aLn9Xpc/VW/aQLPKq3cIp2KmAibzmg7KmP lA9XdbhdfP7d34snG2cUbYTHvA12HTA2EAgzXA4S7nsJ2bNv0J6+hun5dqycKjSfuI NR2fDzoKIdM7i514HrAQIkb76T1f3PtvV+QNz2fo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-40926: drm/nouveau: don't attempt to schedule hpd_work on headless cards Date: Fri, 12 Jul 2024 14:27:24 +0200 Message-ID: <2024071214-CVE-2024-40926-ccdf@gregkh> X-Mailer: git-send-email 2.45.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=2039; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=GcwaxN66ekbwZTh122JAt41IgbjaSOlUbHi0gmaWKkg=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkTFZUCJfx576Uw9Zq/OOK4S034qaB1Q3SA8sS6ZVOmV e5fLJ7UEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPRKmCYn9CmMicv4erHbabT A48ZXlXevnLafoYFS2Icz832X5Jb1HZV719s2h2PvTqHAQ== 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/nouveau: don't attempt to schedule hpd_work on headless cards If the card doesn't have display hardware, hpd_work and hpd_lock are left uninitialized which causes BUG when attempting to schedule hpd_work on runtime PM resume. Fix it by adding headless flag to DRM and skip any hpd if it's set. The Linux kernel CVE team has assigned CVE-2024-40926 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit ae1aadb1eb8d and fixed in 6.9.6 with commit 227349998e57 Issue introduced in 6.7 with commit ae1aadb1eb8d and fixed in 6.10-rc4 with commit b96a225377b6 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-40926 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/nouveau/dispnv04/disp.c drivers/gpu/drm/nouveau/dispnv50/disp.c drivers/gpu/drm/nouveau/nouveau_display.c drivers/gpu/drm/nouveau/nouveau_drv.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/227349998e5740f14d531b0f0d704e66b1ed3c2f https://git.kernel.org/stable/c/b96a225377b6602299a03d2ce3c289b68cd41bb7