CVE-2024-56745

MediumCVSS 5.5/10Last modified Jun 17, 2026

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.

Metrics

CVSS 3.1 5.5/10CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Weakness enumeration

Affected software

VendorProductVersions
LinuxLinux>= d88f521da3efd698e36d0d504a2abba6ac4f5ef8, < 403efb4457c0c8f8f51e904cc57d39193780c6bd; >= d88f521da3efd698e36d0d504a2abba6ac4f5ef8, < 931d07ccffcc3614f20aaf602b31e89754e21c59; >= d88f521da3efd698e36d0d504a2abba6ac4f5ef8, < 8e098baf6bc3f3a6aefc383509aba07e202f7ee0; >= d88f521da3efd698e36d0d504a2abba6ac4f5ef8, < 543d0eb40e45c6a51f1bff02f417b602e54472d5; >= d88f521da3efd698e36d0d504a2abba6ac4f5ef8, < fe6fae61f3b993160aef5fe2b7141a83872c144f; >= d88f521da3efd698e36d0d504a2abba6ac4f5ef8, < 2985b1844f3f3447f2d938eff1ef6762592065a5
LinuxLinux5.15

References

Timeline

Published
Dec 29, 2024
Last modified
Jun 17, 2026
NVD status
Modified

Related CVEs from 2024

CVE-2024-567465.5In the Linux kernel, the following vulnerability has been resolved: fbdev: sh7760fb: Fix a possible memory leak in sh7760fb_alloc_mem() WhCVE-2024-567475.5In the Linux kernel, the following vulnerability has been resolved: scsi: qedi: Fix a possible memory leak in qedi_alloc_and_init_sb() HooCVE-2024-567485.5In the Linux kernel, the following vulnerability has been resolved: scsi: qedf: Fix a possible memory leak in qedf_alloc_and_init_sb() HooCVE-2024-567495.5In the Linux kernel, the following vulnerability has been resolved: dlm: fix dlm_recover_members refcount on error If dlm_recover_members(CVE-2024-56759.8Untrusted data deserialization vulnerability has been found in Mentor - Employee Portal, affecting version 3.83.35. This vulnerability couldCVE-2024-567505.5In the Linux kernel, the following vulnerability has been resolved: erofs: fix blksize < PAGE_SIZE for file-backed mounts Adjust sb->s_bloCVE-2024-567515.5In the Linux kernel, the following vulnerability has been resolved: ipv6: release nexthop on device removal The CI is hitting some aperiodCVE-2024-567525.5In the Linux kernel, the following vulnerability has been resolved: drm/nouveau/gr/gf100: Fix missing unlock in gf100_gr_chan_new() When tCVE-2024-567535.5In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu/gfx9: Add Cleaner Shader Deinitialization in gfx_v9_0 ModuleCVE-2024-567545.5In the Linux kernel, the following vulnerability has been resolved: crypto: caam - Fix the pointer passed to caam_qi_shutdown() The type oCVE-2024-567555.5In the Linux kernel, the following vulnerability has been resolved: netfs/fscache: Add a memory barrier for FSCACHE_VOLUME_CREATING In fscCVE-2024-567565.5In the Linux kernel, the following vulnerability has been resolved: nvme-pci: fix freeing of the HMB descriptor table The HMB descriptor t
CVE-2024-56745: Medium severity, CVSS 5.5 | Vulnix