CVE-2024-56745

PCI: Fix reset_method_store() memory leak

MEDIUM
5.5
CVSS Score
Published: December 29, 2024 at 11:30 AM UTC
Updated: June 17, 2026 at 08:12 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.15 ≤ v < 5.15.1745.15 ≤ v < 6.1.1205.15 ≤ v < 6.11.115.15 ≤ v < 6.12.25.15 ≤ v < 6.135.15 ≤ v < 6.6.645.16 ≤ v < 6.1.1206.12 ≤ v < 6.12.26.2 ≤ v < 6.6.646.7 ≤ v < 6.11.115.15d88f521da3efd698e36d0d504a2abba6ac4f5ef8
Vendor states this is fixed in 2985b1844f3f3447f2d938eff1ef6762592065a5 (fixed)
Vendor states this is fixed in 403efb4457c0c8f8f51e904cc57d39193780c6bd (fixed)
Vendor states this is fixed in 543d0eb40e45c6a51f1bff02f417b602e54472d5 (fixed)
Vendor states this is fixed in 8e098baf6bc3f3a6aefc383509aba07e202f7ee0 (fixed)
Vendor states this is fixed in 931d07ccffcc3614f20aaf602b31e89754e21c59 (fixed)
Vendor states this is fixed in fe6fae61f3b993160aef5fe2b7141a83872c144f (fixed)
Vendor states this is fixed in 5.15 (unaffected)
Vendor states this is fixed in 5.15.174 (unaffected)
Vendor states this is fixed in 6.1.120 (unaffected)
Vendor states this is fixed in 6.11.11 (unaffected)
Vendor states this is fixed in 6.12.2 (unaffected)
Vendor states this is fixed in 6.13 (unaffected)
Vendor states this is fixed in 6.6.64 (unaffected)

References (7)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2985b1844f3f3447f2d938eff1ef6762592065a5
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/403efb4457c0c8f8f51e904cc57d39193780c6bd
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/543d0eb40e45c6a51f1bff02f417b602e54472d5
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8e098baf6bc3f3a6aefc383509aba07e202f7ee0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/931d07ccffcc3614f20aaf602b31e89754e21c59
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/fe6fae61f3b993160aef5fe2b7141a83872c144f
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card