Description
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
devm_kzalloc()), while the usersoace still can try interacting with the
WB connector (which uses drmm_ functions).

Change dpu_writeback_init() to use drmm_.

Patchwork: https://patchwork.freedesktop.org/patch/722656/
Published: 2026-07-19
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability arises from mixing devm and drmm allocation functions in the msm display driver writeback initialization. When a userspace process retains a reference to a DRM device while the driver is torn down, the kernel frees the WB connector memory using devm_kzalloc, leaving userspace interactions with the connector to dereference invalid kernel memory. This use‑after‑free (CWE‑825) can cause a kernel crash or privilege escalation.

Affected Systems

Affected systems are Linux kernel implementations that include the DRM/msm/dpu driver. No specific kernel version range is listed, so all modern kernels using this driver are potentially impacted until the patch that replaces devm allocations with drmm allocations in dpu_writeback_init is deployed.

Risk and Exploitability

The CVSS score of 7.8 classifies the vulnerability as high. The EPSS score indicates a very low probability of exploitation. The vulnerability is not currently in CISA KEV. Because the issue is local to the kernel driver and requires a userspace process to hold a reference to the DRM device, the attack vector is likely privileged or local. Exploitation would probably result in kernel denial of service or privilege escalation if attacker gains control of kernel memory.

Generated by OpenCVE AI on July 30, 2026 at 20:52 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel update that includes the patch converting dpu_writeback_init to use drmm_ functions.
  • Reboot the system after installing the update to ensure the driver loads with the fixed code.
  • If an update is not immediately available, prevent any userspace application from holding persistent references to the DRM device until the patch is applied to avoid potential use‑after‑free crashes.

Generated by OpenCVE AI on July 30, 2026 at 20:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Ubuntu USN Ubuntu USN USN-8593-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8603-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8618-1 Linux kernel vulnerabilities
History

Tue, 21 Jul 2026 00:15:00 +0000


Mon, 20 Jul 2026 14:45:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Sun, 19 Jul 2026 16:15:00 +0000

Type Values Removed Values Added
Description 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 devm_kzalloc()), while the usersoace still can try interacting with the WB connector (which uses drmm_ functions). Change dpu_writeback_init() to use drmm_. Patchwork: https://patchwork.freedesktop.org/patch/722656/
Title drm/msm/dpu: don't mix devm and drmm functions
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-05T12:38:41.459Z

Reserved: 2026-07-19T07:54:57.029Z

Link: CVE-2026-64050

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

Severity :

Publid Date: 2026-07-19T00:00:00Z

Links: CVE-2026-64050 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T21:00:22Z

Weaknesses
  • CWE-825

    Expired Pointer Dereference