{"api_version":"1","generated_at":"2026-07-24T19:09:00+00:00","cve":"CVE-2024-27038","urls":{"html":"https://cve.report/CVE-2024-27038","api":"https://cve.report/api/cve/CVE-2024-27038.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-27038","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-27038"},"summary":{"title":"clk: Fix clk_core_get NULL dereference","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nclk: Fix clk_core_get NULL dereference\n\nIt is possible for clk_core_get to dereference a NULL in the following\nsequence:\n\nclk_core_get()\n    of_clk_get_hw_from_clkspec()\n        __of_clk_get_hw_from_provider()\n            __clk_get_hw()\n\n__clk_get_hw() can return NULL which is dereferenced by clk_core_get() at\nhw->core.\n\nPrior to commit dde4eff47c82 (\"clk: Look for parents with clkdev based\nclk_lookups\") the check IS_ERR_OR_NULL() was performed which would have\ncaught the NULL.\n\nReading the description of this function it talks about returning NULL but\nthat cannot be so at the moment.\n\nUpdate the function to check for hw before dereferencing it and return NULL\nif hw is NULL.","state":"PUBLISHED","assigner":"Linux","published_at":"2024-05-01 13:15:49","updated_at":"2026-05-12 12:16:30"},"problem_types":["CWE-476"],"metrics":[{"version":"3.1","source":"nvd@nist.gov","type":"Primary","score":"5.5","severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","baseScore":5.5,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"}}],"references":[{"url":"https://git.kernel.org/stable/c/239174535dba11f7b83de0eaaa27909024f8c185","name":"https://git.kernel.org/stable/c/239174535dba11f7b83de0eaaa27909024f8c185","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a8b2b26fdd011ebe36d68a9a321ca45801685959","name":"https://git.kernel.org/stable/c/a8b2b26fdd011ebe36d68a9a321ca45801685959","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","name":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Mailing List","Third Party Advisory"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/6f073b24a9e2becd25ac4505a9780a87e621bb51","name":"https://git.kernel.org/stable/c/6f073b24a9e2becd25ac4505a9780a87e621bb51","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/0efb9ef6fb95384ba631d6819e66f10392aabfa2","name":"https://git.kernel.org/stable/c/0efb9ef6fb95384ba631d6819e66f10392aabfa2","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","name":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","refsource":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c554badcae9c45b737a22d23454170c6020b90e6","name":"https://git.kernel.org/stable/c/c554badcae9c45b737a22d23454170c6020b90e6","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d7ae7d1265686b55832a445b1db8cdd69738ac07","name":"https://git.kernel.org/stable/c/d7ae7d1265686b55832a445b1db8cdd69738ac07","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a5d9b1aa61b401867b9066d54086b3e4ee91f8ed","name":"https://git.kernel.org/stable/c/a5d9b1aa61b401867b9066d54086b3e4ee91f8ed","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/e97fe4901e0f59a0bfd524578fe3768f8ca42428","name":"https://git.kernel.org/stable/c/e97fe4901e0f59a0bfd524578fe3768f8ca42428","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-27038","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27038","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected dde4eff47c82c52a72af333d9e55370eee6d95d6 d7ae7d1265686b55832a445b1db8cdd69738ac07 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected dde4eff47c82c52a72af333d9e55370eee6d95d6 239174535dba11f7b83de0eaaa27909024f8c185 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected dde4eff47c82c52a72af333d9e55370eee6d95d6 0efb9ef6fb95384ba631d6819e66f10392aabfa2 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected dde4eff47c82c52a72af333d9e55370eee6d95d6 a8b2b26fdd011ebe36d68a9a321ca45801685959 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected dde4eff47c82c52a72af333d9e55370eee6d95d6 a5d9b1aa61b401867b9066d54086b3e4ee91f8ed git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected dde4eff47c82c52a72af333d9e55370eee6d95d6 c554badcae9c45b737a22d23454170c6020b90e6 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected dde4eff47c82c52a72af333d9e55370eee6d95d6 6f073b24a9e2becd25ac4505a9780a87e621bb51 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected dde4eff47c82c52a72af333d9e55370eee6d95d6 e97fe4901e0f59a0bfd524578fe3768f8ca42428 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.2","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.2 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.4.273 5.4.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.214 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.153 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.83 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.23 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.7.11 6.7.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.8.2 6.8.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.9 * original_commit_for_fix","platforms":[]},{"source":"ADP","vendor":"Siemens","product":"SIMATIC S7-1500 TM MFP - GNU/Linux subsystem","version":"affected * custom","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2024","cve_id":"27038","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"linux","cpe5":"linux_kernel","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"metrics":[{"other":{"content":{"id":"CVE-2024-27038","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","timestamp":"2024-05-01T13:38:53.856287Z","version":"2.0.3"},"type":"ssvc"}}],"providerMetadata":{"dateUpdated":"2024-07-05T17:22:44.741Z","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP"},"title":"CISA ADP Vulnrichment"},{"providerMetadata":{"dateUpdated":"2024-08-02T00:21:05.879Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"tags":["x_transferred"],"url":"https://git.kernel.org/stable/c/d7ae7d1265686b55832a445b1db8cdd69738ac07"},{"tags":["x_transferred"],"url":"https://git.kernel.org/stable/c/239174535dba11f7b83de0eaaa27909024f8c185"},{"tags":["x_transferred"],"url":"https://git.kernel.org/stable/c/0efb9ef6fb95384ba631d6819e66f10392aabfa2"},{"tags":["x_transferred"],"url":"https://git.kernel.org/stable/c/a8b2b26fdd011ebe36d68a9a321ca45801685959"},{"tags":["x_transferred"],"url":"https://git.kernel.org/stable/c/a5d9b1aa61b401867b9066d54086b3e4ee91f8ed"},{"tags":["x_transferred"],"url":"https://git.kernel.org/stable/c/c554badcae9c45b737a22d23454170c6020b90e6"},{"tags":["x_transferred"],"url":"https://git.kernel.org/stable/c/6f073b24a9e2becd25ac4505a9780a87e621bb51"},{"tags":["x_transferred"],"url":"https://git.kernel.org/stable/c/e97fe4901e0f59a0bfd524578fe3768f8ca42428"},{"tags":["x_transferred"],"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html"}],"title":"CVE Program Container"},{"affected":[{"defaultStatus":"unknown","product":"SIMATIC S7-1500 TM MFP - GNU/Linux subsystem","vendor":"Siemens","versions":[{"lessThan":"*","status":"affected","version":"0","versionType":"custom"}]}],"providerMetadata":{"dateUpdated":"2026-05-12T11:51:15.740Z","orgId":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","shortName":"siemens-SADP"},"references":[{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html"}],"x_adpType":"supplier"}],"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/clk/clk.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"d7ae7d1265686b55832a445b1db8cdd69738ac07","status":"affected","version":"dde4eff47c82c52a72af333d9e55370eee6d95d6","versionType":"git"},{"lessThan":"239174535dba11f7b83de0eaaa27909024f8c185","status":"affected","version":"dde4eff47c82c52a72af333d9e55370eee6d95d6","versionType":"git"},{"lessThan":"0efb9ef6fb95384ba631d6819e66f10392aabfa2","status":"affected","version":"dde4eff47c82c52a72af333d9e55370eee6d95d6","versionType":"git"},{"lessThan":"a8b2b26fdd011ebe36d68a9a321ca45801685959","status":"affected","version":"dde4eff47c82c52a72af333d9e55370eee6d95d6","versionType":"git"},{"lessThan":"a5d9b1aa61b401867b9066d54086b3e4ee91f8ed","status":"affected","version":"dde4eff47c82c52a72af333d9e55370eee6d95d6","versionType":"git"},{"lessThan":"c554badcae9c45b737a22d23454170c6020b90e6","status":"affected","version":"dde4eff47c82c52a72af333d9e55370eee6d95d6","versionType":"git"},{"lessThan":"6f073b24a9e2becd25ac4505a9780a87e621bb51","status":"affected","version":"dde4eff47c82c52a72af333d9e55370eee6d95d6","versionType":"git"},{"lessThan":"e97fe4901e0f59a0bfd524578fe3768f8ca42428","status":"affected","version":"dde4eff47c82c52a72af333d9e55370eee6d95d6","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/clk/clk.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.2"},{"lessThan":"5.2","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.4.*","status":"unaffected","version":"5.4.273","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.214","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.153","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.83","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.23","versionType":"semver"},{"lessThanOrEqual":"6.7.*","status":"unaffected","version":"6.7.11","versionType":"semver"},{"lessThanOrEqual":"6.8.*","status":"unaffected","version":"6.8.2","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"6.9","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.4.273","versionStartIncluding":"5.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.214","versionStartIncluding":"5.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.153","versionStartIncluding":"5.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.83","versionStartIncluding":"5.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.23","versionStartIncluding":"5.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.7.11","versionStartIncluding":"5.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.8.2","versionStartIncluding":"5.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.9","versionStartIncluding":"5.2","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nclk: Fix clk_core_get NULL dereference\n\nIt is possible for clk_core_get to dereference a NULL in the following\nsequence:\n\nclk_core_get()\n    of_clk_get_hw_from_clkspec()\n        __of_clk_get_hw_from_provider()\n            __clk_get_hw()\n\n__clk_get_hw() can return NULL which is dereferenced by clk_core_get() at\nhw->core.\n\nPrior to commit dde4eff47c82 (\"clk: Look for parents with clkdev based\nclk_lookups\") the check IS_ERR_OR_NULL() was performed which would have\ncaught the NULL.\n\nReading the description of this function it talks about returning NULL but\nthat cannot be so at the moment.\n\nUpdate the function to check for hw before dereferencing it and return NULL\nif hw is NULL."}],"providerMetadata":{"dateUpdated":"2026-05-11T20:09:13.165Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/d7ae7d1265686b55832a445b1db8cdd69738ac07"},{"url":"https://git.kernel.org/stable/c/239174535dba11f7b83de0eaaa27909024f8c185"},{"url":"https://git.kernel.org/stable/c/0efb9ef6fb95384ba631d6819e66f10392aabfa2"},{"url":"https://git.kernel.org/stable/c/a8b2b26fdd011ebe36d68a9a321ca45801685959"},{"url":"https://git.kernel.org/stable/c/a5d9b1aa61b401867b9066d54086b3e4ee91f8ed"},{"url":"https://git.kernel.org/stable/c/c554badcae9c45b737a22d23454170c6020b90e6"},{"url":"https://git.kernel.org/stable/c/6f073b24a9e2becd25ac4505a9780a87e621bb51"},{"url":"https://git.kernel.org/stable/c/e97fe4901e0f59a0bfd524578fe3768f8ca42428"}],"title":"clk: Fix clk_core_get NULL dereference","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2024-27038","datePublished":"2024-05-01T12:53:53.698Z","dateReserved":"2024-02-19T14:20:24.212Z","dateUpdated":"2026-05-12T11:51:15.740Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2024-05-01 13:15:49","lastModifiedDate":"2026-05-12 12:16:30","problem_types":["CWE-476"],"metrics":{"cvssMetricV31":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","baseScore":5.5,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":3.6}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"5.4.273","matchCriteriaId":"C8198019-F459-4131-98A0-A65115E7E9AA"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"5.10.214","matchCriteriaId":"65987874-467B-4D3B-91D6-68A129B34FB8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"5.15.153","matchCriteriaId":"ACB69438-845D-4E3C-B114-3140611F9C0B"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.1.83","matchCriteriaId":"121A07F6-F505-4C47-86BF-9BB6CC7B6C19"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.6.23","matchCriteriaId":"E00814DC-0BA7-431A-9926-80FEB4A96C68"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.7.11","matchCriteriaId":"9B95D3A6-E162-47D5-ABFC-F3FA74FA7CFD"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"6.8.2","matchCriteriaId":"543A75FF-25B8-4046-A514-1EA8EDD87AB1"}]}]},{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","matchCriteriaId":"07B237A9-69A3-4A9C-9DA0-4E06BD37AE73"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2024","CveId":"27038","Ordinal":"1","Title":"clk: Fix clk_core_get NULL dereference","CVE":"CVE-2024-27038","Year":"2024"},"notes":[{"CveYear":"2024","CveId":"27038","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nclk: Fix clk_core_get NULL dereference\n\nIt is possible for clk_core_get to dereference a NULL in the following\nsequence:\n\nclk_core_get()\n    of_clk_get_hw_from_clkspec()\n        __of_clk_get_hw_from_provider()\n            __clk_get_hw()\n\n__clk_get_hw() can return NULL which is dereferenced by clk_core_get() at\nhw->core.\n\nPrior to commit dde4eff47c82 (\"clk: Look for parents with clkdev based\nclk_lookups\") the check IS_ERR_OR_NULL() was performed which would have\ncaught the NULL.\n\nReading the description of this function it talks about returning NULL but\nthat cannot be so at the moment.\n\nUpdate the function to check for hw before dereferencing it and return NULL\nif hw is NULL.","Type":"Description","Title":"clk: Fix clk_core_get NULL dereference"}]}}}