CVE-2025-21968: drm/amd/display: Fix slab-use-after-free on hdcp_work
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: Fix slab-use-after-free on hdcp_work
[Why]
A slab-use-after-free is reported when HDCP is destroyed but the property_validate_dwork queue is still running.
[How]
Cancel the delayed work when destroying workqueue.
(cherry picked from commit 725a04ba5a95e89c89633d4322430cfbca7ce128)
The Linux kernel CVE team has assigned CVE-2025-21968 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.5 with commit da3fd7ac0bcf372cc57117bdfcd725cca7ef975a and fixed in 6.1.132 with commit 4964dbc4191ab436877a5e3ecd9c67a4e50b7c36 Issue introduced in 5.5 with commit da3fd7ac0bcf372cc57117bdfcd725cca7ef975a and fixed in 6.6.84 with commit 378b361e2e30e9729f9a7676f7926868d14f4326 Issue introduced in 5.5 with commit da3fd7ac0bcf372cc57117bdfcd725cca7ef975a and fixed in 6.12.20 with commit bac7b8b1a3f1a86eeec85835af106cbdc2b9d9f7 Issue introduced in 5.5 with commit da3fd7ac0bcf372cc57117bdfcd725cca7ef975a and fixed in 6.13.8 with commit 93d701064e56788663d7c5918fbe5e060d5df587 Issue introduced in 5.5 with commit da3fd7ac0bcf372cc57117bdfcd725cca7ef975a and fixed in 6.14 with commit e65e7bea220c3ce8c4c793b4ba35557f4994ab2b
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2025-21968
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/4964dbc4191ab436877a5e3ecd9c67a4e50b7c36 https://git.kernel.org/stable/c/378b361e2e30e9729f9a7676f7926868d14f4326 https://git.kernel.org/stable/c/bac7b8b1a3f1a86eeec85835af106cbdc2b9d9f7 https://git.kernel.org/stable/c/93d701064e56788663d7c5918fbe5e060d5df587 https://git.kernel.org/stable/c/e65e7bea220c3ce8c4c793b4ba35557f4994ab2b