EDAC/igen6: Avoid segmentation fault on module unload
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 10590a9d4f23e0a519730d79d39331df60ad2079 · < fefaae90398d38a1100ccd73b46ab55ff4610fba| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
EDAC/igen6: Avoid segmentation fault on module unload
The segmentation fault happens because:
During modprobe: 1. In igen6_probe(), igen6_pvt will be allocated with kzalloc() 2. In igen6_register_mci(), mci->pvt_info will point to &igen6_pvt->imc[mc]
During rmmod: 1. In mci_release() in edac_mc.c, it will kfree(mci->pvt_info) 2. In igen6_remove(), it will kfree(igen6_pvt);
Fix this issue by setting mci->pvt_info to NULL to avoid the double kfree.
From the CVE record · Linux
The Linux kernel’s EDAC/igen6 module can free the same memory twice during module unload, causing a segmentation fault. Triggering the issue requires unloading the module locally; the input does not specify authentication requirements or user interaction.
Engineers running Linux kernels with the EDAC/igen6 module should check their installations; affected versions are not specified.