{"id":"CVE-2022-50669","summary":"misc: ocxl: fix possible name leak in ocxl_file_register_afu()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmisc: ocxl: fix possible name leak in ocxl_file_register_afu()\n\nIf device_register() returns error in ocxl_file_register_afu(),\nthe name allocated by dev_set_name() need be freed. As comment\nof device_register() says, it should use put_device() to give\nup the reference in the error path. So fix this by calling\nput_device(), then the name can be freed in kobject_cleanup(),\nand info is freed in info_release().","modified":"2026-03-20T11:47:34.595701Z","published":"2025-12-09T01:29:20.745Z","related":["SUSE-SU-2026:0263-1","SUSE-SU-2026:0317-1","SUSE-SU-2026:0411-1","SUSE-SU-2026:0617-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50669.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0cd05062371a49774e8a45258bdedf0bd6d3d327"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2fce8b3583d1641a1716486f408478b58e96ec91"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3299983a6bf628249ac650908e62d12de959341e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/557b7de055d1e230ddb6664c29d26917b8db9143"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7525741cb302a1672b8c3a5edb2a08e4229b5c7c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a4cb1004aeed2ab893a058fad00a5b41a12c4691"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50669.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50669"},{"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":"75ca758adbafc81804c39b2c200ecdc819a6c042"},{"fixed":"0cd05062371a49774e8a45258bdedf0bd6d3d327"},{"fixed":"7525741cb302a1672b8c3a5edb2a08e4229b5c7c"},{"fixed":"3299983a6bf628249ac650908e62d12de959341e"},{"fixed":"557b7de055d1e230ddb6664c29d26917b8db9143"},{"fixed":"2fce8b3583d1641a1716486f408478b58e96ec91"},{"fixed":"a4cb1004aeed2ab893a058fad00a5b41a12c4691"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50669.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.2.0"},{"fixed":"5.4.229"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.86"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.0.16"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.1.0"},{"fixed":"6.1.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50669.json"}}],"schema_version":"1.7.5"}