PT-2025-51562 · Linux+2 · Linux Kernel+2
Published
2025-09-23
·
Updated
2026-05-07
·
CVE-2025-40346
CVSS v2.0
4.4
Medium
| Vector | AV:L/AC:M/Au:S/C:N/I:N/A:C |
Name of the Vulnerable Software and Affected Versions
Linux kernel (affected versions not specified)
Description
The Linux kernel contains a flaw in the
topology parse cpu capacity() function within the arch topology code. The function incorrectly uses PTR ERR OR ZERO() which can lead to the code proceeding with NULL clock pointers. Specifically, the logic !PTR ERR OR ZERO(cpu clk) evaluates to true for both valid pointers and NULL pointers, potentially causing a NULL pointer dereference in the clk get rate() function when of clk get() returns NULL. The issue arises from the behavior of PTR ERR OR ZERO() as defined in include/linux/err.h, which returns 0 for both valid pointers and NULL pointers. This incorrect check can lead to calling clk get rate() with a NULL pointer.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
NULL Pointer Dereference
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Linuxmint
Linux Kernel
Ubuntu