CVE-2022-50566

Not scored yetLast modified Jun 17, 2026

Description

In the Linux kernel, the following vulnerability has been resolved:

mtd: Fix device name leak when register device failed in add_mtd_device()

There is a kmemleak when register device failed: unreferenced object 0xffff888101aab550 (size 8): comm "insmod", pid 3922, jiffies 4295277753 (age 925.408s) hex dump (first 8 bytes): 6d 74 64 30 00 88 ff ff mtd0.... backtrace: [<00000000bde26724>] __kmalloc_node_track_caller+0x4e/0x150 [<000000003c32b416>] kvasprintf+0xb0/0x130 [<000000001f7a8f15>] kobject_set_name_vargs+0x2f/0xb0 [<000000006e781163>] dev_set_name+0xab/0xe0 [<00000000e30d0c78>] add_mtd_device+0x4bb/0x700 [<00000000f3d34de7>] mtd_device_parse_register+0x2ac/0x3f0 [<00000000c0d88488>] 0xffffffffa0238457 [<00000000b40d0922>] 0xffffffffa02a008f [<0000000023d17b9d>] do_one_initcall+0x87/0x2a0 [<00000000770f6ca6>] do_init_module+0xdf/0x320 [<000000007b6768fe>] load_module+0x2f98/0x3330 [<00000000346bed5a>] __do_sys_finit_module+0x113/0x1b0 [<00000000674c2290>] do_syscall_64+0x35/0x80 [<000000004c6a8d97>] entry_SYSCALL_64_after_hwframe+0x46/0xb0

If register device failed, should call put_device() to give up the reference.

Metrics

No CVSS score has been published yet.

Affected software

VendorProductVersions
LinuxLinux>= 1f24b5a8ecbb2a3c7080f418974d40e3ffedb221, < a75f45afa932bfb24a2603ebcea5efd2e7cdcfd6; >= 1f24b5a8ecbb2a3c7080f418974d40e3ffedb221, < 2302e2dc42b1f84f951c725ce742fc21c5a1e151; >= 1f24b5a8ecbb2a3c7080f418974d40e3ffedb221, < db07fe76df01f40cb897d6e9066b84e46957beb3; >= 1f24b5a8ecbb2a3c7080f418974d40e3ffedb221, < fa0d32ab8407d7481450c664fd0de64f2dae9489; >= 1f24b5a8ecbb2a3c7080f418974d40e3ffedb221, < 330bc5533e8a8ed69cb951d5a8edce9bddb9db21; >= 1f24b5a8ecbb2a3c7080f418974d40e3ffedb221, < 71212d73184845c944ef1b43f092e643e5bde003; >= 1f24b5a8ecbb2a3c7080f418974d40e3ffedb221, < 1b172fb05d6315ecec082fd7544a3390e96f0d7e; >= 1f24b5a8ecbb2a3c7080f418974d40e3ffedb221, < bcabe1dc2a344adbb3382930a23e273ba9382277; >= 1f24b5a8ecbb2a3c7080f418974d40e3ffedb221, < 895d68a39481a75c680aa421546931fb11942fa6
LinuxLinux2.6.30

References

Timeline

Published
Oct 22, 2025
Last modified
Jun 17, 2026
NVD status
Deferred

Related CVEs from 2022

CVE-2022-505677.8In the Linux kernel, the following vulnerability has been resolved: fs: jfs: fix shift-out-of-bounds in dbAllocAG Syzbot found a crash : UCVE-2022-50568In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_hid: fix f_hidg lifetime vs cdev The embedded struct cdCVE-2022-505697.8In the Linux kernel, the following vulnerability has been resolved: xfrm: Update ipcomp_scratches with NULL when freed Currently if ipcompCVE-2022-505707.8In the Linux kernel, the following vulnerability has been resolved: platform/chrome: fix memory corruption in ioctl If "s_mem.bytes" is laCVE-2022-50571In the Linux kernel, the following vulnerability has been resolved: btrfs: call __btrfs_remove_free_space_cache_locked on cache load failurCVE-2022-50572In the Linux kernel, the following vulnerability has been resolved: ASoC: audio-graph-card: fix refcount leak of cpu_ep in __graph_for_eachCVE-2022-50573In the Linux kernel, the following vulnerability has been resolved: wifi: mt76: mt7915: fix mt7915_rate_txpower_get() resource leaks CoverCVE-2022-50574In the Linux kernel, the following vulnerability has been resolved: drm/omap: dss: Fix refcount leak bugs In dss_init_ports() and __dss_unCVE-2022-50575In the Linux kernel, the following vulnerability has been resolved: xen/privcmd: Fix a possible warning in privcmd_ioctl_mmap_resource() ACVE-2022-50576In the Linux kernel, the following vulnerability has been resolved: serial: pch: Fix PCI device refcount leak in pch_request_dma() As commCVE-2022-50577In the Linux kernel, the following vulnerability has been resolved: ima: Fix memory leak in __ima_inode_hash() Commit f3cc6b25dcc5 ("ima: CVE-2022-50578In the Linux kernel, the following vulnerability has been resolved: class: fix possible memory leak in __class_register() If class_add_gro
CVE-2022-50566: Unscored | Vulnix