clk: sunxi-ng: common: Don't call hw_to_ccu_common on hw without common (Linux Linux)

CVE-2024-42100
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.24 % · percentile 15 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

Description

In the Linux kernel, the following vulnerability has been resolved: clk: sunxi-ng: common: Don't call hw_to_ccu_common on hw without common In order to set the rate range of a hw sunxi_ccu_probe calls hw_to_ccu_common() assuming all entries in desc->ccu_clks are contained in a ccu_common struct. This assumption is incorrect and, in consequence, causes invalid pointer de-references. Remove the faulty call. Instead, add one more loop that iterates over the ccu_clks and sets the rate range, if required.

Weaknesses (CWE)

  • CWE-476 — NULL Pointer Dereference

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 547263745e15a038ec3954b5c283805529377626 < 14c78d69dbca6a28af14095f639ec4318ec07fdc ; affected b914ec33b391ec766545a41f0cfc0de3e0b388d7 < 7a0e2738cb6da5a55c9908dff333600aeb263e07 ; affected b914ec33b391ec766545a41f0cfc0de3e0b388d7 < ea977d742507e534d9fe4f4d74256f6b7f589338 ; affected 761cbd9c0e4ed082b548bf6a0de25eebad24309d ; affected 6.6.31 < 6.6.39 ; affected 6.8.10 < 6.9
Linux · Linuxaffected 6.9 ; unaffected 0 < 6.9 ; unaffected 6.6.39 ≤ 6.6.* ; unaffected 6.9.9 ≤ 6.9.* ; unaffected 6.10 ≤ *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD