{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-53174","id":"CVE-2023-53174","title":"scsi: core: Fix possible memory leak if device_add() fails","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: core: Fix possible memory leak if device_add() fails\n\nIf device_add() returns error, the name allocated by dev_set_name() needs\nbe freed. As the comment of device_add() says, put_device() should be used\nto decrease the reference count in the error path. So fix this by calling\nput_device(), then the name can be freed in kobj","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: core: Fix possible memory leak if device_add() fails\n\nIf device_add() returns error, the name allocated by dev_set_name() needs\nbe freed. As the comment of device_add() says, put_device() should be used\nto decrease the reference count in the error path. So fix this by calling\nput_device(), then the name can be freed in kobject_cleanp().","published":"2025-09-15T14:04:08.357Z","updated":"2026-11-07T02:30:26.581616883Z","reserved":"2025-09-15T13:59:19.064Z","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":"ee959b00c335d7780136c5abda37809191fe52c3","lessThan":"63956ad27a6882f01fea7c69e17823090f4c7b3f","status":"affected","versionType":"git"},{"version":"ee959b00c335d7780136c5abda37809191fe52c3","lessThan":"06c5340858011aa1195aec43a776e3185fbf7f56","status":"affected","versionType":"git"},{"version":"ee959b00c335d7780136c5abda37809191fe52c3","lessThan":"e12fac07f61caac9c5b186d827658b3470787619","status":"affected","versionType":"git"},{"version":"ee959b00c335d7780136c5abda37809191fe52c3","lessThan":"aa9a76d5ffdecd3b52ac333eb89361b0c9fe04e8","status":"affected","versionType":"git"},{"version":"ee959b00c335d7780136c5abda37809191fe52c3","lessThan":"6bc7f4c8c27d526f968788b8a985896755b1df35","status":"affected","versionType":"git"},{"version":"ee959b00c335d7780136c5abda37809191fe52c3","lessThan":"b191ff1f075c4875f11271cbf0093e6e044a12aa","status":"affected","versionType":"git"},{"version":"ee959b00c335d7780136c5abda37809191fe52c3","lessThan":"43c0e16d0c5ec59398b405f4c4aa5a076e656c3f","status":"affected","versionType":"git"},{"version":"ee959b00c335d7780136c5abda37809191fe52c3","lessThan":"04b5b5cb0136ce970333a9c6cec7e46adba1ea3a","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.26","status":"affected"},{"version":"0","lessThan":"2.6.26","status":"unaffected","versionType":"semver"},{"version":"4.14.323","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.292","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.254","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.191","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.127","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.46","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.4.11","lessThanOrEqual":"6.4.*","status":"unaffected","versionType":"semver"},{"version":"6.5","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-401"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/63956ad27a6882f01fea7c69e17823090f4c7b3f","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/06c5340858011aa1195aec43a776e3185fbf7f56","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/e12fac07f61caac9c5b186d827658b3470787619","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/aa9a76d5ffdecd3b52ac333eb89361b0c9fe04e8","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/6bc7f4c8c27d526f968788b8a985896755b1df35","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/b191ff1f075c4875f11271cbf0093e6e044a12aa","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/43c0e16d0c5ec59398b405f4c4aa5a076e656c3f","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/04b5b5cb0136ce970333a9c6cec7e46adba1ea3a","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53174.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53174","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.00166,"epssPercentile":0.05975,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-53174","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53174","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-53174","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-53174","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}