CVE-2024-56745
Linux PCI Memory Leak Vulnerability
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.
INFO
Published Date :
Dec. 29, 2024, 12:15 p.m.
Last Modified :
April 17, 2025, 9:15 p.m.
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Remotely Exploitable :
No
Impact Score :
3.6
Exploitability Score :
1.8
Public PoC/Exploit Available at Github
CVE-2024-56745 has a 1 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-56745
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
None
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-56745
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-56745
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Apr. 17, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L Added CWE CWE-401 -
Initial Analysis by [email protected]
Jan. 07, 2025
Action Type Old Value New Value Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Added CWE NIST CWE-401 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.15 up to (excluding) 5.15.174 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.120 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.64 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.11.11 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.12 up to (excluding) 6.12.2 Changed Reference Type https://git.kernel.org/stable/c/2985b1844f3f3447f2d938eff1ef6762592065a5 No Types Assigned https://git.kernel.org/stable/c/2985b1844f3f3447f2d938eff1ef6762592065a5 Patch Changed Reference Type https://git.kernel.org/stable/c/403efb4457c0c8f8f51e904cc57d39193780c6bd No Types Assigned https://git.kernel.org/stable/c/403efb4457c0c8f8f51e904cc57d39193780c6bd Patch Changed Reference Type https://git.kernel.org/stable/c/543d0eb40e45c6a51f1bff02f417b602e54472d5 No Types Assigned https://git.kernel.org/stable/c/543d0eb40e45c6a51f1bff02f417b602e54472d5 Patch Changed Reference Type https://git.kernel.org/stable/c/8e098baf6bc3f3a6aefc383509aba07e202f7ee0 No Types Assigned https://git.kernel.org/stable/c/8e098baf6bc3f3a6aefc383509aba07e202f7ee0 Patch Changed Reference Type https://git.kernel.org/stable/c/931d07ccffcc3614f20aaf602b31e89754e21c59 No Types Assigned https://git.kernel.org/stable/c/931d07ccffcc3614f20aaf602b31e89754e21c59 Patch Changed Reference Type https://git.kernel.org/stable/c/fe6fae61f3b993160aef5fe2b7141a83872c144f No Types Assigned https://git.kernel.org/stable/c/fe6fae61f3b993160aef5fe2b7141a83872c144f Patch -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Dec. 29, 2024
Action Type Old Value New Value Added 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. Added Reference https://git.kernel.org/stable/c/2985b1844f3f3447f2d938eff1ef6762592065a5 Added Reference https://git.kernel.org/stable/c/403efb4457c0c8f8f51e904cc57d39193780c6bd Added Reference https://git.kernel.org/stable/c/543d0eb40e45c6a51f1bff02f417b602e54472d5 Added Reference https://git.kernel.org/stable/c/8e098baf6bc3f3a6aefc383509aba07e202f7ee0 Added Reference https://git.kernel.org/stable/c/931d07ccffcc3614f20aaf602b31e89754e21c59 Added Reference https://git.kernel.org/stable/c/fe6fae61f3b993160aef5fe2b7141a83872c144f
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-56745
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-56745
weaknesses.