CVE-2022-50634
Awaiting Analysis Awaiting Analysis - Queue
BaseFortify

Publication date: 2025-12-09

Last updated on: 2025-12-09

Assigner: kernel.org

Description
In the Linux kernel, the following vulnerability has been resolved: power: supply: cw2015: Fix potential null-ptr-deref in cw_bat_probe() cw_bat_probe() calls create_singlethread_workqueue() and not checked the ret value, which may return NULL. And a null-ptr-deref may happen: cw_bat_probe() create_singlethread_workqueue() # failed, cw_bat->wq is NULL queue_delayed_work() queue_delayed_work_on() __queue_delayed_work() # warning here, but continue __queue_work() # access wq->flags, null-ptr-deref Check the ret value and return -ENOMEM if it is NULL.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-12-09
Last Modified
2025-12-09
Generated
2026-05-07
AI Q&A
2025-12-09
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Currently, no data is known.
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability is a potential null pointer dereference in the Linux kernel's power supply driver for cw2015. Specifically, the function cw_bat_probe() calls create_singlethread_workqueue() but does not check if the return value is NULL. If create_singlethread_workqueue() fails and returns NULL, subsequent calls that use this workqueue pointer will dereference a NULL pointer, leading to a kernel warning or crash. The fix involves checking the return value and returning an error (-ENOMEM) if the workqueue creation fails.


How can this vulnerability impact me? :

This vulnerability can cause the Linux kernel to dereference a NULL pointer, which may lead to kernel warnings, crashes, or system instability. This can affect system reliability and availability, potentially causing unexpected reboots or denial of service conditions on affected systems.


What immediate steps should I take to mitigate this vulnerability?

Update the Linux kernel to a version where the cw2015 power supply driver has been fixed to properly check the return value of create_singlethread_workqueue() in cw_bat_probe(). This prevents a potential null pointer dereference by returning -ENOMEM if the workqueue creation fails.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart