{"id":"CVE-2022-49187","published":"2025-02-26T01:55:36Z","modified":"2026-05-11T18:54:48Z","title":"clk: Fix clk_hw_get_clk() when dev is NULL","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nclk: Fix clk_hw_get_clk() when dev is NULL\n\nAny registered clk_core structure can have a NULL pointer in its dev\nfield. While never actually documented, this is evidenced by the wide\nusage of clk_register and clk_hw_register with a NULL device pointer,\nand the fact that the core of_clk_hw_register() function also passes a\nNULL device pointer.\n\nA call to clk_hw_get_clk() on a clk_hw struct whose clk_core is in that\ncase will result in a NULL pointer derefence when it calls dev_name() on\nthat NULL device pointer.\n\nAdd a test for this case and use NULL as the dev_id if the device\npointer is NULL.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00268,"percentile":0.19383,"provenance":"source"},"cwes":[{"id":"CWE-476","name":"NULL Pointer Dereference"}],"references":[{"url":"https://git.kernel.org/stable/c/4be3e4c05d8dd1b83b75652cad88c9e752ec7054","tags":[]},{"url":"https://git.kernel.org/stable/c/d183f20cf5a7b546d4108e796b98210ceb317579","tags":[]},{"url":"https://git.kernel.org/stable/c/23f89fe005b105f0dcc55034c13eb89f9b570fac","tags":[]},{"url":"https://git.kernel.org/stable/c/0c1b56df451716ba207bbf59f303473643eee4fd","tags":[]}],"priority":{"score":7.7,"factors":[{"name":"EPSS percentile","points":3.88},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 30d6f8c15d2cd877c1f3d47d8a1064649ebe58e2, < 4be3e4c05d8dd1b83b75652cad88c9e752ec7054",">= 30d6f8c15d2cd877c1f3d47d8a1064649ebe58e2, < d183f20cf5a7b546d4108e796b98210ceb317579",">= 30d6f8c15d2cd877c1f3d47d8a1064649ebe58e2, < 23f89fe005b105f0dcc55034c13eb89f9b570fac",">= 30d6f8c15d2cd877c1f3d47d8a1064649ebe58e2, < 0c1b56df451716ba207bbf59f303473643eee4fd"]},{"vendor":"Linux","product":"Linux","versions":["5.11"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-01T19:47:18.677759Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-55039","exploited":false,"provenance":"source"}}