CVE-2022-50477
BaseFortify
Publication date: 2025-10-04
Last updated on: 2025-10-06
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.15.160 (inc) to 5.16 (inc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is a potential memory leak in the Linux kernel's rtc (real-time clock) device allocation function devm_rtc_allocate_device(). The function allocates an rtc_device and then calls dev_set_name(). If dev_set_name() fails, the allocated rtc_device is not properly freed, causing a memory leak. The fix involves moving devm_add_action_or_reset() before dev_set_name() to ensure proper cleanup and prevent the memory leak.
How can this vulnerability impact me? :
This vulnerability can cause a memory leak in the Linux kernel when allocating rtc devices. Over time, this could lead to increased memory usage and potentially degrade system performance or stability, especially on systems that frequently allocate rtc devices or encounter dev_set_name() failures.