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 616EE480DEC for ; Sun, 18 Oct 2026 15:24:45 +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=1792337090; cv=none; b=A4LB4jShEmeCMWYXs6LyZpiDpmxjCBD4i19JI/pJxnp+hB9ZICqIbRg2gCXRH+DNSL/vsQNDYjiFHqvn38ZlUXDBh6pyXMSx32qZT0wWdcEo45m7hpSfFDK3cdi4SCnGIRitbpYAqa4mpLNFpWYtLZqiWMd6rabegf6A/A8kNSE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792337090; c=relaxed/simple; bh=xwhMxRC5maWnpKYNi06kO++x/qf8Cs4ejqjrkCtilvA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OEens5Mp3W13yzQDYD33qOB+IzRSa5KfBJ7DzCs0bCj1DMReCtY7mZMTw7gnIVMAWI1ya4oEuq6srZ0PoOtftyJABfnlsoDvEUHry5v8R9LPUc6LYWPP5AgagDgyokV0U9wTZlHQNRce7cR9+pf/R4Ohdlaq19h5u5YQqmj8u4U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=x9dIuAla; 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="x9dIuAla" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 510431F000C4; Sun, 18 Oct 2026 15:24:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792337085; bh=f7UhmcNSDtn5PLK5qxm6G6j9YG7p4F7Mdvni2LgAwtE=; h=From:To:Cc:Subject:Date:Reply-To; b=x9dIuAlaUNF2kQ/kU5a6mxFEtPA+H30O92AHL7GnGvTT+0cDGLzBVvKYz18dY2XuS SPkQzcZZofKibJNKenLFkLv6hiGfxYzlk925LIzFQRT9o0aizobxS7h7pcEzA3WaPv TQkoOyGRGC8KXl1+b5s6pAcVjMfqi7Dz+T0th/fU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98512: drm/nouveau: RCU-free the scheduler-containing nouveau_sched Date: Sun, 18 Oct 2026 17:16:16 +0200 Message-ID: <2026101820-CVE-2026-98512-215e@gregkh> X-Mailer: git-send-email 2.56.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=3148; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/UTFIJDI/w9A5Q3EsXNIHr71gjKBbspXf+NKUrfdtPg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXHnU4thYJ3CjJn/pKTFFF1pFpie6BBXe56kLP3/ip1 fXv2GrHjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIERGGBX1GLOl/vt1hWBaY 9ee4ywuRsyKvJzEsOKpYxlNcJeXcVO3w/Y/oD956g8mfAA== 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/nouveau: RCU-free the scheduler-containing nouveau_sched struct nouveau_sched embeds a struct drm_gpu_scheduler (base). nouveau_sched_destroy() calls nouveau_sched_fini() (which does drm_sched_fini(&sched->base)) and then frees the object with plain kfree(sched). drm_sched_fence_get_timeline_name() returns fence->sched->name, and the scheduler fence keeps a .release callback so it is not ops-detached on signalling. A finished fence exported to userspace via drm_syncobj / sync_file therefore keeps pointing at &sched->base after nouveau_sched_destroy(), and a later get_timeline_name() -- reachable unprivileged through SYNC_IOC_FILE_INFO -- dereferences freed memory (KASAN slab-use-after-free read). Per the dma-fence lifetime contract the exporter must keep the data backing a signalled fence alive for an RCU grace period. Free the scheduler-containing object with kfree_rcu() instead of kfree(). The Linux kernel CVE team has assigned CVE-2026-98512 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 5f03a507b29e44a848f315c7240c19894dd8be4f and fixed in 6.12.112 with commit 40edf5eefc3fd94592a91d6eb074d4fc6f606c75 Issue introduced in 6.8 with commit 5f03a507b29e44a848f315c7240c19894dd8be4f and fixed in 6.18.55 with commit 35151e9a8274174ccbb92e3b3ba7dc7a008dcada Issue introduced in 6.8 with commit 5f03a507b29e44a848f315c7240c19894dd8be4f and fixed in 7.2.9 with commit cd6e11b6ebe04a0a1f1435df561acada9eadc563 Issue introduced in 6.8 with commit 5f03a507b29e44a848f315c7240c19894dd8be4f and fixed in 7.3-rc5 with commit f7eae6d8d768fabd6b59779ca7da79e02c74e113 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-98512 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/nouveau_sched.c drivers/gpu/drm/nouveau/nouveau_sched.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/40edf5eefc3fd94592a91d6eb074d4fc6f606c75 https://git.kernel.org/stable/c/35151e9a8274174ccbb92e3b3ba7dc7a008dcada https://git.kernel.org/stable/c/cd6e11b6ebe04a0a1f1435df561acada9eadc563 https://git.kernel.org/stable/c/f7eae6d8d768fabd6b59779ca7da79e02c74e113