Bug 2334672 (CVE-2024-56708) - CVE-2024-56708 kernel: EDAC/igen6: Avoid segmentation fault on module unload
Summary: CVE-2024-56708 kernel: EDAC/igen6: Avoid segmentation fault on module unload
Keywords:
Status: NEW
Alias: CVE-2024-56708
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-12-28 10:01 UTC by OSIDB Bzimport
Modified: 2024-12-29 07:05 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-12-28 10:01:44 UTC
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.

Comment 1 Avinash Hanwate 2024-12-29 07:01:21 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024122838-CVE-2024-56708-2702@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.