CVE-2024-58078: misc: misc_minor_alloc to use ida for all dynamic/misc dynamic minors
In the Linux kernel, the following vulnerability has been resolved:
misc: miscminoralloc to use ida for all dynamic/misc dynamic minors
miscminoralloc was allocating id using ida for minor only in case of MISCDYNAMICMINOR but miscminorfree was always freeing ids using idafree causing a mismatch and following warn: > WARNING: CPU: 0 PID: 159 at lib/idr.c:525 idafree+0x3e0/0x41f > idafree called for id=127 which is not allocated. > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ... > [<60941eb4>] idafree+0x3e0/0x41f > [<605ac993>] miscminorfree+0x3e/0xbc > [<605acb82>] miscderegister+0x171/0x1b3
miscminoralloc is changed to allocate id from ida for all minors falling in the range of dynamic/ misc dynamic minors
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.15-1 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.78 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.14 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.13.3 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.115-2Fixed in 7.2.15-1
Event History
Frequently Asked Questions
What is the severity of CVE-2024-58078?
CVE-2024-58078 has a severity rating that indicates a medium level of risk due to improper handling of dynamic minor IDs in the Linux kernel.
How do I fix CVE-2024-58078?
To mitigate CVE-2024-58078, update your Linux kernel to the latest patched version available.
Which versions of the Linux kernel are affected by CVE-2024-58078?
CVE-2024-58078 affects various versions of the Linux kernel prior to the fixes implemented in the latest updates.
What are the potential exploits of CVE-2024-58078?
Potential exploits of CVE-2024-58078 include unauthorized access or modifications due to the improper allocation and freeing of minor IDs.
Is CVE-2024-58078 relevant for all Linux systems?
CVE-2024-58078 is relevant for all systems running an affected version of the Linux kernel that utilizes dynamic minors.