{"id":"CVE-2023-52652","summary":"NTB: fix possible name leak in ntb_register_device()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nNTB: fix possible name leak in ntb_register_device()\n\nIf device_register() fails in ntb_register_device(), the device name\nallocated by dev_set_name() should be freed. As per the comment in\ndevice_register(), callers should use put_device() to give up the\nreference in the error path. So fix this by calling put_device() in the\nerror path so that the name can be freed in kobject_cleanup().\n\nAs a result of this, put_device() in the error path of\nntb_register_device() is removed and the actual error is returned.\n\n[mani: reworded commit message]","modified":"2026-04-02T09:43:12.255272Z","published":"2024-05-01T13:03:58.575Z","related":["SUSE-SU-2024:1643-1","SUSE-SU-2024:1644-1","SUSE-SU-2024:1646-1","SUSE-SU-2024:1659-1","SUSE-SU-2024:1663-1","SUSE-SU-2024:1870-1","SUSE-SU-2024:2135-1","SUSE-SU-2024:2203-1","SUSE-SU-2024:2973-1","SUSE-SU-2025:20008-1","SUSE-SU-2025:20028-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52652.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/6632a54ac8057cc0b0d789c6f73883e871bcd25c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/913421f9f7fd8324dcc41753d0f28b52e177ef04"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a039690d323221eb5865f1f31db3ec264e7a14b6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a62b9f3d7bbfac874cc0c638bc1776dcf1f8ec06"},{"type":"WEB","url":"https://git.kernel.org/stable/c/aebfdfe39b9327a3077d0df8db3beb3160c9bdd0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e8025439ef8e16029dc313d78a351ef192469b7b"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52652.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52652"},{"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":"a1bd3baeb2f18b2b3d0f98ce5fdaa725149b950b"},{"fixed":"a62b9f3d7bbfac874cc0c638bc1776dcf1f8ec06"},{"fixed":"6632a54ac8057cc0b0d789c6f73883e871bcd25c"},{"fixed":"a039690d323221eb5865f1f31db3ec264e7a14b6"},{"fixed":"e8025439ef8e16029dc313d78a351ef192469b7b"},{"fixed":"913421f9f7fd8324dcc41753d0f28b52e177ef04"},{"fixed":"aebfdfe39b9327a3077d0df8db3beb3160c9bdd0"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52652.json"}}],"schema_version":"1.7.5"}