{"id":"CVE-2024-56745","aliases":["CVE-2024-56745"],"related":[],"kind":"vulnerability","state":"published","title":"PCI: Fix reset_method_store() memory leak","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: PCI: Corregir pérdida de memoria de reset_method_store() En reset_method_store(), se asigna una cadena a través de kstrndup() y se asigna a las \"opciones\" locales. Luego, se usa options con strsep() para buscar espacios: while ((name = strsep(&amp;options, \" \")) != NULL) { Si no quedan espacios, strsep() establece options en NULL, por lo que el kfree(options) posterior no libera la memoria asignada a través de kstrndup(). Se soluciona utilizando un tmp_options separado para iterar con strsep() de modo que se preserve options.","source":"nvd"}],"published":"2024-12-29T11:30:12.434Z","modified":"2026-06-17T08:12:53.337Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","score":3.3,"rating":"LOW"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","score":3.3,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"d88f521da3efd698e36d0d504a2abba6ac4f5ef8","fixed":"403efb4457c0c8f8f51e904cc57d39193780c6bd","status":"affected"},{"type":"git","introduced":"d88f521da3efd698e36d0d504a2abba6ac4f5ef8","fixed":"931d07ccffcc3614f20aaf602b31e89754e21c59","status":"affected"},{"type":"git","introduced":"d88f521da3efd698e36d0d504a2abba6ac4f5ef8","fixed":"8e098baf6bc3f3a6aefc383509aba07e202f7ee0","status":"affected"},{"type":"git","introduced":"d88f521da3efd698e36d0d504a2abba6ac4f5ef8","fixed":"543d0eb40e45c6a51f1bff02f417b602e54472d5","status":"affected"},{"type":"git","introduced":"d88f521da3efd698e36d0d504a2abba6ac4f5ef8","fixed":"fe6fae61f3b993160aef5fe2b7141a83872c144f","status":"affected"},{"type":"git","introduced":"d88f521da3efd698e36d0d504a2abba6ac4f5ef8","fixed":"2985b1844f3f3447f2d938eff1ef6762592065a5","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.15","status":"unaffected"},{"type":"semver","introduced":"5.15.174","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.120","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.64","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.11.11","lastAffected":"6.11.*","status":"unaffected"},{"type":"semver","introduced":"6.12.2","lastAffected":"6.12.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.13","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.15","fixed":"5.15.174"},{"status":"affected","introduced":"5.16","fixed":"6.1.120"},{"status":"affected","introduced":"6.2","fixed":"6.6.64"},{"status":"affected","introduced":"6.7","fixed":"6.11.11"},{"status":"affected","introduced":"6.12","fixed":"6.12.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/403efb4457c0c8f8f51e904cc57d39193780c6bd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/931d07ccffcc3614f20aaf602b31e89754e21c59","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8e098baf6bc3f3a6aefc383509aba07e202f7ee0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/543d0eb40e45c6a51f1bff02f417b602e54472d5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fe6fae61f3b993160aef5fe2b7141a83872c144f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2985b1844f3f3447f2d938eff1ef6762592065a5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-17T20:10:17.735Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-56745","url":"https://www.cve.org/CVERecord?id=CVE-2024-56745","licence":"CVE Terms of Use","modified":"2026-05-11T20:58:16.030Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-56745","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56745","licence":"Public domain","modified":"2026-06-17T08:12:53.337Z"}],"updatedAt":"2026-11-25T22:58:50.562Z","epss":{"score":0.00212,"percentile":0.12185,"date":"2026-12-01T12:00:22.000Z"}}