{"id":"CVE-2024-42100","state":"PUBLISHED","title":"clk: sunxi-ng: common: Don't call hw_to_ccu_common on hw without common","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nclk: sunxi-ng: common: Don't call hw_to_ccu_common on hw without common\n\nIn order to set the rate range of a hw sunxi_ccu_probe calls\nhw_to_ccu_common() assuming all entries in desc->ccu_clks are contained\nin a ccu_common struct. This assumption is incorrect and, in\nconsequence, causes invalid pointer de-references.\n\nRemove the faulty call. Instead, add one more loop that iterates over\nthe ccu_clks and sets the rate range, if required.","publishedAt":"2024-07-30T07:45:56.462Z","updatedAt":"2026-05-23T15:52:02.749Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"547263745e15a038ec3954b5c283805529377626","status":"affected","lessThan":"14c78d69dbca6a28af14095f639ec4318ec07fdc","versionType":"git"},{"version":"b914ec33b391ec766545a41f0cfc0de3e0b388d7","status":"affected","lessThan":"7a0e2738cb6da5a55c9908dff333600aeb263e07","versionType":"git"},{"version":"b914ec33b391ec766545a41f0cfc0de3e0b388d7","status":"affected","lessThan":"ea977d742507e534d9fe4f4d74256f6b7f589338","versionType":"git"},{"version":"761cbd9c0e4ed082b548bf6a0de25eebad24309d","status":"affected","versionType":"git"},{"version":"6.6.31","status":"affected","lessThan":"6.6.39","versionType":"semver"},{"version":"6.8.10","status":"affected","lessThan":"6.9","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/clk/sunxi-ng/ccu_common.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.9","versionType":"semver"},{"version":"6.6.39","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.9.9","status":"unaffected","lessThanOrEqual":"6.9.*","versionType":"semver"},{"version":"6.10","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/clk/sunxi-ng/ccu_common.c"]}],"references":["https://git.kernel.org/stable/c/14c78d69dbca6a28af14095f639ec4318ec07fdc","https://git.kernel.org/stable/c/7a0e2738cb6da5a55c9908dff333600aeb263e07","https://git.kernel.org/stable/c/ea977d742507e534d9fe4f4d74256f6b7f589338"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:47.831Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/42xxx/CVE-2024-42100.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-42100","state":"PUBLISHED","datePublished":"2024-07-30T07:45:56.462Z","dateUpdated":"2026-05-23T15:52:02.749Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-07-29T15:50:41.173Z"},"containers":{"cna":{"title":"clk: sunxi-ng: common: Don't call hw_to_ccu_common on hw without common","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nclk: sunxi-ng: common: Don't call hw_to_ccu_common on hw without common\n\nIn order to set the rate range of a hw sunxi_ccu_probe calls\nhw_to_ccu_common() assuming all entries in desc->ccu_clks are contained\nin a ccu_common struct. This assumption is incorrect and, in\nconsequence, causes invalid pointer de-references.\n\nRemove the faulty call. Instead, add one more loop that iterates over\nthe ccu_clks and sets the rate range, if required."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"547263745e15a038ec3954b5c283805529377626","status":"affected","lessThan":"14c78d69dbca6a28af14095f639ec4318ec07fdc","versionType":"git"},{"version":"b914ec33b391ec766545a41f0cfc0de3e0b388d7","status":"affected","lessThan":"7a0e2738cb6da5a55c9908dff333600aeb263e07","versionType":"git"},{"version":"b914ec33b391ec766545a41f0cfc0de3e0b388d7","status":"affected","lessThan":"ea977d742507e534d9fe4f4d74256f6b7f589338","versionType":"git"},{"version":"761cbd9c0e4ed082b548bf6a0de25eebad24309d","status":"affected","versionType":"git"},{"version":"6.6.31","status":"affected","lessThan":"6.6.39","versionType":"semver"},{"version":"6.8.10","status":"affected","lessThan":"6.9","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/clk/sunxi-ng/ccu_common.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.9","versionType":"semver"},{"version":"6.6.39","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.9.9","status":"unaffected","lessThanOrEqual":"6.9.*","versionType":"semver"},{"version":"6.10","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/clk/sunxi-ng/ccu_common.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/14c78d69dbca6a28af14095f639ec4318ec07fdc"},{"url":"https://git.kernel.org/stable/c/7a0e2738cb6da5a55c9908dff333600aeb263e07"},{"url":"https://git.kernel.org/stable/c/ea977d742507e534d9fe4f4d74256f6b7f589338"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-23T15:52:02.749Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6.31","versionEndExcluding":"6.6.39"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"6.9.9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"6.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8.10"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/14c78d69dbca6a28af14095f639ec4318ec07fdc","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/7a0e2738cb6da5a55c9908dff333600aeb263e07","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/ea977d742507e534d9fe4f4d74256f6b7f589338","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T04:54:31.811Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-42100","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T16:18:05.695345Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-11T17:32:59.660Z"}}]}}}