{"id":"CVE-2022-50278","summary":"PNP: fix name memory leak in pnp_alloc_dev()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nPNP: fix name memory leak in pnp_alloc_dev()\n\nAfter commit 1fa5ae857bb1 (\"driver core: get rid of struct device's\nbus_id string array\"), the name of device is allocated dynamically,\nmove dev_set_name() after pnp_add_id() to avoid memory leak.","modified":"2026-04-02T08:28:23.382801Z","published":"2025-09-15T14:21:15.208Z","related":["SUSE-SU-2025:03614-1","SUSE-SU-2025:03615-1","SUSE-SU-2025:03628-1","SUSE-SU-2025:3716-1","SUSE-SU-2025:3761-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50278.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/110d7b0325c55ff3620073ba4201845f59e22ebf"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1f50c7497a5f89de0c31f2edf086af41ff834320"},{"type":"WEB","url":"https://git.kernel.org/stable/c/290dd73b943c95c006df973257076ff163adf4d0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/693a0c13c1f0c0fcaa1e38cb806cc0789bd415aa"},{"type":"WEB","url":"https://git.kernel.org/stable/c/81b024df4755e6bb6993b786584eca6eabbb9791"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bbcf772216aa237036cc3ae3158288d0a95aaf4d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c12b314bb23dc0c83e03402cc84574700947e3b2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/dac87e295cddc8ab316cff14ab2071b5221d84fa"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ea77b4b761cd75e5456f677311babfa0418f289a"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50278.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50278"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"1fa5ae857bb14f6046205171d98506d8112dd74e"},{"fixed":"ea77b4b761cd75e5456f677311babfa0418f289a"},{"fixed":"693a0c13c1f0c0fcaa1e38cb806cc0789bd415aa"},{"fixed":"bbcf772216aa237036cc3ae3158288d0a95aaf4d"},{"fixed":"81b024df4755e6bb6993b786584eca6eabbb9791"},{"fixed":"dac87e295cddc8ab316cff14ab2071b5221d84fa"},{"fixed":"c12b314bb23dc0c83e03402cc84574700947e3b2"},{"fixed":"1f50c7497a5f89de0c31f2edf086af41ff834320"},{"fixed":"290dd73b943c95c006df973257076ff163adf4d0"},{"fixed":"110d7b0325c55ff3620073ba4201845f59e22ebf"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50278.json"}}],"schema_version":"1.7.5"}