CVE-2022-49187
Last modified
CVE-2022-49187 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: clk: Fix clk_hw_get_clk() when dev is NULL Any registered clk_core structure can have a NULL pointer in its dev field. While never actually documented, this is evidenced by the wide usage of clk_register and clk_hw_register with a NULL device pointer, and the fact that the core of_clk_hw_register() function also passes a NULL device pointer. A call to clk_hw_get_clk() on a clk_hw struct whose clk_core is in that case will result in a NULL pointer derefence when it calls dev_name() on that NULL device pointer. Add a test for this case and use NULL as the dev_id if the device pointer is NULL.. EPSS estimates a 0.25% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: clk: Fix clk_hw_get_clk() when dev is NULL Any registered clk_core structure can have a NULL pointer in its dev field. While never actually documented, this is evidenced by the wide usage of clk_register and clk_hw_register with a NULL device pointer, and the fact that the core of_clk_hw_register() function also passes a NULL device pointer. A call to clk_hw_get_clk() on a clk_hw struct whose clk_core is in that case will result in a NULL pointer derefence when it calls dev_name() on that NULL device pointer. Add a test for this case and use NULL as the dev_id if the device pointer is NULL.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 5.11, < 5.15.33 |
| Linux | Linux Kernel | >= 5.16, < 5.16.19 |
| Linux | Linux Kernel | >= 5.17, < 5.17.2 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-49187?
How severe is CVE-2022-49187?
How do I fix CVE-2022-49187?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2022
- CVE-2022-49181Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2022-49182In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2022-49183In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49184In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49185In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49186In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2022-49188In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49189In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-4919Use after free in Base Internals in Google Chrome prior to 1…8.8
- CVE-2022-49190In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49191In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-49192In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2022-49187?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
