CVE-2022-50331
BaseFortify
Publication date: 2025-09-15
Last updated on: 2025-12-03
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | From 5.14 (inc) to 5.15.76 (exc) |
| linux | linux_kernel | From 5.16 (inc) to 6.0.6 (exc) |
| linux | linux_kernel | 6.1 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-401 | The product does not sufficiently track and release allocated memory after it has been used, making the memory unavailable for reallocation and reuse. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is a possible memory leak in the Linux kernel's wwan_hwsim module. When the device_register() function fails during module probing, the reference count of a kernel object (kobject) is not properly decreased to zero. As a result, the memory allocated for the device name in dev_set_name() is not freed, causing a memory leak. The fix involves calling put_device() to ensure the allocated name is freed during the kobject_cleanup() callback.
How can this vulnerability impact me? :
This vulnerability can lead to a memory leak in the Linux kernel when the wwan_hwsim module fails to register a device. Over time, repeated failures could consume system memory unnecessarily, potentially degrading system performance or stability.