Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1110 CNY

100%

CVE-2022-50566— mtd: Fix device name leak when register device failed in add_mtd_device()

AI Predicted 5.6 Difficulty: Easy EPSS 0.09% · P26

Affected Version Matrix 20

VendorProductVersion RangeStatus
LinuxLinux1f24b5a8ecbb2a3c7080f418974d40e3ffedb221< a75f45afa932bfb24a2603ebcea5efd2e7cdcfd6affected
1f24b5a8ecbb2a3c7080f418974d40e3ffedb221< 2302e2dc42b1f84f951c725ce742fc21c5a1e151affected
1f24b5a8ecbb2a3c7080f418974d40e3ffedb221< db07fe76df01f40cb897d6e9066b84e46957beb3affected
1f24b5a8ecbb2a3c7080f418974d40e3ffedb221< fa0d32ab8407d7481450c664fd0de64f2dae9489affected
1f24b5a8ecbb2a3c7080f418974d40e3ffedb221< 330bc5533e8a8ed69cb951d5a8edce9bddb9db21affected
1f24b5a8ecbb2a3c7080f418974d40e3ffedb221< 71212d73184845c944ef1b43f092e643e5bde003affected
1f24b5a8ecbb2a3c7080f418974d40e3ffedb221< 1b172fb05d6315ecec082fd7544a3390e96f0d7eaffected
1f24b5a8ecbb2a3c7080f418974d40e3ffedb221< bcabe1dc2a344adbb3382930a23e273ba9382277affected
… +12 more rows
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2022-50566

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
mtd: Fix device name leak when register device failed in add_mtd_device()
Source: NVD (National Vulnerability Database)
Vulnerability 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.
Source: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于注册设备失败时未清理设备名称,可能导致内存泄漏。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
LinuxLinux 1f24b5a8ecbb2a3c7080f418974d40e3ffedb221 ~ a75f45afa932bfb24a2603ebcea5efd2e7cdcfd6 -
LinuxLinux 2.6.30 -

II. Public POCs for CVE-2022-50566

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2022-50566

登录查看更多情报信息。

Patches & Fixes for CVE-2022-50566 (9)

Same Patch Batch · Linux · 2025-10-22 · 67 CVEs total

CVE-2023-53710wifi: mt76: mt7921: fix error code of return in mt7921_acpi_read
CVE-2023-53729soc: qcom: qmi_encdec: Restrict string length in decode
CVE-2023-53727net/sched: fq_pie: avoid stalls in fq_pie_timer()
CVE-2023-53728posix-timers: Ensure timer ID search-loop limit is valid
CVE-2023-53717wifi: ath9k: Fix potential stack-out-of-bounds write in ath9k_wmi_rsp_callback()
CVE-2023-53715wifi: brcmfmac: cfg80211: Pass the PMK in binary instead of hex
CVE-2023-53714drm/stm: ltdc: fix late dereference check
CVE-2023-53713arm64: sme: Use STR P to clear FFR context field in streaming SVE mode
CVE-2023-53712ARM: 9317/1: kexec: Make smp stop calls asynchronous
CVE-2023-53711NFS: Fix a potential data corruption
CVE-2023-53716net: fix skb leak in __skb_tstamp_tx()
CVE-2023-53709ring-buffer: Handle race between rb_move_tail and rb_check_pages
CVE-2023-53707drm/amdgpu: Fix integer overflow in amdgpu_cs_pass1
CVE-2023-53708ACPI: x86: s2idle: Catch multiple ACPI_TYPE_PACKAGE objects
CVE-2023-53705ipv6: Fix out-of-bounds access in ipv6_find_tlv()
CVE-2023-53706mm/vmemmap/devdax: fix kernel crash when probing devdax devices
CVE-2023-53704clk: imx: clk-imx8mp: improve error handling in imx8mp_clocks_probe()
CVE-2023-53702s390/crypto: use vector instructions only if available for ChaCha20
CVE-2023-53703HID: amd_sfh: Fix for shift-out-of-bounds
CVE-2023-53700media: max9286: Fix memleak in max9286_v4l2_register()

Showing top 20 of 67 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2022-50566

No comments yet


Leave a comment