CVE-2026-46211
Severity CVSS v4.0:
Pending analysis
Type:
CWE-476
NULL Pointer Dereference
Publication date:
28/05/2026
Last modified:
10/06/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
drm/msm/gem: fix error handling in msm_ioctl_gem_info_get_metadata()<br />
<br />
msm_ioctl_gem_info_get_metadata() always returns 0 regardless of<br />
errors. When copy_to_user() fails or the user buffer is too small,<br />
the error code stored in ret is ignored because the function<br />
unconditionally returns 0. This causes userspace to believe the<br />
ioctl succeeded when it did not.<br />
<br />
Additionally, kmemdup() can return NULL on allocation failure, but<br />
the return value is not checked. This leads to a NULL pointer<br />
dereference in the subsequent copy_to_user() call.<br />
<br />
Add the missing NULL check for kmemdup() and return ret instead of 0.<br />
<br />
Note that the SET counterpart (msm_ioctl_gem_info_set_metadata)<br />
correctly returns ret.<br />
<br />
Patchwork: https://patchwork.freedesktop.org/patch/714478/
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.8 (including) | 6.12.90 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.13 (including) | 6.18.32 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.19 (including) | 7.0.9 (excluding) |
To consult the complete list of CPE names with products and versions, see this page



