---
id: CVE-2024-58078
title: 'misc: misc_minor_alloc to use ida for all dynamic/misc dynamic minors'
summary: |-
  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 mis…
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= ab760791c0cfbb1d7a668f46a135264f56c8f018 <
    3df72111c39f7e4c5029c9ff720b56ec2e05b764
  - >-
    Linux >= ab760791c0cfbb1d7a668f46a135264f56c8f018 <
    8b4120b3e060e137eaa8dc76a1c40401088336e5
  - >-
    Linux >= ab760791c0cfbb1d7a668f46a135264f56c8f018 <
    6635332d246d7db89b90e145f2bf937406cecaf0
  - >-
    Linux >= ab760791c0cfbb1d7a668f46a135264f56c8f018 <
    6d04d2b554b14ae6c428a9c60b6c85f1e5c89f68
  - Linux 6.2
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-05T20:33:33.682507Z'
published: '2025-03-06'
updated: '2026-11-05'
sourceUpdated: '2026-11-05T20:41:39.377Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2024-58078'
references:
  - url: 'https://git.kernel.org/stable/c/3df72111c39f7e4c5029c9ff720b56ec2e05b764'
  - url: 'https://git.kernel.org/stable/c/8b4120b3e060e137eaa8dc76a1c40401088336e5'
  - url: 'https://git.kernel.org/stable/c/6635332d246d7db89b90e145f2bf937406cecaf0'
  - url: 'https://git.kernel.org/stable/c/6d04d2b554b14ae6c428a9c60b6c85f1e5c89f68'
tags:
  - cve.org
epss: 0.00182
epssPercentile: 0.07807
ingestedAt: '2026-11-05T22:38:31.846Z'
---

## Overview

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

## Affected

- `Linux >= ab760791c0cfbb1d7a668f46a135264f56c8f018 < 3df72111c39f7e4c5029c9ff720b56ec2e05b764`
- `Linux >= ab760791c0cfbb1d7a668f46a135264f56c8f018 < 8b4120b3e060e137eaa8dc76a1c40401088336e5`
- `Linux >= ab760791c0cfbb1d7a668f46a135264f56c8f018 < 6635332d246d7db89b90e145f2bf937406cecaf0`
- `Linux >= ab760791c0cfbb1d7a668f46a135264f56c8f018 < 6d04d2b554b14ae6c428a9c60b6c85f1e5c89f68`
- `Linux 6.2`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
