# CVE-2024-56745: PCI: Fix reset_method_store() memory leak

- Severity: Low 3.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2024-12-29T11:30:12.434Z
- Modified: 2026-06-17T08:12:53.337Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

PCI: Fix reset_method_store() memory leak

In reset_method_store(), a string is allocated via kstrndup() and assigned
to the local "options". options is then used in with strsep() to find
spaces:

  while ((name = strsep(&options, " ")) != NULL) {

If there are no remaining spaces, then options is set to NULL by strsep(),
so the subsequent kfree(options) doesn't free the memory allocated via
kstrndup().

Fix by using a separate tmp_options to iterate with strsep() so options is
preserved.

(As written by CVE List.)

## Affected

- Linux Linux: from d88f521da3efd698e36d0d504a2abba6ac4f5ef8 before 403efb4457c0c8f8f51e904cc57d39193780c6bd; from d88f521da3efd698e36d0d504a2abba6ac4f5ef8 before 931d07ccffcc3614f20aaf602b31e89754e21c59; from d88f521da3efd698e36d0d504a2abba6ac4f5ef8 before 8e098baf6bc3f3a6aefc383509aba07e202f7ee0; from d88f521da3efd698e36d0d504a2abba6ac4f5ef8 before 543d0eb40e45c6a51f1bff02f417b602e54472d5; from d88f521da3efd698e36d0d504a2abba6ac4f5ef8 before fe6fae61f3b993160aef5fe2b7141a83872c144f; from d88f521da3efd698e36d0d504a2abba6ac4f5ef8 before 2985b1844f3f3447f2d938eff1ef6762592065a5; 5.15 (not affected: before 5.15; from 5.15.174 up to 5.15.*; from 6.1.120 up to 6.1.*; from 6.6.64 up to 6.6.*; from 6.11.11 up to 6.11.*; from 6.12.2 up to 6.12.*; from 6.13 up to *)
- linux linux_kernel: from 5.15 before 5.15.174; from 5.16 before 6.1.120; from 6.2 before 6.6.64; from 6.7 before 6.11.11; from 6.12 before 6.12.2

## Every score

- CISA-ADP: CVSS:3.1 3.3 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/403efb4457c0c8f8f51e904cc57d39193780c6bd> (patch)
- <https://git.kernel.org/stable/c/931d07ccffcc3614f20aaf602b31e89754e21c59> (patch)
- <https://git.kernel.org/stable/c/8e098baf6bc3f3a6aefc383509aba07e202f7ee0> (patch)
- <https://git.kernel.org/stable/c/543d0eb40e45c6a51f1bff02f417b602e54472d5> (patch)
- <https://git.kernel.org/stable/c/fe6fae61f3b993160aef5fe2b7141a83872c144f> (patch)
- <https://git.kernel.org/stable/c/2985b1844f3f3447f2d938eff1ef6762592065a5> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>

## Sources

- CVE List: [CVE-2024-56745](https://www.cve.org/CVERecord?id=CVE-2024-56745), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-56745](https://nvd.nist.gov/vuln/detail/CVE-2024-56745), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-56745 · Whole record: https://cve.day/CVE-2024-56745.json · Rebuilt by cve.day 2026-11-25T22:58:50.562Z
