CVE-2024-56745

Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
29/12/2024
Last modified:
17/04/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> PCI: Fix reset_method_store() memory leak<br /> <br /> In reset_method_store(), a string is allocated via kstrndup() and assigned<br /> to the local "options". options is then used in with strsep() to find<br /> spaces:<br /> <br /> while ((name = strsep(&amp;options, " ")) != NULL) {<br /> <br /> If there are no remaining spaces, then options is set to NULL by strsep(),<br /> so the subsequent kfree(options) doesn&amp;#39;t free the memory allocated via<br /> kstrndup().<br /> <br /> Fix by using a separate tmp_options to iterate with strsep() so options is<br /> preserved.

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.15 (including) 5.15.174 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.16 (including) 6.1.120 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.2 (including) 6.6.64 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.7 (including) 6.11.11 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.12 (including) 6.12.2 (excluding)