{"id":"CVE-2022-50634","aliases":["CVE-2022-50634"],"related":[],"kind":"vulnerability","state":"published","title":"power: supply: cw2015: Fix potential null-ptr-deref in cw_bat_probe()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\npower: supply: cw2015: Corregir posible desreferencia de puntero nulo en cw_bat_probe()\n\ncw_bat_probe() llama a create_singlethread_workqueue() y no verificó el valor de retorno, el cual puede devolver NULL. Y una desreferencia de puntero nulo puede ocurrir:\n\ncw_bat_probe()\n    create_singlethread_workqueue() # falló, cw_bat  ->  wq es NULL\n    queue_delayed_work()\n        queue_delayed_work_on()\n            __queue_delayed_work()  # advertencia aquí, pero continúa\n                __queue_work()      # acceso a wq  ->  flags, desreferencia de puntero nulo\n\nVerificar el valor de retorno y devolver -ENOMEM si es NULL.","source":"nvd"}],"published":"2025-12-09T00:00:06.318Z","modified":"2026-11-11T23:10:00.263Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"b4c7715c10c106a041b0b3fabd26151c214ea394","fixed":"f7e2ba8ed08138102f21f3fe6414498c93177fd8","status":"affected"},{"type":"git","introduced":"b4c7715c10c106a041b0b3fabd26151c214ea394","fixed":"5150b76aa2eb8bb8feb7f7a048417f9d39c3dd04","status":"affected"},{"type":"git","introduced":"b4c7715c10c106a041b0b3fabd26151c214ea394","fixed":"97f2b4ddb0aa700d673691a7d5e44d226d22bab7","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.8","status":"unaffected"},{"type":"semver","introduced":"6.0.16","lastAffected":"6.0.*","status":"unaffected"},{"type":"semver","introduced":"6.1.2","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/f7e2ba8ed08138102f21f3fe6414498c93177fd8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5150b76aa2eb8bb8feb7f7a048417f9d39c3dd04","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/97f2b4ddb0aa700d673691a7d5e44d226d22bab7","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50634","url":"https://www.cve.org/CVERecord?id=CVE-2022-50634","licence":"CVE Terms of Use","modified":"2026-05-11T19:22:38.474Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50634","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50634","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:58:21.296Z","epss":{"score":0.00211,"percentile":0.12119,"date":"2026-12-01T12:00:22.000Z"}}