PT-2025-40142 · Linux · Linux Kernel
Published
2022-11-24
·
Updated
2025-10-01
·
CVE-2022-50457
CVSS v3.1
5.5
Medium
| Vector | AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
Linux kernel versions prior to 6.1.0-rc3+ #54
Description
The Linux kernel contains a flaw in the
del mtd device() function related to reference counting. Specifically, the function calls of node put() on a potentially cleared device node pointer, leading to a reference count leak. This occurs because memset(&mtd->dev, 0) is called before of node put(), which can result in of node put(NULL) having no effect. The issue is fixed by caching the pointer of the device node. The error manifests as an unbalanced of node get()/of node put() resulting in a memory leak.Recommendations
Update to a version newer than 6.1.0-rc3+ #54 to address this issue.
Exploit
Fix
Memory Leak
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Linux Kernel