Linux
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 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/
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0b37ac63fc9db7779168ad18d7e6e8ab9df6a40b, < ff58e5ef1b46ce614af048d2d04986df05ffab90
- >= 0b37ac63fc9db7779168ad18d7e6e8ab9df6a40b, < 95048a12f48c627bc2ccc4d84f87640630ba2bdb
- >= 0b37ac63fc9db7779168ad18d7e6e8ab9df6a40b, < c0c70a11365cba7fba25a77463582bcec0f7846e
Fixed in ff58e5ef1b46ce614af048d2d04986df05ffab90, 95048a12f48c627bc2ccc4d84f87640630ba2bdb, c0c70a11365cba7fba25a77463582bcec0f7846e
- 6.18
Fixed in 0, 6.18.34, 7.0.11, 7.1
Mitigation
Upgrade Linux to ff58e5ef1b46ce614af048d2d04986df05ffab90 or 95048a12f48c627bc2ccc4d84f87640630ba2bdb or c0c70a11365cba7fba25a77463582bcec0f7846e or later.
Upgrade Linux to 0 or 6.18.34 or 7.0.11 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.