{"id":"CVE-2023-53514","state":"PUBLISHED","title":"gpu: host1x: Fix memory leak of device names","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpu: host1x: Fix memory leak of device names\n\nThe device names allocated by dev_set_name() need be freed\nbefore module unloading, but they can not be freed because\nthe kobject's refcount which was set in device_initialize()\nhas not be decreased to 0.\n\nAs comment of device_add() says, if it fails, use only\nput_device() drop the refcount, then the name will be\nfreed in kobejct_cleanup().\n\ndevice_del() and put_device() can be replaced with\ndevice_unregister(), so call it to unregister the added\nsuccessfully devices, and just call put_device() to the\nnot added device.\n\nAdd a release() function to device to avoid null release()\nfunction WARNING in device_release(), it's empty, because\nthe context devices are freed together in\nhost1x_memory_context_list_free().","publishedAt":"2025-10-01T11:46:02.393Z","updatedAt":"2026-05-11T19:46:26.888Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8aa5bcb61612060429223d1fbb7a1c30a579fc1f","status":"affected","lessThan":"958c6cbc32996c375af42db96ceba021a1959899","versionType":"git"},{"version":"8aa5bcb61612060429223d1fbb7a1c30a579fc1f","status":"affected","lessThan":"dba1aeaaf3d0e2f996cb0a5609e5e85ecf405a5c","versionType":"git"},{"version":"8aa5bcb61612060429223d1fbb7a1c30a579fc1f","status":"affected","lessThan":"3ab0f5ddb761270b11d8c90b8550a59666cfc9bb","versionType":"git"},{"version":"8aa5bcb61612060429223d1fbb7a1c30a579fc1f","status":"affected","lessThan":"55879dad0f3ae8468444b42f785ad79eac05fe5b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/host1x/context.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.0","versionType":"semver"},{"version":"6.1.28","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2.15","status":"unaffected","lessThanOrEqual":"6.2.*","versionType":"semver"},{"version":"6.3.2","status":"unaffected","lessThanOrEqual":"6.3.*","versionType":"semver"},{"version":"6.4","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/host1x/context.c"]}],"references":["https://git.kernel.org/stable/c/958c6cbc32996c375af42db96ceba021a1959899","https://git.kernel.org/stable/c/dba1aeaaf3d0e2f996cb0a5609e5e85ecf405a5c","https://git.kernel.org/stable/c/3ab0f5ddb761270b11d8c90b8550a59666cfc9bb","https://git.kernel.org/stable/c/55879dad0f3ae8468444b42f785ad79eac05fe5b"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/53xxx/CVE-2023-53514.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-53514","state":"PUBLISHED","datePublished":"2025-10-01T11:46:02.393Z","dateUpdated":"2026-05-11T19:46:26.888Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-10-01T11:39:39.406Z"},"containers":{"cna":{"title":"gpu: host1x: Fix memory leak of device names","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpu: host1x: Fix memory leak of device names\n\nThe device names allocated by dev_set_name() need be freed\nbefore module unloading, but they can not be freed because\nthe kobject's refcount which was set in device_initialize()\nhas not be decreased to 0.\n\nAs comment of device_add() says, if it fails, use only\nput_device() drop the refcount, then the name will be\nfreed in kobejct_cleanup().\n\ndevice_del() and put_device() can be replaced with\ndevice_unregister(), so call it to unregister the added\nsuccessfully devices, and just call put_device() to the\nnot added device.\n\nAdd a release() function to device to avoid null release()\nfunction WARNING in device_release(), it's empty, because\nthe context devices are freed together in\nhost1x_memory_context_list_free()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8aa5bcb61612060429223d1fbb7a1c30a579fc1f","status":"affected","lessThan":"958c6cbc32996c375af42db96ceba021a1959899","versionType":"git"},{"version":"8aa5bcb61612060429223d1fbb7a1c30a579fc1f","status":"affected","lessThan":"dba1aeaaf3d0e2f996cb0a5609e5e85ecf405a5c","versionType":"git"},{"version":"8aa5bcb61612060429223d1fbb7a1c30a579fc1f","status":"affected","lessThan":"3ab0f5ddb761270b11d8c90b8550a59666cfc9bb","versionType":"git"},{"version":"8aa5bcb61612060429223d1fbb7a1c30a579fc1f","status":"affected","lessThan":"55879dad0f3ae8468444b42f785ad79eac05fe5b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/host1x/context.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.0","versionType":"semver"},{"version":"6.1.28","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2.15","status":"unaffected","lessThanOrEqual":"6.2.*","versionType":"semver"},{"version":"6.3.2","status":"unaffected","lessThanOrEqual":"6.3.*","versionType":"semver"},{"version":"6.4","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/host1x/context.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/958c6cbc32996c375af42db96ceba021a1959899"},{"url":"https://git.kernel.org/stable/c/dba1aeaaf3d0e2f996cb0a5609e5e85ecf405a5c"},{"url":"https://git.kernel.org/stable/c/3ab0f5ddb761270b11d8c90b8550a59666cfc9bb"},{"url":"https://git.kernel.org/stable/c/55879dad0f3ae8468444b42f785ad79eac05fe5b"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:46:26.888Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.1.28"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.2.15"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.4"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}