CVE-2022-49187

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-49187
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49187.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-49187
Downstream
Related
Published
2025-02-26T07:00:55Z
Modified
2025-08-09T20:01:28Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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

clk: Fix clkhwget_clk() when dev is NULL

Any registered clkcore structure can have a NULL pointer in its dev field. While never actually documented, this is evidenced by the wide usage of clkregister and clkhwregister with a NULL device pointer, and the fact that the core ofclkhw_register() function also passes a NULL device pointer.

A call to clkhwgetclk() on a clkhw struct whose clkcore is in that case will result in a NULL pointer derefence when it calls devname() on that NULL device pointer.

Add a test for this case and use NULL as the dev_id if the device pointer is NULL.

References

Affected packages