CVE-2024-56745: Linux kernel · PCI: Fix reset_method_store() memory leak
Source GCVE Database
Not known to be exploited · CVSS 5.5 Medium.
Data as of 30 Oct 2026, 00:55 UTC
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 29 Dec 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
AI-suggested
A fix for this vulnerability has been implemented in the Linux kernel. Users should apply the official kernel updates that include this patch to remediate the memory leak. Since no exploit is known in the wild and the vulnerability requires local access with low privileges, prioritization can be based on exposure and risk tolerance.
Description
CVE-2024-56745 is a medium severity vulnerability in the Linux kernel involving a memory leak in the PCI subsystem's reset_method_store() function. The issue arises because a string allocated by kstrndup() is not properly freed when strsep() sets the pointer to NULL, causing a memory leak. The fix involves using a separate temporary pointer for iteration to preserve the original allocated memory for proper freeing.
References
- nvd.nist.gov/vuln/detail/CVE-2024-56745 (opens in a new tab)
- git.kernel.org/stable/c/2985b1844f3f3447f2d938eff1ef6762592065a5 (opens in a new tab)
- git.kernel.org/stable/c/403efb4457c0c8f8f51e904cc57d39193780c6bd (opens in a new tab)
- git.kernel.org/stable/c/543d0eb40e45c6a51f1bff02f417b602e54472d5 (opens in a new tab)
- git.kernel.org/stable/c/8e098baf6bc3f3a6aefc383509aba07e202f7ee0 (opens in a new tab)
- git.kernel.org/stable/c/931d07ccffcc3614f20aaf602b31e89754e21c59 (opens in a new tab)
- git.kernel.org/stable/c/fe6fae61f3b993160aef5fe2b7141a83872c144f (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/03/msg00001.html (opens in a new tab)