{"id":"CVE-2026-46215","published":"2026-05-28T09:40:32Z","modified":"2026-08-05T12:30:33Z","title":"drm: Set old handle to NULL before prime swap in change_handle","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm: Set old handle to NULL before prime swap in change_handle\n\nThere was a potential race condition in change_handle. The ioctl\nbriefly had a single object with two idr entries; a concurrent\ngem_close could delete the object and remove one of the handles\nwhile leaving the other one dangling, which could subsequently\nbe dereferenced for a use-after-free.\n\nTo fix this, do the same dance that gem_close itself does.\n(f6cd7daecff5 drm: Release driver references to handle before making it available again)\nFirst idr_replace the old handle to NULL. Later, if the prime\noperations are successful, actually close it.\n\ncreate_tail required a similar dance to avoid a similar problem.\n(bd46cece51a3 drm/gem: Fix race in drm_gem_handle_create_tail())\nIt idr_allocs the new handle with NULL, then swaps in the correct\nobject later to avoid races. We don't need to do that here, since\nthe only operations that could race are drm_prime, and\nchange_handle holds the prime lock for the entire duration.\n\nv2: cleanups of error paths","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00227,"percentile":0.1376,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/672464dd53231509c9c771110798c56d4660e19e","tags":[]},{"url":"https://git.kernel.org/stable/c/61bd96d3e5472c253f9c1ab77608f0c8aaa9d025","tags":[]},{"url":"https://git.kernel.org/stable/c/5e28b7b94408897e41c63477aabc9e1db439bc8c","tags":[]},{"url":"https://github.com/0xCyberstan/CVE-2026-46215-POC","tags":["exploit"]}],"priority":{"score":13.2,"factors":[{"name":"EPSS percentile","points":2.75},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.46}]},"exploitSources":{"pocGithub":{"count":3,"skipped":0,"earliest":"2026-06-18","earliestUrl":"https://github.com/0xCyberstan/CVE-2026-46215-POC","repos":[{"name":"0xCyberstan/CVE-2026-46215-POC","url":"https://github.com/0xCyberstan/CVE-2026-46215-POC","stars":11,"created":"2026-06-18"},{"name":"bluedragonsecurity/CVE-2026-46215-exploit-linux-7.0-uaf-stable","url":"https://github.com/bluedragonsecurity/CVE-2026-46215-exploit-linux-7.0-uaf-stable","stars":5,"created":"2026-07-19"},{"name":"bluedragonsecurity/CVE-2026-46215-EXPLOIT","url":"https://github.com/bluedragonsecurity/CVE-2026-46215-EXPLOIT","stars":3,"created":"2026-07-11"}]},"first":{"date":"2026-06-18","source":"PoC-in-GitHub","url":"https://github.com/0xCyberstan/CVE-2026-46215-POC"},"provenance":"source"},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 53096728b8910c6916ecc6c46a5abc5c678b58d9, < 672464dd53231509c9c771110798c56d4660e19e",">= 53096728b8910c6916ecc6c46a5abc5c678b58d9, < 61bd96d3e5472c253f9c1ab77608f0c8aaa9d025",">= 53096728b8910c6916ecc6c46a5abc5c678b58d9, < 5e28b7b94408897e41c63477aabc9e1db439bc8c"]},{"vendor":"Linux","product":"Linux","versions":["6.18"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-07-09T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-32842","exploited":false,"provenance":"source"},"exploitRefs":["https://github.com/0xCyberstan/CVE-2026-46215-POC"]}