{"cve":"CVE-2022-50566","nvd":{"published":"2025-10-22T14:15:41.420","modified":"2026-06-17T05:23:48.233","status":"Deferred","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: Fix device name leak when register device failed in add_mtd_device()\n\nThere is a kmemleak when register device failed:\n  unreferenced object 0xffff888101aab550 (size 8):\n    comm \"insmod\", pid 3922, jiffies 4295277753 (age 925.408s)\n    hex dump (first 8 bytes):\n      6d 74 64 30 00 88 ff ff                          mtd0....\n    backtrace:\n      [<00000000bde26724>] __kmalloc_node_track_caller+0x4e/0x150\n      [<000000003c32b416>] kvasprintf+0xb0/0x130\n      [<000000001f7a8f15>] kobject_set_name_vargs+0x2f/0xb0\n      [<000000006e781163>] dev_set_name+0xab/0xe0\n      [<00000000e30d0c78>] add_mtd_device+0x4bb/0x700\n      [<00000000f3d34de7>] mtd_device_parse_register+0x2ac/0x3f0\n      [<00000000c0d88488>] 0xffffffffa0238457\n      [<00000000b40d0922>] 0xffffffffa02a008f\n      [<0000000023d17b9d>] do_one_initcall+0x87/0x2a0\n      [<00000000770f6ca6>] do_init_module+0xdf/0x320\n      [<000000007b6768fe>] load_module+0x2f98/0x3330\n      [<00000000346bed5a>] __do_sys_finit_module+0x113/0x1b0\n      [<00000000674c2290>] do_syscall_64+0x35/0x80\n      [<000000004c6a8d97>] entry_SYSCALL_64_after_hwframe+0x46/0xb0\n\nIf register device failed, should call put_device() to give up the\nreference.","cvss_v4":null,"cvss_v3":null,"cwes":[],"references":["https://git.kernel.org/stable/c/1b172fb05d6315ecec082fd7544a3390e96f0d7e","https://git.kernel.org/stable/c/2302e2dc42b1f84f951c725ce742fc21c5a1e151","https://git.kernel.org/stable/c/330bc5533e8a8ed69cb951d5a8edce9bddb9db21","https://git.kernel.org/stable/c/71212d73184845c944ef1b43f092e643e5bde003","https://git.kernel.org/stable/c/895d68a39481a75c680aa421546931fb11942fa6"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:12:35.277909958+00:00"},"epss":{"cve":"CVE-2022-50566","score":0.00249,"percentile":0.16223,"date":"2026-10-31"},"kev":null,"osv":[],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}