CVE-2024-58078

Source
https://nvd.nist.gov/vuln/detail/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
2025-11-28T02:34:20.426728Z
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
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58078.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
ab760791c0cfbb1d7a668f46a135264f56c8f018
Fixed
3df72111c39f7e4c5029c9ff720b56ec2e05b764
Fixed
8b4120b3e060e137eaa8dc76a1c40401088336e5
Fixed
6635332d246d7db89b90e145f2bf937406cecaf0
Fixed
6d04d2b554b14ae6c428a9c60b6c85f1e5c89f68

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