← Back to CVE Explorer

CVE-2026-99035

Full vulnerability record from the local CVENow database.

Description

In the Linux kernel, the following vulnerability has been resolved: mmc: mtk-sd: Cancel request timeout work on remove The driver queues req_timeout while a request is active. msdc_request_done() uses cancel_delayed_work(), which does not wait for a timeout callback that has already started. The timeout callback calls mmc_request_done(), which wakes the request waiter, and then continues to use host->dev_comp and check the SDIO IRQ. During unbind, msdc_drv_remove() can return and the managed mmc_host can be freed before the callback finishes. KASAN reported use-after-free accesses in msdc_request_done() and msdc_recheck_sdio_irq() in each of three unbind tests. The same tests completed without a kernel diagnostic after this change. Call cancel_delayed_work_sync() after mmc_remove_host() has stopped new requests and before the driver releases the host resources.

Severity
Not scored
CVSS score
Not available
Vulnerability status
Received
Source identifier
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Published
2026-10-23 13:17:26.700000
Last modified
2026-10-30 13:21:40.553000
View original CVE JSON
{
  "id": "CVE-2026-99035",
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "published": "2026-10-23T13:17:26.700",
  "lastModified": "2026-10-30T13:21:40.553",
  "vulnStatus": "Received",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmmc: mtk-sd: Cancel request timeout work on remove\n\nThe driver queues req_timeout while a request is active.\nmsdc_request_done() uses cancel_delayed_work(), which does not wait for\na timeout callback that has already started.\n\nThe timeout callback calls mmc_request_done(), which wakes the request\nwaiter, and then continues to use host->dev_comp and check the SDIO IRQ.\nDuring unbind, msdc_drv_remove() can return and the managed mmc_host can\nbe freed before the callback finishes.\n\nKASAN reported use-after-free accesses in msdc_request_done() and\nmsdc_recheck_sdio_irq() in each of three unbind tests.  The same tests\ncompleted without a kernel diagnostic after this change.\n\nCall cancel_delayed_work_sync() after mmc_remove_host() has stopped new\nrequests and before the driver releases the host resources."
    }
  ],
  "affected": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "affectedData": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "programFiles": [
            "drivers/mmc/host/mtk-sd.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "208489032bdd8d4a7de50f3057c175058f271956",
              "lessThan": "d8ce81006ee4e42ce2d0bd3a2ab87adc1e24ef11",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "208489032bdd8d4a7de50f3057c175058f271956",
              "lessThan": "2cff6a2a912a3464ae1fefb7e0a82393682ccea6",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "208489032bdd8d4a7de50f3057c175058f271956",
              "lessThan": "e5d82695f2cabca3222b8f6a89ea0e18bafc4c0a",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "208489032bdd8d4a7de50f3057c175058f271956",
              "lessThan": "9e799f25c420e759641eb25102967ea091fc758f",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "208489032bdd8d4a7de50f3057c175058f271956",
              "lessThan": "f37e0367ad6f2147a0b37564b442b7a25bec0d23",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "208489032bdd8d4a7de50f3057c175058f271956",
              "lessThan": "46e75703ca3f00fb8c935b3ce35b90836e34e8af",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "208489032bdd8d4a7de50f3057c175058f271956",
              "lessThan": "edef1355224c0799a502a46b71d3649fa0dd218e",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "208489032bdd8d4a7de50f3057c175058f271956",
              "lessThan": "b38af5386a74416e898955443f2e26547b358cb2",
              "versionType": "git",
              "status": "affected"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "programFiles": [
            "drivers/mmc/host/mtk-sd.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "4.2",
              "status": "affected"
            },
            {
              "version": "0",
              "lessThan": "4.2",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "5.10.273",
              "lessThanOrEqual": "5.10.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "5.15.224",
              "lessThanOrEqual": "5.15.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.1.191",
              "lessThanOrEqual": "6.1.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.6.160",
              "lessThanOrEqual": "6.6.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.12.113",
              "lessThanOrEqual": "6.12.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.18.57",
              "lessThanOrEqual": "6.18.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "7.2.11",
              "lessThanOrEqual": "7.2.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "7.3",
              "lessThanOrEqual": "*",
              "versionType": "original_commit_for_fix",
              "status": "unaffected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {},
  "references": [
    {
      "url": "https://git.kernel.org/stable/c/2cff6a2a912a3464ae1fefb7e0a82393682ccea6",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/46e75703ca3f00fb8c935b3ce35b90836e34e8af",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/9e799f25c420e759641eb25102967ea091fc758f",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/b38af5386a74416e898955443f2e26547b358cb2",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/d8ce81006ee4e42ce2d0bd3a2ab87adc1e24ef11",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/e5d82695f2cabca3222b8f6a89ea0e18bafc4c0a",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/edef1355224c0799a502a46b71d3649fa0dd218e",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/f37e0367ad6f2147a0b37564b442b7a25bec0d23",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ]
}