{"cve":"CVE-2022-50331","nvd":{"published":"2025-09-15T15:15:45.310","modified":"2026-06-17T05:23:15.050","status":"Analyzed","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nwwan_hwsim: fix possible memory leak in wwan_hwsim_dev_new()\n\nInject fault while probing module, if device_register() fails,\nbut the refcount of kobject is not decreased to 0, the name\nallocated in dev_set_name() is leaked. Fix this by calling\nput_device(), so that name can be freed in callback function\nkobject_cleanup().\n\nunreferenced object 0xffff88810152ad20 (size 8):\n  comm \"modprobe\", pid 252, jiffies 4294849206 (age 22.713s)\n  hex dump (first 8 bytes):\n    68 77 73 69 6d 30 00 ff                          hwsim0..\n  backtrace:\n    [<000000009c3504ed>] __kmalloc_node_track_caller+0x44/0x1b0\n    [<00000000c0228a5e>] kvasprintf+0xb5/0x140\n    [<00000000cff8c21f>] kvasprintf_const+0x55/0x180\n    [<0000000055a1e073>] kobject_set_name_vargs+0x56/0x150\n    [<000000000a80b139>] dev_set_name+0xab/0xe0","cvss_v4":null,"cvss_v3":{"version":"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},"cwes":["CWE-401"],"references":["https://git.kernel.org/stable/c/258ad2fe5ede773625adfda88b173f4123e59f45","https://git.kernel.org/stable/c/50c31fa952309536c6e4461ff815ddccc8dff9d5","https://git.kernel.org/stable/c/d87973314aba6de80a49f4271dd9be4ddc08e729"],"products":["linux:linux_kernel"],"source":"nvd","synced_at":"2026-10-19T22:08:41.295252406+00:00"},"epss":{"cve":"CVE-2022-50331","score":0.00157,"percentile":0.04826,"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."]}