CVE-2024-27038

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-27038
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-27038.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-27038
Downstream
Related
Published
2024-05-01T12:53:53.698Z
Modified
2025-11-27T19:35:01.277137Z
Summary
clk: Fix clk_core_get NULL dereference
Details

In the Linux kernel, the following vulnerability has been resolved:

clk: Fix clkcoreget NULL dereference

It is possible for clkcoreget to dereference a NULL in the following sequence:

clkcoreget() ofclkgethwfromclkspec() _ofclkgethwfromprovider() _clkgethw()

_clkgethw() can return NULL which is dereferenced by clkcore_get() at hw->core.

Prior to commit dde4eff47c82 ("clk: Look for parents with clkdev based clklookups") the check ISERRORNULL() 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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/blob/ee626f5d79d5817bb21d6f048dc0da4c4e383443/cves/2024/27xxx/CVE-2024-27038.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
dde4eff47c82c52a72af333d9e55370eee6d95d6
Fixed
d7ae7d1265686b55832a445b1db8cdd69738ac07
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
dde4eff47c82c52a72af333d9e55370eee6d95d6
Fixed
239174535dba11f7b83de0eaaa27909024f8c185
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
dde4eff47c82c52a72af333d9e55370eee6d95d6
Fixed
0efb9ef6fb95384ba631d6819e66f10392aabfa2
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
dde4eff47c82c52a72af333d9e55370eee6d95d6
Fixed
a8b2b26fdd011ebe36d68a9a321ca45801685959
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
dde4eff47c82c52a72af333d9e55370eee6d95d6
Fixed
a5d9b1aa61b401867b9066d54086b3e4ee91f8ed
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
dde4eff47c82c52a72af333d9e55370eee6d95d6
Fixed
c554badcae9c45b737a22d23454170c6020b90e6
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
dde4eff47c82c52a72af333d9e55370eee6d95d6
Fixed
6f073b24a9e2becd25ac4505a9780a87e621bb51
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
dde4eff47c82c52a72af333d9e55370eee6d95d6
Fixed
e97fe4901e0f59a0bfd524578fe3768f8ca42428

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.2.0
Fixed
5.4.273
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.214
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.153
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.83
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.23
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.7.11
Type
ECOSYSTEM
Events
Introduced
6.8.0
Fixed
6.8.2