CVE-2025-38318: perf: arm-ni: Fix missing platform_set_drvdata()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
perf: arm-ni: Fix missing platform_set_drvdata()
Add missing platform_set_drvdata in arm_ni_probe(), otherwise calling platform_get_drvdata() in remove returns NULL.
The Linux kernel CVE team has assigned CVE-2025-38318 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.12 with commit 4d5a7680f2b4d0c2955e1d9f9a594b050d637436 and fixed in 6.12.34 with commit 8e43fa9c713a6d084a5732aa6dd41c734845f25e Issue introduced in 6.12 with commit 4d5a7680f2b4d0c2955e1d9f9a594b050d637436 and fixed in 6.15.3 with commit 498129a868ce966af277841f7e32e9f76b3779ad Issue introduced in 6.12 with commit 4d5a7680f2b4d0c2955e1d9f9a594b050d637436 and fixed in 6.16-rc1 with commit fc5106088d6db75df61308ef6de314d1f7959646
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-38318
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/perf/arm-ni.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/8e43fa9c713a6d084a5732aa6dd41c734845f25e https://git.kernel.org/stable/c/498129a868ce966af277841f7e32e9f76b3779ad https://git.kernel.org/stable/c/fc5106088d6db75df61308ef6de314d1f7959646