CVE-2024-27038
Linux Kernel Clock Vulnerability: NULL Dereference
Description
In the Linux kernel, the following vulnerability has been resolved: clk: Fix clk_core_get NULL dereference It is possible for clk_core_get to dereference a NULL in the following sequence: clk_core_get() of_clk_get_hw_from_clkspec() __of_clk_get_hw_from_provider() __clk_get_hw() __clk_get_hw() can return NULL which is dereferenced by clk_core_get() at hw->core. Prior to commit dde4eff47c82 ("clk: Look for parents with clkdev based clk_lookups") the check IS_ERR_OR_NULL() was performed which would have caught the NULL. Reading the description of this function it talks about returning NULL but that cannot be so at the moment. Update the function to check for hw before dereferencing it and return NULL if hw is NULL.
INFO
Published Date :
May 1, 2024, 1:15 p.m.
Last Modified :
Dec. 23, 2024, 2:11 p.m.
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Remotely Exploitable :
No
Impact Score :
3.6
Exploitability Score :
1.8
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-27038
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-27038
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-27038
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Dec. 23, 2024
Action Type Old Value New Value Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Added CWE NIST CWE-476 Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.2 up to (excluding) 5.4.273 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.5 up to (excluding) 5.10.214 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.153 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.83 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.23 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.7.11 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.8 up to (excluding) 6.8.2 Changed Reference Type https://git.kernel.org/stable/c/0efb9ef6fb95384ba631d6819e66f10392aabfa2 No Types Assigned https://git.kernel.org/stable/c/0efb9ef6fb95384ba631d6819e66f10392aabfa2 Patch Changed Reference Type https://git.kernel.org/stable/c/0efb9ef6fb95384ba631d6819e66f10392aabfa2 No Types Assigned https://git.kernel.org/stable/c/0efb9ef6fb95384ba631d6819e66f10392aabfa2 Patch Changed Reference Type https://git.kernel.org/stable/c/239174535dba11f7b83de0eaaa27909024f8c185 No Types Assigned https://git.kernel.org/stable/c/239174535dba11f7b83de0eaaa27909024f8c185 Patch Changed Reference Type https://git.kernel.org/stable/c/239174535dba11f7b83de0eaaa27909024f8c185 No Types Assigned https://git.kernel.org/stable/c/239174535dba11f7b83de0eaaa27909024f8c185 Patch Changed Reference Type https://git.kernel.org/stable/c/6f073b24a9e2becd25ac4505a9780a87e621bb51 No Types Assigned https://git.kernel.org/stable/c/6f073b24a9e2becd25ac4505a9780a87e621bb51 Patch Changed Reference Type https://git.kernel.org/stable/c/6f073b24a9e2becd25ac4505a9780a87e621bb51 No Types Assigned https://git.kernel.org/stable/c/6f073b24a9e2becd25ac4505a9780a87e621bb51 Patch Changed Reference Type https://git.kernel.org/stable/c/a5d9b1aa61b401867b9066d54086b3e4ee91f8ed No Types Assigned https://git.kernel.org/stable/c/a5d9b1aa61b401867b9066d54086b3e4ee91f8ed Patch Changed Reference Type https://git.kernel.org/stable/c/a5d9b1aa61b401867b9066d54086b3e4ee91f8ed No Types Assigned https://git.kernel.org/stable/c/a5d9b1aa61b401867b9066d54086b3e4ee91f8ed Patch Changed Reference Type https://git.kernel.org/stable/c/a8b2b26fdd011ebe36d68a9a321ca45801685959 No Types Assigned https://git.kernel.org/stable/c/a8b2b26fdd011ebe36d68a9a321ca45801685959 Patch Changed Reference Type https://git.kernel.org/stable/c/a8b2b26fdd011ebe36d68a9a321ca45801685959 No Types Assigned https://git.kernel.org/stable/c/a8b2b26fdd011ebe36d68a9a321ca45801685959 Patch Changed Reference Type https://git.kernel.org/stable/c/c554badcae9c45b737a22d23454170c6020b90e6 No Types Assigned https://git.kernel.org/stable/c/c554badcae9c45b737a22d23454170c6020b90e6 Patch Changed Reference Type https://git.kernel.org/stable/c/c554badcae9c45b737a22d23454170c6020b90e6 No Types Assigned https://git.kernel.org/stable/c/c554badcae9c45b737a22d23454170c6020b90e6 Patch Changed Reference Type https://git.kernel.org/stable/c/d7ae7d1265686b55832a445b1db8cdd69738ac07 No Types Assigned https://git.kernel.org/stable/c/d7ae7d1265686b55832a445b1db8cdd69738ac07 Patch Changed Reference Type https://git.kernel.org/stable/c/d7ae7d1265686b55832a445b1db8cdd69738ac07 No Types Assigned https://git.kernel.org/stable/c/d7ae7d1265686b55832a445b1db8cdd69738ac07 Patch Changed Reference Type https://git.kernel.org/stable/c/e97fe4901e0f59a0bfd524578fe3768f8ca42428 No Types Assigned https://git.kernel.org/stable/c/e97fe4901e0f59a0bfd524578fe3768f8ca42428 Patch Changed Reference Type https://git.kernel.org/stable/c/e97fe4901e0f59a0bfd524578fe3768f8ca42428 No Types Assigned https://git.kernel.org/stable/c/e97fe4901e0f59a0bfd524578fe3768f8ca42428 Patch Changed Reference Type https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html No Types Assigned https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html Mailing List, Third Party Advisory -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/0efb9ef6fb95384ba631d6819e66f10392aabfa2 Added Reference https://git.kernel.org/stable/c/239174535dba11f7b83de0eaaa27909024f8c185 Added Reference https://git.kernel.org/stable/c/6f073b24a9e2becd25ac4505a9780a87e621bb51 Added Reference https://git.kernel.org/stable/c/a5d9b1aa61b401867b9066d54086b3e4ee91f8ed Added Reference https://git.kernel.org/stable/c/a8b2b26fdd011ebe36d68a9a321ca45801685959 Added Reference https://git.kernel.org/stable/c/c554badcae9c45b737a22d23454170c6020b90e6 Added Reference https://git.kernel.org/stable/c/d7ae7d1265686b55832a445b1db8cdd69738ac07 Added Reference https://git.kernel.org/stable/c/e97fe4901e0f59a0bfd524578fe3768f8ca42428 Added Reference https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Nov. 05, 2024
Action Type Old Value New Value Removed Reference kernel.org https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 25, 2024
Action Type Old Value New Value Added Reference kernel.org https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html [No types assigned] -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
May. 29, 2024
Action Type Old Value New Value -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
May. 14, 2024
Action Type Old Value New Value -
CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
May. 01, 2024
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: clk: Fix clk_core_get NULL dereference It is possible for clk_core_get to dereference a NULL in the following sequence: clk_core_get() of_clk_get_hw_from_clkspec() __of_clk_get_hw_from_provider() __clk_get_hw() __clk_get_hw() can return NULL which is dereferenced by clk_core_get() at hw->core. Prior to commit dde4eff47c82 ("clk: Look for parents with clkdev based clk_lookups") the check IS_ERR_OR_NULL() was performed which would have caught the NULL. Reading the description of this function it talks about returning NULL but that cannot be so at the moment. Update the function to check for hw before dereferencing it and return NULL if hw is NULL. Added Reference kernel.org https://git.kernel.org/stable/c/d7ae7d1265686b55832a445b1db8cdd69738ac07 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/239174535dba11f7b83de0eaaa27909024f8c185 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/0efb9ef6fb95384ba631d6819e66f10392aabfa2 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/a8b2b26fdd011ebe36d68a9a321ca45801685959 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/a5d9b1aa61b401867b9066d54086b3e4ee91f8ed [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/c554badcae9c45b737a22d23454170c6020b90e6 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/6f073b24a9e2becd25ac4505a9780a87e621bb51 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/e97fe4901e0f59a0bfd524578fe3768f8ca42428 [No types assigned]
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-27038
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-27038
weaknesses.