Exploit database

Vulnerability

CVE-2026-46215

drm: Set old handle to NULL before prime swap in change_handle

Vulnerability details

Score
7.8
Severity
high

CVSS 3.1 · Linux

Vector string

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Description

In the Linux kernel, the following vulnerability has been resolved: drm: Set old handle to NULL before prime swap in change_handle There was a potential race condition in change_handle. The ioctl briefly had a single object with two idr entries; a concurrent gem_close could delete the object and remove one of the handles while leaving the other one dangling, which could subsequently be dereferenced for a use-after-free. To fix this, do the same dance that gem_close itself does. (f6cd7daecff5 drm: Release driver references to handle before making it available again) First idr_replace the old handle to NULL. Later, if the prime operations are successful, actually close it. create_tail required a similar dance to avoid a similar problem. (bd46cece51a3 drm/gem: Fix race in drm_gem_handle_create_tail()) It idr_allocs the new handle with NULL, then swaps in the correct object later to avoid races. We don't need to do that here, since the only operations that could race are drm_prime, and change_handle holds the prime lock for the entire duration. v2: cleanups of error paths

CVE Program

Exploit source choices

3 sources
0xcyberstan/cve-2026-46215-poc
GH-a6fc191cf75cbc8315be8588697826caGitHubUnofficial GitHub sourcePreferred

0xcyberstan/cve-2026-46215-poc source repository

2026-06-183 files · 11 stars
bluedragonsecurity/cve-2026-46215-exploit
GH-f91f9daf7104c4b9b2f89d72b99b9e82GitHubUnofficial GitHub source

This is an exploit for CVE-2026-46215 (Linux Kernel Use After Free) Adapted for Linux 7.0 !!! by Antonius (ev1lut10n / sw0rdm4n)

2026-07-116 files · 3 stars