{"id":"CVE-2024-53681","state":"PUBLISHED","title":"nvmet: Don't overflow subsysnqn","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet: Don't overflow subsysnqn\n\nnvmet_root_discovery_nqn_store treats the subsysnqn string like a fixed\nsize buffer, even though it is dynamically allocated to the size of the\nstring.\n\nCreate a new string with kstrndup instead of using the old buffer.","publishedAt":"2025-01-15T13:10:22.141Z","updatedAt":"2026-05-11T20:53:37.433Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"95409e277d8343810adf8700d29d4329828d452b","status":"affected","lessThan":"86645d8d062af3fdcbdaa0a289b95de55bca827d","versionType":"git"},{"version":"95409e277d8343810adf8700d29d4329828d452b","status":"affected","lessThan":"4db3d750ac7e894278ef1cb1c53cc7d883060496","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/configfs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.9","versionType":"semver"},{"version":"6.12.9","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/configfs.c"]}],"references":["https://git.kernel.org/stable/c/86645d8d062af3fdcbdaa0a289b95de55bca827d","https://git.kernel.org/stable/c/4db3d750ac7e894278ef1cb1c53cc7d883060496"],"weaknesses":[],"ingestedAt":"2026-10-29T20:08:04.920Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/53xxx/CVE-2024-53681.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-53681","state":"PUBLISHED","datePublished":"2025-01-15T13:10:22.141Z","dateUpdated":"2026-05-11T20:53:37.433Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-01-15T13:08:59.671Z"},"containers":{"cna":{"title":"nvmet: Don't overflow subsysnqn","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet: Don't overflow subsysnqn\n\nnvmet_root_discovery_nqn_store treats the subsysnqn string like a fixed\nsize buffer, even though it is dynamically allocated to the size of the\nstring.\n\nCreate a new string with kstrndup instead of using the old buffer."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"95409e277d8343810adf8700d29d4329828d452b","status":"affected","lessThan":"86645d8d062af3fdcbdaa0a289b95de55bca827d","versionType":"git"},{"version":"95409e277d8343810adf8700d29d4329828d452b","status":"affected","lessThan":"4db3d750ac7e894278ef1cb1c53cc7d883060496","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/configfs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.9","versionType":"semver"},{"version":"6.12.9","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/configfs.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/86645d8d062af3fdcbdaa0a289b95de55bca827d"},{"url":"https://git.kernel.org/stable/c/4db3d750ac7e894278ef1cb1c53cc7d883060496"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T20:53:37.433Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"6.12.9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"6.13"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}