{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-52652","id":"CVE-2023-52652","title":"NTB: fix possible name leak in ntb_register_device()","description":"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\nerr","descriptionLong":"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]","published":"2024-05-01T13:03:58.575Z","updated":"2026-10-28T02:30:32.847301322Z","reserved":"2024-03-06T09:52:12.098Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a1bd3baeb2f18b2b3d0f98ce5fdaa725149b950b","lessThan":"a62b9f3d7bbfac874cc0c638bc1776dcf1f8ec06","status":"affected","versionType":"git"},{"version":"a1bd3baeb2f18b2b3d0f98ce5fdaa725149b950b","lessThan":"6632a54ac8057cc0b0d789c6f73883e871bcd25c","status":"affected","versionType":"git"},{"version":"a1bd3baeb2f18b2b3d0f98ce5fdaa725149b950b","lessThan":"a039690d323221eb5865f1f31db3ec264e7a14b6","status":"affected","versionType":"git"},{"version":"a1bd3baeb2f18b2b3d0f98ce5fdaa725149b950b","lessThan":"e8025439ef8e16029dc313d78a351ef192469b7b","status":"affected","versionType":"git"},{"version":"a1bd3baeb2f18b2b3d0f98ce5fdaa725149b950b","lessThan":"913421f9f7fd8324dcc41753d0f28b52e177ef04","status":"affected","versionType":"git"},{"version":"a1bd3baeb2f18b2b3d0f98ce5fdaa725149b950b","lessThan":"aebfdfe39b9327a3077d0df8db3beb3160c9bdd0","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.2","status":"affected"},{"version":"0","lessThan":"4.2","status":"unaffected","versionType":"semver"},{"version":"5.15.153","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.83","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.23","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.7.11","lessThanOrEqual":"6.7.*","status":"unaffected","versionType":"semver"},{"version":"6.8.2","lessThanOrEqual":"6.8.*","status":"unaffected","versionType":"semver"},{"version":"6.9","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/a62b9f3d7bbfac874cc0c638bc1776dcf1f8ec06","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/6632a54ac8057cc0b0d789c6f73883e871bcd25c","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/a039690d323221eb5865f1f31db3ec264e7a14b6","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/e8025439ef8e16029dc313d78a351ef192469b7b","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/913421f9f7fd8324dcc41753d0f28b52e177ef04","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/aebfdfe39b9327a3077d0df8db3beb3160c9bdd0","tags":["x_transferred","Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52652.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52652","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00273,"epssPercentile":0.19973,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-52652","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52652","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-52652","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-52652","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}