{"id":"CVE-2022-50500","aliases":["CVE-2022-50500"],"related":[],"kind":"vulnerability","state":"published","title":"netdevsim: fix memory leak in nsim_drv_probe() when nsim_dev_resources_register() failed","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetdevsim: fix memory leak in nsim_drv_probe() when nsim_dev_resources_register() failed\n\nIf some items in nsim_dev_resources_register() fail, memory leak will\noccur. The following is the memory leak information.\n\nunreferenced object 0xffff888074c02600 (size 128):\n  comm \"echo\", pid 8159, jiffies 4294945184 (age 493.530s)\n  hex dump (first 32 bytes):\n    40 47 ea 89 ff ff ff ff 01 00 00 00 00 00 00 00  @G..............\n    ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  ................\n  backtrace:\n    [<0000000011a31c98>] kmalloc_trace+0x22/0x60\n    [<0000000027384c69>] devl_resource_register+0x144/0x4e0\n    [<00000000a16db248>] nsim_drv_probe+0x37a/0x1260\n    [<000000007d1f448c>] really_probe+0x20b/0xb10\n    [<00000000c416848a>] __driver_probe_device+0x1b3/0x4a0\n    [<00000000077e0351>] driver_probe_device+0x49/0x140\n    [<0000000054f2465a>] __device_attach_driver+0x18c/0x2a0\n    [<000000008538f359>] bus_for_each_drv+0x151/0x1d0\n    [<0000000038e09747>] __device_attach+0x1c9/0x4e0\n    [<00000000dd86e533>] bus_probe_device+0x1d5/0x280\n    [<00000000839bea35>] device_add+0xae0/0x1cb0\n    [<000000009c2abf46>] new_device_store+0x3b6/0x5f0\n    [<00000000fb823d7f>] bus_attr_store+0x72/0xa0\n    [<000000007acc4295>] sysfs_kf_write+0x106/0x160\n    [<000000005f50cb4d>] kernfs_fop_write_iter+0x3a8/0x5a0\n    [<0000000075eb41bf>] vfs_write+0x8f0/0xc80","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetdevsim: fix memory leak in nsim_drv_probe() when nsim_dev_resources_register() failed\n\nIf some items in nsim_dev_resources_register() fail, memory leak will\noccur. The following is the memory leak information.\n\nunreferenced object 0xffff888074c02600 (size 128):\n  comm \"echo\", pid 8159, jiffies 4294945184 (age 493.530s)\n  hex dump (first 32 bytes):\n    40 47 ea 89 ff ff ff ff 01 00 00 00 00 00 00 00  @G..............\n    ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  ................\n  backtrace:\n    [<0000000011a31c98>] kmalloc_trace+0x22/0x60\n    [<0000000027384c69>] devl_resource_register+0x144/0x4e0\n    [<00000000a16db248>] nsim_drv_probe+0x37a/0x1260\n    [<000000007d1f448c>] really_probe+0x20b/0xb10\n    [<00000000c416848a>] __driver_probe_device+0x1b3/0x4a0\n    [<00000000077e0351>] driver_probe_device+0x49/0x140\n    [<0000000054f2465a>] __device_attach_driver+0x18c/0x2a0\n    [<000000008538f359>] bus_for_each_drv+0x151/0x1d0\n    [<0000000038e09747>] __device_attach+0x1c9/0x4e0\n    [<00000000dd86e533>] bus_probe_device+0x1d5/0x280\n    [<00000000839bea35>] device_add+0xae0/0x1cb0\n    [<000000009c2abf46>] new_device_store+0x3b6/0x5f0\n    [<00000000fb823d7f>] bus_attr_store+0x72/0xa0\n    [<000000007acc4295>] sysfs_kf_write+0x106/0x160\n    [<000000005f50cb4d>] kernfs_fop_write_iter+0x3a8/0x5a0\n    [<0000000075eb41bf>] vfs_write+0x8f0/0xc80","source":"cvelist"}],"published":"2025-10-04T15:43:50.792Z","modified":"2026-11-05T21:17:02.580Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"37923ed6b8cea94d7d76038e2f72c57a0b45daab","fixed":"7c4957fe40e2a628b7cceaf4c9bfb5b701774d05","status":"affected"},{"type":"git","introduced":"37923ed6b8cea94d7d76038e2f72c57a0b45daab","fixed":"6b1da9f7126f05e857da6db24c6a04aa7974d644","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.17","status":"unaffected"},{"type":"semver","introduced":"6.0.7","lastAffected":"6.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.17","fixed":"6.0.7"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/7c4957fe40e2a628b7cceaf4c9bfb5b701774d05","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6b1da9f7126f05e857da6db24c6a04aa7974d644","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T20:12:28.981Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50500","url":"https://www.cve.org/CVERecord?id=CVE-2022-50500","licence":"CVE Terms of Use","modified":"2026-11-05T20:20:49.585Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50500","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50500","licence":"Public domain","modified":"2026-11-05T21:17:02.580Z"}],"updatedAt":"2026-11-25T22:58:21.245Z","epss":{"score":0.0014,"percentile":0.03608,"date":"2026-12-01T12:00:22.000Z"}}