From mboxrd@z Thu Jan 1 00:00:00 1970 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 C7F1B30D3F8 for ; Wed, 24 Jun 2026 16:32:32 +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=1782318753; cv=none; b=Uobfr5p5+oG9Rj8mWO/rcvR1WRE6RcUnk19nHPancpLKITKTcdKx6Am7IHavpMF3hQPIrvEcEURZ7DsrP3HsnWC4oAHW2TGeKHt0begB70bBRcFsyZMzOY1OL5Wu85EU16ZGO+MinL/xHDUXaDeyv4gnVsSXJIo+nT1fidUMtpQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782318753; c=relaxed/simple; bh=sZcOAsJZJcVIUs9eFNJAouOM9LQBh+gfnOsCupZqfF8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nsBXLl9cZIk+E1MIErDCAmaaY4826zjP2FuZ4Rk/n30UjOlN3ZUR/G110fUhxh732t7t4apUJwou7eD9xyo7AmOE7fQJ1jr9ruGG/3Gy8vrDEgpmk6xrn4Ti4VuFDs5hN1bMIBaxMI0+JH7CWf4jBxZJSG2R3TXcI5ttOLX0r+Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OZIJ/AnT; 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="OZIJ/AnT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ECF0B1F00A3D; Wed, 24 Jun 2026 16:32:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782318752; bh=UkVGtrhNyV72VPHxLgJO1sRbhLOxyET1koacAs/xVS4=; h=From:To:Cc:Subject:Date:Reply-To; b=OZIJ/AnTS0Sk2cMyL8Mqp0Sr1l2QCH+hVxiG+aGxGLwKjsVfhH3bQh5lodizH1Vh0 9am8e+b7TRZpHoxFg6Qs1m2bHo8h5bzB+TWI3f08NjctuojLUDyD7S+6rJdkG9eShq pZaiqDKG59YBEsayWgN8haAl3U02fzLG5rfAdtSI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-52966: drm: Replace old pointer to new idr Date: Wed, 24 Jun 2026 17:29:50 +0100 Message-ID: <2026062438-CVE-2026-52966-2a66@gregkh> X-Mailer: git-send-email 2.54.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=2724; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=g4zXJstDWLLf4Q0V9OjQ8FOAvroCH4AQQRdUDzng8xo=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2rJ/usMxN63Jf0loRzLRwkdUOW8nVoideWb90+LGMK cCtUvlcRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkygyGedbtwd+SfD6oPNLf sFbCKGDl1fJNDQxzpSul7fwnBrZPyBO6ufW6d8TDsLj5AA== 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: Replace old pointer to new idr Commit 5e28b7b94408 introduced a logical error by failing to replace the newly generated IDR pointer to old id's pointer at the correct location within the "change handle" logic; this resulted in the issue reported by syzbot [1]. Specifically, the new IDR object pointer is intended to replace the original id's pointer during the normal execution flow. Additionally, an unnecessary conditional check for the ret exit path has been removed. [1] !RB_EMPTY_ROOT(&prime_fpriv->dmabufs) WARNING: drivers/gpu/drm/drm_prime.c:224 at drm_prime_destroy_file_private+0x48/0x60 drivers/gpu/drm/drm_prime.c:224, CPU#0: syz.0.17/5833 Call Trace: drm_file_free.part.0+0x7e6/0xcc0 drivers/gpu/drm/drm_file.c:269 drm_file_free drivers/gpu/drm/drm_file.c:237 [inline] drm_close_helper.isra.0+0x186/0x200 drivers/gpu/drm/drm_file.c:290 drm_release+0x1ab/0x360 drivers/gpu/drm/drm_file.c:438 The Linux kernel CVE team has assigned CVE-2026-52966 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18.32 with commit 672464dd53231509c9c771110798c56d4660e19e and fixed in 6.18.33 with commit 318b995cffcfcaa69a234d28123a3f4ae186a9df Issue introduced in 7.0.9 with commit 61bd96d3e5472c253f9c1ab77608f0c8aaa9d025 and fixed in 7.0.10 with commit 38f12d0e10d83b66fa1466400d876a3a8da31542 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-52966 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/drm_gem.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/318b995cffcfcaa69a234d28123a3f4ae186a9df https://git.kernel.org/stable/c/38f12d0e10d83b66fa1466400d876a3a8da31542 https://git.kernel.org/stable/c/dc366607c41c45fd0ae6f3db090f31dd611b644a