CVE-2024-58078

Source
https://cve.org/CVERecord?id=CVE-2024-58078
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-58078.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-58078
Downstream
Related
Published
2025-03-06T16:13:41.909Z
Modified
2026-05-15T11:54:13.743176240Z
Summary
misc: misc_minor_alloc to use ida for all dynamic/misc dynamic minors
Details

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 ida_free 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

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58078.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.78
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.14
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.13.3

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-58078.json"