CVE-2026-64050: drm/msm/dpu: don't mix devm and drmm functions
In the Linux kernel, the following vulnerability has been resolved:
drm/msm/dpu: don't mix devm and drmm functions
Mixing devm and drmm functions will result in a use-after-free on msm driver teardown if userspace keeps a reference on the drm device: The WB connector data will be destroyed because of the use of devmkzalloc()), while the usersoace still can try interacting with the WB connector (which uses drmm functions).
Change dpuwritebackinit() to use drmm.
Patchwork: https://patchwork.freedesktop.org/patch/722656/
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Change dpu_writeback_init() to use drmm_ functions instead of devm_ functions, avoiding mixing devm and drmm resource management for the writeback connector.
Linux kernel drm/msm/dpu dpu_writeback_init() memory allocation = drmm_