{"id":"CVE-2022-50318","summary":"perf/x86/intel/uncore: Fix reference count leak in hswep_has_limit_sbox()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nperf/x86/intel/uncore: Fix reference count leak in hswep_has_limit_sbox()\n\npci_get_device() will increase the reference count for the returned\n'dev'. We need to call pci_dev_put() to decrease the reference count.\nSince 'dev' is only used in pci_read_config_dword(), let's add\npci_dev_put() right after it.","modified":"2026-04-02T08:28:24.648227Z","published":"2025-09-15T14:48:51.035Z","related":["SUSE-SU-2025:03615-1","SUSE-SU-2025:03628-1","SUSE-SU-2025:3716-1","SUSE-SU-2025:3761-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50318.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1ff9dd6e7071a561f803135c1d684b13c7a7d01d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3485f197518061371568f842405159aa9e4df551"},{"type":"WEB","url":"https://git.kernel.org/stable/c/48f32b9a74e2ac8e854bb87bfefdbc745125a123"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5a96c10a56037db006ba6769307a9731cf6073be"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bd66877c0b3b42eed0ecee0bd2a2a505c1e54177"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c0539d5d474ee6fa4ebc41f927a0f98f81244f25"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e293263248f25c6b8aa1caf7c1103d40aa03311e"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50318.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50318"},{"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":"a8e87042482fd2d31c5cee62875b2ae75759ae8b"},{"fixed":"5a96c10a56037db006ba6769307a9731cf6073be"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"319a06e58ed7f1443f7133c05513de470f90628d"},{"fixed":"e293263248f25c6b8aa1caf7c1103d40aa03311e"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"6f8315e5d9511ed1cf28ee2afbc9f89ff693de7b"},{"fixed":"c0539d5d474ee6fa4ebc41f927a0f98f81244f25"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"9d480158ee86ad606d3a8baaf81e6b71acbfd7d5"},{"fixed":"3485f197518061371568f842405159aa9e4df551"},{"fixed":"48f32b9a74e2ac8e854bb87bfefdbc745125a123"},{"fixed":"bd66877c0b3b42eed0ecee0bd2a2a505c1e54177"},{"fixed":"1ff9dd6e7071a561f803135c1d684b13c7a7d01d"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"d2c79105a90323a2a93484c85f9ac419ae9b183d"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50318.json"}}],"schema_version":"1.7.5"}