CVE-2024-58078

misc: misc_minor_alloc to use ida for all dynamic/misc dynamic minors

State
Published
Severity
Not scored
Published
Mar 6, 2025
Updated
May 11, 2026
Reserved
Mar 6, 2025

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

misc: misc_minor_alloc to use ida for all dynamic/misc dynamic minors

misc_minor_alloc was allocating id using ida for minor only in case of MISC_DYNAMIC_MINOR but misc_minor_free was always freeing ids using ida_free causing a mismatch and following warn: > > WARNING: CPU: 0 PID: 159 at lib/idr.c:525 ida_free+0x3e0/0x41f > > ida_free called for id=127 which is not allocated. > > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ... > > [<60941eb4>] ida_free+0x3e0/0x41f > > [<605ac993>] misc_minor_free+0x3e/0xbc > > [<605acb82>] misc_deregister+0x171/0x1b3

misc_minor_alloc is changed to allocate id from ida for all minors falling in the range of dynamic/ misc dynamic minors

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • ab760791c0cfbb1d7a668f46a135264f56c8f018 to before 3df72111c39f7e4c5029c9ff720b56ec2e05b764Affected
  • ab760791c0cfbb1d7a668f46a135264f56c8f018 to before 8b4120b3e060e137eaa8dc76a1c40401088336e5Affected
  • ab760791c0cfbb1d7a668f46a135264f56c8f018 to before 6635332d246d7db89b90e145f2bf937406cecaf0Affected
  • ab760791c0cfbb1d7a668f46a135264f56c8f018 to before 6d04d2b554b14ae6c428a9c60b6c85f1e5c89f68Affected
LinuxLinux
  • 6.2Affected
  • before 6.2Not affected
  • 6.6.78 through 6.6.*Not affected
  • 6.12.14 through 6.12.*Not affected
  • 6.13.3 through 6.13.*Not affected
  • 6.14 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.