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 4699D22A4EE for ; Tue, 6 Oct 2026 08:46:15 +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=1791276377; cv=none; b=sA5oz9HYKpnvcVCid2oqoClJm1er5lYB5/KkpAeIoYUrYuXv/FCOEXmvd2djadwgL2MM9oPGrrhAHtyG8A4V0+ylj7BmSGnh2vuhxeTCCM8yQFJkqzWuvq8ZVRYRcPmIM+Rg6b2jbsLRrcAmXCJc+bbH5cSkC0Yemty2upsQHlM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791276377; c=relaxed/simple; bh=kxpvmOgxlLR6cXuDDY7oA139HeadkXdt09GkJv2Punc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=P4yYK7DBuDtNHfKGiZHwoVvnW0h8H1rlOpBXc0dAYLh+I7bTmOagCEjZHz7KX+1K+7c6nphufn7C09NqxMrSNTuafGRD1yGysGSisrRpllbzPmRq9q5NuWsvQXda/Gwh4rZeNiVV0g6KJs1BNfXz2weNaWk6zcb17ga2DbA9JbA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vKsA07AK; 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="vKsA07AK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4AE951F000FF; Tue, 6 Oct 2026 08:46:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791276375; bh=ITOan5JdT6bS4gENpfkD/P8SJzdEKPASgSi8L4TVLVA=; h=From:To:Cc:Subject:Date:Reply-To; b=vKsA07AKoerQW0Hga5/T49944qNoOiByvaQ60gXjRHC92Ljw17LfOmzNR7rMDU2gR yHiObIkPrnD3JW5GJPeDehsPyaQxMegphpWWkr4QjAH0scSww6nGJKshL8Ds97qwoY qkLcb3J/91F3MpkbOraXCVLntsSs4u51/on5aWMI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98180: drm/msm: RCU-free the scheduler-containing ring and VM objects Date: Tue, 6 Oct 2026 10:44:41 +0200 Message-ID: <2026100632-CVE-2026-98180-3554@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=3143; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+/08zAcqV9ogBKzkn5xVBcEgNxp4Qwahjce8pOnQFb8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlHtnzo2LqbWfSgg+SFacESpo4bji1jf8iwjiWospqVg WPjsQa/jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIl3kM88Nvhn440n7C7p+7 F+sRTrG1f7bIrGBY0LRnaVnNcU8eFcnzPPPM3ggcDTC/DQA= 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/msm: RCU-free the scheduler-containing ring and VM objects Both struct msm_ringbuffer and struct msm_gem_vm embed a struct drm_gpu_scheduler. msm_ringbuffer_destroy() and the VM free callback msm_gem_vm_free() call drm_sched_fini() on the embedded scheduler and then free the containing object with plain kfree(). 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 (the submit out-fence, or a VM_BIND fence, via sync_file / drm_syncobj) keeps pointing at the embedded scheduler after the ring/VM is freed, so a later get_timeline_name() -- reachable unprivileged through SYNC_IOC_FILE_INFO -- dereferences freed slab 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 objects with kfree_rcu() instead of kfree(). Patchwork: https://patchwork.freedesktop.org/patch/750234/ The Linux kernel CVE team has assigned CVE-2026-98180 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 1d8a5ca436ee4a28eec14cb813f790f7cdeeee19 and fixed in 6.18.54 with commit d81bf4581903b0cba0698cd4d1c07fc6be21754a Issue introduced in 5.15 with commit 1d8a5ca436ee4a28eec14cb813f790f7cdeeee19 and fixed in 7.2.8 with commit 713abac5c04ccbae67f9ac68c3921845535388e7 Issue introduced in 5.15 with commit 1d8a5ca436ee4a28eec14cb813f790f7cdeeee19 and fixed in 7.3-rc4 with commit 01c8d1f385f788f1bbbbb7687c4386d614281218 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-98180 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/msm/msm_gem.h drivers/gpu/drm/msm/msm_gem_vma.c drivers/gpu/drm/msm/msm_ringbuffer.c drivers/gpu/drm/msm/msm_ringbuffer.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/d81bf4581903b0cba0698cd4d1c07fc6be21754a https://git.kernel.org/stable/c/713abac5c04ccbae67f9ac68c3921845535388e7 https://git.kernel.org/stable/c/01c8d1f385f788f1bbbbb7687c4386d614281218