# CVE-2024-56745: PCI: Fix reset\_method\_store() memory leak

- Priority: **Routine**
- Reason: Not severe (CVSS 3.3, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-12-29 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2024-56745, DEBIAN-CVE-2024-56745
- Record: https://cvemate.com/vulnerability/CVE-2024-56745 · JSON: https://cvemate.com/vulnerability/CVE-2024-56745/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.212%, percentile 12.124%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 126)

- debian linux (Debian): \< 6.1.123-1 \| \< 6.12.3-1
- ubuntu linux (Ubuntu): \< 5.15.0-135.146 \| \< 6.8.0-58.60
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 5.15.0-1080.87 \| \< 6.8.0-1027.29
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1080.87~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1027.29~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1080.87+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1084.93 \| \< 6.8.0-1027.32
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.15 (Ubuntu): \< 5.15.0-1086.95~20.04.1
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 35)

- <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>
- <https://ubuntu.com/security/CVE-2024-56745>
- <https://www.cve.org/CVERecord?id=CVE-2024-56745>
- <https://git.kernel.org/linus/2985b1844f3f3447f2d938eff1ef6762592065a5>
- <https://ubuntu.com/security/notices/USN-7276-1>
- <https://ubuntu.com/security/notices/USN-7277-1>
- <https://ubuntu.com/security/notices/USN-7310-1>
- <https://ubuntu.com/security/notices/USN-7387-1>
- <https://ubuntu.com/security/notices/USN-7388-1>
- <https://ubuntu.com/security/notices/USN-7389-1>
- <https://ubuntu.com/security/notices/USN-7390-1>
- <https://ubuntu.com/security/notices/USN-7387-2>
- <https://ubuntu.com/security/notices/USN-7387-3>
- <https://ubuntu.com/security/notices/USN-7407-1>

---

Data as of 2026-12-05T14:09:36.542Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
