CVE-2025-68235: nouveau/firmware: Add missing kfree() of nvkm_falcon_fw::boot
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
nouveau/firmware: Add missing kfree() of nvkm_falcon_fw::boot
nvkm_falcon_fw::boot is allocated, but no one frees it. This causes a kmemleak warning.
Make sure this data is deallocated.
The Linux kernel CVE team has assigned CVE-2025-68235 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.2 with commit 2541626cfb794e57ba0575a6920826f591f7ced0 and fixed in 6.6.118 with commit 7d1977b4ae5c50e1aafc5c51500fc08bd7afd6a0 Issue introduced in 6.2 with commit 2541626cfb794e57ba0575a6920826f591f7ced0 and fixed in 6.12.60 with commit 6492add9a3a163d5e0390428d2636adc3e61b883 Issue introduced in 6.2 with commit 2541626cfb794e57ba0575a6920826f591f7ced0 and fixed in 6.17.10 with commit 2bba02a39bfb383bd1a95868d532c0917e38f9e7 Issue introduced in 6.2 with commit 2541626cfb794e57ba0575a6920826f591f7ced0 and fixed in 6.18 with commit 949f1fd2225baefbea2995afa807dba5cbdb6bd3
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-68235
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/nouveau/nvkm/falcon/fw.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/7d1977b4ae5c50e1aafc5c51500fc08bd7afd6a0 https://git.kernel.org/stable/c/6492add9a3a163d5e0390428d2636adc3e61b883 https://git.kernel.org/stable/c/2bba02a39bfb383bd1a95868d532c0917e38f9e7 https://git.kernel.org/stable/c/949f1fd2225baefbea2995afa807dba5cbdb6bd3