CVE-2025-22099: drm: xlnx: zynqmp_dpsub: Add NULL check in zynqmp_audio_init
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm: xlnx: zynqmp_dpsub: Add NULL check in zynqmp_audio_init
devm_kasprintf() calls can return null pointers on failure. But some return values were not checked in zynqmp_audio_init().
Add NULL check in zynqmp_audio_init(), avoid referencing null pointers in the subsequent code.
The Linux kernel CVE team has assigned CVE-2025-22099 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.14 with commit 3ec5c15793051c9fe102ed0674c7925a56205385 and fixed in 6.14.2 with commit 066d6f22e7d84953db6bbf2dae507401157660c6 Issue introduced in 6.14 with commit 3ec5c15793051c9fe102ed0674c7925a56205385 and fixed in 6.15-rc1 with commit d0660f9c588a1246a1a543c91a1e3cad910237da
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-22099
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/xlnx/zynqmp_dp_audio.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/066d6f22e7d84953db6bbf2dae507401157660c6 https://git.kernel.org/stable/c/d0660f9c588a1246a1a543c91a1e3cad910237da