Skip to content
Heist/ feed
Back to feed
UnratedFix available

memstick: ms_block: destroy io_queue workqueue on removal

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: memstick: ms_block: destroy io_queue workqueue on removal msb_init_disk() creates the per-card ordered workqueue msb->io_queue with alloc_ordered_workqueue(). It is torn down with destroy_workqueue() only on the init error path; msb_remove() never destroys it. msb_stop() merely flushes the queue, and neither msb_data_clear() nor put_disk() free it. As a result every card insert/remove cycle leaks the workqueue and its kworker, exhausting kernel memory over repeated cycles. Destroy the workqueue in msb_remove() after the disk has been removed and the queue drained.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.1.189, 6.12.112, 6.18.54, 6.6.158, 7.2.8
CVEs
CVE-2026-98227
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 01:52 UTC · Revision 1

Source evidence

memstick: ms_block: destroy io_queue workqueue on removal

core-osv · Original source

Published 6 Oct 2026, 08:45 UTC

In the Linux kernel, the following vulnerability has been resolved: memstick: ms_block: destroy io_queue workqueue on removal msb_init_disk() creates the per-card ordered workqueue msb->io_queue with alloc_ordered_workqueue(). It is torn down with destroy_workqueue() only on the init error path; msb_remove() never destroys it. msb_stop() merely flushes the queue, and neither msb_data_clear() nor put_disk() free it. As a result every card insert/remove cycle leaks the workqueue and its kworker, exhausting kernel memory over repeated cycles. Destroy the workqueue in msb_remove() after the disk has been removed and the queue drained.

osv:CVE-2026-98227

Kernel

Fixed versions: 6.1.189, 6.6.158, 6.12.112, 6.18.54, 7.2.8

Complete source record
{
  "id": "5f2b23a05787e088a61959fd4ddc711103eb00ec0acaf486a516b8d394f9ae34",
  "url": "https://osv.dev/vulnerability/CVE-2026-98227",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "memstick: ms_block: destroy io_queue workqueue on removal",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: memstick: ms_block: destroy io_queue workqueue on removal msb_init_disk() creates the per-card ordered workqueue msb->io_queue with alloc_ordered_workqueue(). It is torn down with destroy_workqueue() only on the init error path; msb_remove() never destroys it. msb_stop() merely flushes the queue, and neither msb_data_clear() nor put_disk() free it. As a result every card insert/remove cycle leaks the workqueue and its kworker, exhausting kernel memory over repeated cycles. Destroy the workqueue in msb_remove() after the disk has been removed and the queue drained.",
    "evidence": "osv:CVE-2026-98227",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.1.189",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.158",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.112",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.54",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.2.8",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2026-98227",
      "aliases": [
        "CVE-2026-98227"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0ab30494bc4f3bc1ea4659b7c5d97c5218554a63"
                },
                {
                  "fixed": "0ff795163f37109a134b5a421558530f8d091544"
                },
                {
                  "fixed": "19c3da6621a253f1f8b937ed91bc22330a930d9c"
                },
                {
                  "fixed": "9a2e7cdc0880e735aff0968ee402f2c92a992b9b"
                },
                {
                  "fixed": "6611f78ec3fd4b33a00bfda20725b254a22979f6"
                },
                {
                  "fixed": "f222bb8c30cf5699c560b29179ff2bddcac1f950"
                },
                {
                  "fixed": "90af7fde083e1b22c349c3a8b1626728e44e474c"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98227.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "3.12.0"
                },
                {
                  "fixed": "6.1.189"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.158"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.112"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.54"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "7.2.8"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98227.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:48.708906169Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/0ff795163f37109a134b5a421558530f8d091544",
        "https://git.kernel.org/stable/c/19c3da6621a253f1f8b937ed91bc22330a930d9c",
        "https://git.kernel.org/stable/c/6611f78ec3fd4b33a00bfda20725b254a22979f6",
        "https://git.kernel.org/stable/c/90af7fde083e1b22c349c3a8b1626728e44e474c",
        "https://git.kernel.org/stable/c/9a2e7cdc0880e735aff0968ee402f2c92a992b9b",
        "https://git.kernel.org/stable/c/f222bb8c30cf5699c560b29179ff2bddcac1f950",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98227.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-98227",
        "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/2026/98xxx/CVE-2026-98227.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-98227",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 517128,
  "published_at": "2026-10-06T08:45:02.265+00:00"
}