CVE-2026-52966

Source
https://cve.org/CVERecord?id=CVE-2026-52966
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-52966.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-52966
Downstream
Published
2026-06-24T16:28:45.891Z
Modified
2026-07-12T03:55:17.795463160Z
Summary
drm: Replace old pointer to new idr
Details

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] !RBEMPTYROOT(&primefpriv->dmabufs) WARNING: drivers/gpu/drm/drmprime.c:224 at drmprimedestroyfileprivate+0x48/0x60 drivers/gpu/drm/drmprime.c:224, CPU#0: syz.0.17/5833 Call Trace: drmfilefree.part.0+0x7e6/0xcc0 drivers/gpu/drm/drmfile.c:269 drmfilefree drivers/gpu/drm/drmfile.c:237 [inline] drmclosehelper.isra.0+0x186/0x200 drivers/gpu/drm/drmfile.c:290 drmrelease+0x1ab/0x360 drivers/gpu/drm/drmfile.c:438

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/52xxx/CVE-2026-52966.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
672464dd53231509c9c771110798c56d4660e19e
Fixed
318b995cffcfcaa69a234d28123a3f4ae186a9df
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
61bd96d3e5472c253f9c1ab77608f0c8aaa9d025
Fixed
38f12d0e10d83b66fa1466400d876a3a8da31542
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
5e28b7b94408897e41c63477aabc9e1db439bc8c
Fixed
dc366607c41c45fd0ae6f3db090f31dd611b644a

Affected versions

v6.*
v6.18.32
v7.*
v7.0.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-52966.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.18.32
Fixed
6.18.33
Type
ECOSYSTEM
Events
Introduced
7.0.9
Fixed
7.0.10

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-52966.json"