CVE-2026-46211: drm/msm/gem: fix error handling in msm_ioctl_gem_info_get_metadata()

Published May 28, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

drm/msm/gem: fix error handling in msmioctlgeminfogetmetadata()

msmioctlgeminfogetmetadata() always returns 0 regardless of errors. When copytouser() 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 copytouser() call.

Add the missing NULL check for kmemdup() and return ret instead of 0.

Note that the SET counterpart (msmioctlgeminfosetmetadata) correctly returns ret.

Patchwork: https://patchwork.freedesktop.org/patch/714478/

Affected Software

4 affected components
Linux Linux kernel
Linux Linux kernel>=6.8<6.12.90
Linux Linux kernel>=6.13<6.18.32
Linux Linux kernel>=6.19<7.0.9

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/kernel drm/msm/gem to a version that resolves this vulnerability.

    Patch 714478

Event History

May 28, 2026
CVE Published
via MITRE·09:40 AM
Data Sourced
via MITRE·09:40 AM
Description
Data Sourced
via NVD·10:16 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-46211?

The severity of CVE-2026-46211 is assessed as 23.

2

How do I fix CVE-2026-46211?

To fix CVE-2026-46211, ensure that you apply the appropriate patch or update for the Linux kernel that addresses this vulnerability.

3

What vulnerabilities does CVE-2026-46211 address?

CVE-2026-46211 addresses the error handling issue in msm_ioctl_gem_info_get_metadata() in the Linux kernel.

4

Who is affected by CVE-2026-46211?

Any system running the affected versions of the Linux kernel with the drm/msm/gem module is vulnerable to CVE-2026-46211.

5

What component is impacted by CVE-2026-46211?

CVE-2026-46211 impacts the drm/msm/gem module in the Linux kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203