PT-2025-40142 · Linux · Linux Kernel

Published

2022-11-24

·

Updated

2025-10-01

·

CVE-2022-50457

CVSS v3.1

5.5

Medium

VectorAV: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

Weakness Enumeration

Related Identifiers

BDU:2026-03834
CVE-2022-50457

Affected Products

Linux Kernel