CVE-2026-46211 Details
Description
In the Linux kernel, the following vulnerability has been resolved: drm/msm/gem: fix error handling in msm_ioctl_gem_info_get_metadata() msm_ioctl_gem_info_get_metadata() always returns 0 regardless of errors. When copy_to_user() fails or the user buffer is too small, the error code stored in ret is ignored because the function unconditionally returns 0. This causes userspace to believe the ioctl succeeded when it did not. Additionally, kmemdup() can return NULL on allocation failure, but the return value is not checked. This leads to a NULL pointer dereference in the subsequent copy_to_user() call. Add the missing NULL check for kmemdup() and return ret instead of 0. Note that the SET counterpart (msm_ioctl_gem_info_set_metadata) correctly returns ret. Patchwork: https://patchwork.freedesktop.org/patch/714478/
A vulnerability has been identified in the Linux kernel's Direct Rendering Manager (DRM) for the Qualcomm Snapdragon Mobile Series (MSM) graphics driver. The issue arises in the GEM (Graphics Execution Manager) metadata handling, specifically within the 'msm_ioctl_gem_info_get_metadata' function. This function improperly manages error conditions by always returning 0, regardless of whether an error has occurred. When the 'copy_to_user' function fails or the user-provided buffer is insufficient, the function ignores the actual error code and misleadingly indicates success. Furthermore, the 'kmemdup' function, which duplicates memory, can return NULL if the memory allocation fails. The current implementation does not check for this potential NULL return, leading to a NULL pointer dereference when 'copy_to_user' is called. The vulnerability affects several versions of the Linux kernel.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been addressed. The official Linux kernel Git repository contains the patched version.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/47cbfe2608314b833ad61a65827d8fb363bc2d2d | kernel.org | Patch |
| https://git.kernel.org/stable/c/697e1a9559f6962f999cc4c748c2ffffcc0a7a7a | kernel.org | Patch |
| https://git.kernel.org/stable/c/b079e85c91f446f29e808d8291189e897f1884ff | kernel.org | Patch |
| https://git.kernel.org/stable/c/c57c861956b89f2e2528e6384d51e2dedd915809 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-476 | NULL Pointer Dereference | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.8, < 6.12.90 >= 6.13, < 6.18.32 >= 6.19, < 7.0.9 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 10, 2026 | Initial Analysis | [email protected] |
| May 28, 2026 | New CVE Received | kernel.org |