CVE-2022-50457
BaseFortify
Publication date: 2025-10-01
Last updated on: 2025-10-02
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | 6.1.0-rc3 |
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 reference count error in the Linux kernel's mtd subsystem, specifically in the del_mtd_device() function. The function calls of_node_put() on a device node pointer obtained from mtd_get_of_node(mtd), but before this call, it clears the mtd->dev structure with memset. This clearing causes the device node pointer to be lost, so of_node_put() is called with a NULL pointer and does nothing. As a result, the reference count on the device node is not decremented properly, causing a reference count leak.
How can this vulnerability impact me? :
This vulnerability can cause a memory leak in the Linux kernel due to unbalanced reference counting on device nodes. Over time, this leak could lead to increased memory usage and potentially degrade system stability or performance, especially on systems that frequently add and remove MTD devices.