Skip to content
Heist/ feed
Back to feed
UnratedFix available

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

Type: advisorySources: OSV

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

Products
Kernel
Affected versions
Not specified
Fixed versions
6.12.14, 6.13.3, 6.6.78
CVEs
CVE-2024-58078
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 00:47 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 6 Mar 2025, 16:13 UTC

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

osv:CVE-2024-58078

Kernel

Fixed versions: 6.6.78, 6.12.14, 6.13.3

Complete source record
{
  "id": "b5f82b8ea7428aa9d4c4f1d635460e80270f3202d596313df71829a121136cce",
  "url": "https://osv.dev/vulnerability/CVE-2024-58078",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "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 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",
    "evidence": "osv:CVE-2024-58078",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.6.78",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.14",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.13.3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2024-58078",
      "aliases": [
        "CVE-2024-58078"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "ab760791c0cfbb1d7a668f46a135264f56c8f018"
                },
                {
                  "fixed": "3df72111c39f7e4c5029c9ff720b56ec2e05b764"
                },
                {
                  "fixed": "8b4120b3e060e137eaa8dc76a1c40401088336e5"
                },
                {
                  "fixed": "6635332d246d7db89b90e145f2bf937406cecaf0"
                },
                {
                  "fixed": "6d04d2b554b14ae6c428a9c60b6c85f1e5c89f68"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-58078.json"
          }
        },
        {
          "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"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-58078.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:25.087573945Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/3df72111c39f7e4c5029c9ff720b56ec2e05b764",
        "https://git.kernel.org/stable/c/6635332d246d7db89b90e145f2bf937406cecaf0",
        "https://git.kernel.org/stable/c/6d04d2b554b14ae6c428a9c60b6c85f1e5c89f68",
        "https://git.kernel.org/stable/c/8b4120b3e060e137eaa8dc76a1c40401088336e5",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58078.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-58078",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58078.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-58078",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 491304,
  "published_at": "2025-03-06T16:13:41.909+00:00"
}