{"id":"CVE-2022-50634","published":"2025-12-09T00:00:06Z","modified":"2026-05-11T19:22:38Z","title":"power: supply: cw2015: Fix potential null-ptr-deref in cw_bat_probe()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\npower: supply: cw2015: Fix potential null-ptr-deref in cw_bat_probe()\n\ncw_bat_probe() calls create_singlethread_workqueue() and not checked the\nret value, which may return NULL. And a null-ptr-deref may happen:\n\ncw_bat_probe()\n    create_singlethread_workqueue() # failed, cw_bat->wq is NULL\n    queue_delayed_work()\n        queue_delayed_work_on()\n            __queue_delayed_work()  # warning here, but continue\n                __queue_work()      # access wq->flags, null-ptr-deref\n\nCheck the ret value and return -ENOMEM if it is NULL.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00211,"percentile":0.11455,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/f7e2ba8ed08138102f21f3fe6414498c93177fd8","tags":[]},{"url":"https://git.kernel.org/stable/c/5150b76aa2eb8bb8feb7f7a048417f9d39c3dd04","tags":[]},{"url":"https://git.kernel.org/stable/c/97f2b4ddb0aa700d673691a7d5e44d226d22bab7","tags":[]}],"priority":{"score":2.3,"factors":[{"name":"EPSS percentile","points":2.29}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= b4c7715c10c106a041b0b3fabd26151c214ea394, < f7e2ba8ed08138102f21f3fe6414498c93177fd8",">= b4c7715c10c106a041b0b3fabd26151c214ea394, < 5150b76aa2eb8bb8feb7f7a048417f9d39c3dd04",">= b4c7715c10c106a041b0b3fabd26151c214ea394, < 97f2b4ddb0aa700d673691a7d5e44d226d22bab7"]},{"vendor":"Linux","product":"Linux","versions":["5.8"]}],"euvd":{"id":"EUVD-2022-55722","exploited":false,"provenance":"source"}}