CVE-2024-56708

Severity CVSS v4.0:
Pending analysis
Type:
CWE-415 Double Free
Publication date:
28/12/2024
Last modified:
03/11/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> EDAC/igen6: Avoid segmentation fault on module unload<br /> <br /> The segmentation fault happens because:<br /> <br /> During modprobe:<br /> 1. In igen6_probe(), igen6_pvt will be allocated with kzalloc()<br /> 2. In igen6_register_mci(), mci-&gt;pvt_info will point to<br /> &amp;igen6_pvt-&gt;imc[mc]<br /> <br /> During rmmod:<br /> 1. In mci_release() in edac_mc.c, it will kfree(mci-&gt;pvt_info)<br /> 2. In igen6_remove(), it will kfree(igen6_pvt);<br /> <br /> Fix this issue by setting mci-&gt;pvt_info to NULL to avoid the double<br /> kfree.

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.11 (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)