{"id":"CVE-2024-56745","state":"PUBLISHED","title":"PCI: Fix reset_method_store() memory leak","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nPCI: Fix reset_method_store() memory leak\n\nIn reset_method_store(), a string is allocated via kstrndup() and assigned\nto the local \"options\". options is then used in with strsep() to find\nspaces:\n\n  while ((name = strsep(&options, \" \")) != NULL) {\n\nIf there are no remaining spaces, then options is set to NULL by strsep(),\nso the subsequent kfree(options) doesn't free the memory allocated via\nkstrndup().\n\nFix by using a separate tmp_options to iterate with strsep() so options is\npreserved.","publishedAt":"2024-12-29T11:30:12.434Z","updatedAt":"2026-05-11T20:58:16.030Z","severity":{"score":3.3,"label":"Low","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","source":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d88f521da3efd698e36d0d504a2abba6ac4f5ef8","status":"affected","lessThan":"403efb4457c0c8f8f51e904cc57d39193780c6bd","versionType":"git"},{"version":"d88f521da3efd698e36d0d504a2abba6ac4f5ef8","status":"affected","lessThan":"931d07ccffcc3614f20aaf602b31e89754e21c59","versionType":"git"},{"version":"d88f521da3efd698e36d0d504a2abba6ac4f5ef8","status":"affected","lessThan":"8e098baf6bc3f3a6aefc383509aba07e202f7ee0","versionType":"git"},{"version":"d88f521da3efd698e36d0d504a2abba6ac4f5ef8","status":"affected","lessThan":"543d0eb40e45c6a51f1bff02f417b602e54472d5","versionType":"git"},{"version":"d88f521da3efd698e36d0d504a2abba6ac4f5ef8","status":"affected","lessThan":"fe6fae61f3b993160aef5fe2b7141a83872c144f","versionType":"git"},{"version":"d88f521da3efd698e36d0d504a2abba6ac4f5ef8","status":"affected","lessThan":"2985b1844f3f3447f2d938eff1ef6762592065a5","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pci/pci.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"5.15.174","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.120","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.64","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.11.11","status":"unaffected","lessThanOrEqual":"6.11.*","versionType":"semver"},{"version":"6.12.2","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/pci/pci.c"]}],"references":["https://git.kernel.org/stable/c/403efb4457c0c8f8f51e904cc57d39193780c6bd","https://git.kernel.org/stable/c/931d07ccffcc3614f20aaf602b31e89754e21c59","https://git.kernel.org/stable/c/8e098baf6bc3f3a6aefc383509aba07e202f7ee0","https://git.kernel.org/stable/c/543d0eb40e45c6a51f1bff02f417b602e54472d5","https://git.kernel.org/stable/c/fe6fae61f3b993160aef5fe2b7141a83872c144f","https://git.kernel.org/stable/c/2985b1844f3f3447f2d938eff1ef6762592065a5","https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"],"weaknesses":["CWE-401"],"ingestedAt":"2026-10-29T20:08:12.933Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/56xxx/CVE-2024-56745.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-56745","state":"PUBLISHED","datePublished":"2024-12-29T11:30:12.434Z","dateUpdated":"2026-05-11T20:58:16.030Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-12-29T11:26:39.758Z"},"containers":{"cna":{"title":"PCI: Fix reset_method_store() memory leak","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nPCI: Fix reset_method_store() memory leak\n\nIn reset_method_store(), a string is allocated via kstrndup() and assigned\nto the local \"options\". options is then used in with strsep() to find\nspaces:\n\n  while ((name = strsep(&options, \" \")) != NULL) {\n\nIf there are no remaining spaces, then options is set to NULL by strsep(),\nso the subsequent kfree(options) doesn't free the memory allocated via\nkstrndup().\n\nFix by using a separate tmp_options to iterate with strsep() so options is\npreserved."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d88f521da3efd698e36d0d504a2abba6ac4f5ef8","status":"affected","lessThan":"403efb4457c0c8f8f51e904cc57d39193780c6bd","versionType":"git"},{"version":"d88f521da3efd698e36d0d504a2abba6ac4f5ef8","status":"affected","lessThan":"931d07ccffcc3614f20aaf602b31e89754e21c59","versionType":"git"},{"version":"d88f521da3efd698e36d0d504a2abba6ac4f5ef8","status":"affected","lessThan":"8e098baf6bc3f3a6aefc383509aba07e202f7ee0","versionType":"git"},{"version":"d88f521da3efd698e36d0d504a2abba6ac4f5ef8","status":"affected","lessThan":"543d0eb40e45c6a51f1bff02f417b602e54472d5","versionType":"git"},{"version":"d88f521da3efd698e36d0d504a2abba6ac4f5ef8","status":"affected","lessThan":"fe6fae61f3b993160aef5fe2b7141a83872c144f","versionType":"git"},{"version":"d88f521da3efd698e36d0d504a2abba6ac4f5ef8","status":"affected","lessThan":"2985b1844f3f3447f2d938eff1ef6762592065a5","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pci/pci.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"5.15.174","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.120","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.64","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.11.11","status":"unaffected","lessThanOrEqual":"6.11.*","versionType":"semver"},{"version":"6.12.2","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/pci/pci.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/403efb4457c0c8f8f51e904cc57d39193780c6bd"},{"url":"https://git.kernel.org/stable/c/931d07ccffcc3614f20aaf602b31e89754e21c59"},{"url":"https://git.kernel.org/stable/c/8e098baf6bc3f3a6aefc383509aba07e202f7ee0"},{"url":"https://git.kernel.org/stable/c/543d0eb40e45c6a51f1bff02f417b602e54472d5"},{"url":"https://git.kernel.org/stable/c/fe6fae61f3b993160aef5fe2b7141a83872c144f"},{"url":"https://git.kernel.org/stable/c/2985b1844f3f3447f2d938eff1ef6762592065a5"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T20:58:16.030Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"5.15.174"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.1.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.6.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.11.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.12.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.13"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":3.3,"attackVector":"LOCAL","baseSeverity":"LOW","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"LOW","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"id":"CVE-2024-56745","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2025-04-17T20:10:17.735129Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-401","lang":"en","type":"CWE","description":"CWE-401 Missing Release of Memory after Effective Lifetime"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-04-17T20:15:52.160Z"}},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T20:53:34.257Z"}}]}}}