Skip to content
Heist/ feed
Back to feed
MediumFix available

nvme-fc: do not wait in vain when unloading module

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: nvme-fc: do not wait in vain when unloading module The module exit path has race between deleting all controllers and freeing 'left over IDs'. To prevent double free a synchronization between nvme_delete_ctrl and ida_destroy has been added by the initial commit. There is some logic around trying to prevent from hanging forever in wait_for_completion, though it does not handling all cases. E.g. blktests is able to reproduce the situation where the module unload hangs forever. If we completely rely on the cleanup code executed from the nvme_delete_ctrl path, all IDs will be freed eventually. This makes calling ida_destroy unnecessary. We only have to ensure that all nvme_delete_ctrl code has been executed before we leave nvme_fc_exit_module. This is done by flushing the nvme_delete_wq workqueue. While at it, remove the unused nvme_fc_wq workqueue too.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.211, 5.15.150, 6.1.80, 6.6.19, 6.7.7
CVEs
CVE-2024-26846
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 02:04 UTC · Revision 1

Source evidence

nvme-fc: do not wait in vain when unloading module

core-osv · Original source

Published 17 Apr 2024, 10:10 UTC

In the Linux kernel, the following vulnerability has been resolved: nvme-fc: do not wait in vain when unloading module The module exit path has race between deleting all controllers and freeing 'left over IDs'. To prevent double free a synchronization between nvme_delete_ctrl and ida_destroy has been added by the initial commit. There is some logic around trying to prevent from hanging forever in wait_for_completion, though it does not handling all cases. E.g. blktests is able to reproduce the situation where the module unload hangs forever. If we completely rely on the cleanup code executed from the nvme_delete_ctrl path, all IDs will be freed eventually. This makes calling ida_destroy unnecessary. We only have to ensure that all nvme_delete_ctrl code has been executed before we leave nvme_fc_exit_module. This is done by flushing the nvme_delete_wq workqueue. While at it, remove the unused nvme_fc_wq workqueue too.

osv:CVE-2024-26846

Kernel

Fixed versions: 5.10.211, 5.15.150, 6.1.80, 6.6.19, 6.7.7

Complete source record
{
  "id": "1b90608cc43f35ad28f06c466d69175ed62fdb04eb9bc12de263aa9f6b094b21",
  "url": "https://osv.dev/vulnerability/CVE-2024-26846",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "nvme-fc: do not wait in vain when unloading module",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: nvme-fc: do not wait in vain when unloading module The module exit path has race between deleting all controllers and freeing 'left over IDs'. To prevent double free a synchronization between nvme_delete_ctrl and ida_destroy has been added by the initial commit. There is some logic around trying to prevent from hanging forever in wait_for_completion, though it does not handling all cases. E.g. blktests is able to reproduce the situation where the module unload hangs forever. If we completely rely on the cleanup code executed from the nvme_delete_ctrl path, all IDs will be freed eventually. This makes calling ida_destroy unnecessary. We only have to ensure that all nvme_delete_ctrl code has been executed before we leave nvme_fc_exit_module. This is done by flushing the nvme_delete_wq workqueue. While at it, remove the unused nvme_fc_wq workqueue too.",
    "evidence": "osv:CVE-2024-26846",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.211",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.150",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.80",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.19",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.7.7",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-26846",
      "aliases": [
        "CVE-2024-26846"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "4c73cbdff1119d088ed16d63def59ad32b11b18f"
                },
                {
                  "fixed": "4f2c95015ec2a1899161be6c0bdaecedd5a7bfb2"
                },
                {
                  "fixed": "0bf567d6d9ffe09e059bbdfb4d07143cef42c75c"
                },
                {
                  "fixed": "085195aa90a924c79e35569bcdad860d764a8e17"
                },
                {
                  "fixed": "baa6b7eb8c66486bd64608adc63fe03b30d3c0b9"
                },
                {
                  "fixed": "c0882c366418bf9c19e1ba7f270fe377a9bf5d67"
                },
                {
                  "fixed": "70fbfc47a392b98e5f8dba70c6efc6839205c982"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26846.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.3.0"
                },
                {
                  "fixed": "5.10.211"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.150"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.80"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.19"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.7.7"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26846.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:41.653560091Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/085195aa90a924c79e35569bcdad860d764a8e17",
        "https://git.kernel.org/stable/c/0bf567d6d9ffe09e059bbdfb4d07143cef42c75c",
        "https://git.kernel.org/stable/c/4f2c95015ec2a1899161be6c0bdaecedd5a7bfb2",
        "https://git.kernel.org/stable/c/70fbfc47a392b98e5f8dba70c6efc6839205c982",
        "https://git.kernel.org/stable/c/baa6b7eb8c66486bd64608adc63fe03b30d3c0b9",
        "https://git.kernel.org/stable/c/c0882c366418bf9c19e1ba7f270fe377a9bf5d67",
        "https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26846.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-26846",
        "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/26xxx/CVE-2024-26846.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-26846",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 509275,
  "published_at": "2024-04-17T10:10:09.964+00:00"
}