{"id":"CVE-2024-56745","summary":"PCI: Fix reset_method_store() memory leak","details":"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.","modified":"2026-03-20T12:41:00.571261Z","published":"2024-12-29T11:30:12.434Z","related":["SUSE-SU-2025:0289-1","SUSE-SU-2025:0428-1","SUSE-SU-2025:0499-1","SUSE-SU-2025:0556-1","SUSE-SU-2025:0557-1","SUSE-SU-2025:0577-1","SUSE-SU-2025:0577-2","SUSE-SU-2025:20165-1","SUSE-SU-2025:20166-1","SUSE-SU-2025:20248-1","SUSE-SU-2025:20249-1","USN-7276-1","USN-7277-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56745.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2985b1844f3f3447f2d938eff1ef6762592065a5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/403efb4457c0c8f8f51e904cc57d39193780c6bd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/543d0eb40e45c6a51f1bff02f417b602e54472d5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8e098baf6bc3f3a6aefc383509aba07e202f7ee0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/931d07ccffcc3614f20aaf602b31e89754e21c59"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fe6fae61f3b993160aef5fe2b7141a83872c144f"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56745.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56745"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"d88f521da3efd698e36d0d504a2abba6ac4f5ef8"},{"fixed":"403efb4457c0c8f8f51e904cc57d39193780c6bd"},{"fixed":"931d07ccffcc3614f20aaf602b31e89754e21c59"},{"fixed":"8e098baf6bc3f3a6aefc383509aba07e202f7ee0"},{"fixed":"543d0eb40e45c6a51f1bff02f417b602e54472d5"},{"fixed":"fe6fae61f3b993160aef5fe2b7141a83872c144f"},{"fixed":"2985b1844f3f3447f2d938eff1ef6762592065a5"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-56745.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L"}]}