drm: Do not allow userspace to trigger kernel warnings in drm_gem_change_handle_ioctl()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel ae8831ee0fb2f5f41f39722e7b3749d65bb78d08, Kernel 6.18.9 and Kernel 12f15d52d38ac53f7c70ea3d4b3d76afed04e064.
In the Linux kernel, the following vulnerability has been resolved: drm: Do not allow userspace to trigger kernel warnings in drm_gem_change_handle_ioctl() Since GEM bo handles are u32 in the uapi and the internal implementation uses idr_alloc() which uses int ranges, passing a new handle larger than INT_MAX trivially triggers a kernel warning: idr_alloc(): ... if (WARN_ON_ONCE(start < 0)) return -EINVAL; ... Fix it by rejecting new handles above INT_MAX and at the same time make the end limit calculation more obvious by moving into int domain.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=53096728b8910c6916ecc6c46a5abc5c678b58d9 <ae8831ee0fb2f5f41f39722e7b3749d65bb78d08, =6.19, >=6.18 <6.18.9, =6.18, >=53096728b8910c6916ecc6c46a5abc5c678b58d9 <12f15d52d38ac53f7c70ea3d4b3d76afed04e064 | ae8831ee0fb2f5f41f39722e7b3749d65bb78d08, 6.18.9, 12f15d52d38ac53f7c70ea3d4b3d76afed04e064 |
| linux-kernel: Kernel | >=6.18.0 <6.18.9 | 6.18.9 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket