CVE-2026-68478 (GCVE-0-2026-68478)

Vulnerability from cvelistv5 – Published: 2026-08-15 05:51 – Updated: 2026-08-17 05:06
VLAI
Title
memstick: ms_block: reject a card that reports too many blocks
Summary
In the Linux kernel, the following vulnerability has been resolved: memstick: ms_block: reject a card that reports too many blocks msb_ftl_initialize() computes the zone count from the card block count with no bound: msb->zone_count = msb->block_count / MS_BLOCKS_IN_ZONE; ... for (i = 0; i < msb->zone_count; i++) msb->free_block_count[i] = MS_BLOCKS_IN_ZONE; msb->block_count is a card value. msb_read_boot_blocks() reads number_of_blocks from the card boot page and byte swaps it. free_block_count is a fixed int[MS_MAX_ZONES]. MS_MAX_ZONES is 16, so the valid indices are 0 to 15. The init loop above indexes it by zone_count. msb_mark_block_used() and msb_mark_block_unused() index it by pba / MS_BLOCKS_IN_ZONE, for pba up to block_count - 1. A card may report up to 65535 blocks. A block_count above 8192 (MS_MAX_ZONES * MS_BLOCKS_IN_ZONE) lets the pba index reach 16. That writes past free_block_count[] and corrupts struct msb_data. A larger count runs the init loop past the end too. A real Memory Stick has at most 16 zones. So it has at most 8192 blocks. msb_ftl_initialize() now rejects a card that reports more than MS_MAX_ZONES * MS_BLOCKS_IN_ZONE blocks.
Severity
No CVSS data available.
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 , < a4b9961efe8640f50800811b4a2b2046b3dc2ccc (git)
Affected: 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 , < 8937b11f1c3896e066c3fb07387ba17bc8c50b8a (git)
Affected: 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 , < f1c675ecf6e5ad02722f0019f729d8bb588d502e (git)
Affected: 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 , < d5db3439ee8d1c165a09a47e984c4ba508c130df (git)
Affected: 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 , < b86666ac4009a252501cc17242582a7ec9ed976e (git)
Affected: 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 , < 39151f0708c84221e94cdd6aa070aba5d7cb1c01 (git)
Affected: 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 , < 47f0c7d856c67c9935546d2644f18c0d0131b449 (git)
Affected: 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 , < 718178f524b98bc920d74bc771aed823c8b81425 (git)
guessed Create a notification for this product.
Linux Linux Affected: 3.12
Unaffected: 0 , < 3.12 (semver)
Unaffected: 5.10.261 , ≤ 5.10.* (semver)
Unaffected: 5.15.212 , ≤ 5.15.* (semver)
Unaffected: 6.1.178 , ≤ 6.1.* (semver)
Unaffected: 6.6.145 , ≤ 6.6.* (semver)
Unaffected: 6.12.97 , ≤ 6.12.* (semver)
Unaffected: 6.18.40 , ≤ 6.18.* (semver)
Unaffected: 7.1.5 , ≤ 7.1.* (semver)
Unaffected: 7.2 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/memstick/core/ms_block.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "a4b9961efe8640f50800811b4a2b2046b3dc2ccc",
              "status": "affected",
              "version": "0ab30494bc4f3bc1ea4659b7c5d97c5218554a63",
              "versionType": "git"
            },
            {
              "lessThan": "8937b11f1c3896e066c3fb07387ba17bc8c50b8a",
              "status": "affected",
              "version": "0ab30494bc4f3bc1ea4659b7c5d97c5218554a63",
              "versionType": "git"
            },
            {
              "lessThan": "f1c675ecf6e5ad02722f0019f729d8bb588d502e",
              "status": "affected",
              "version": "0ab30494bc4f3bc1ea4659b7c5d97c5218554a63",
              "versionType": "git"
            },
            {
              "lessThan": "d5db3439ee8d1c165a09a47e984c4ba508c130df",
              "status": "affected",
              "version": "0ab30494bc4f3bc1ea4659b7c5d97c5218554a63",
              "versionType": "git"
            },
            {
              "lessThan": "b86666ac4009a252501cc17242582a7ec9ed976e",
              "status": "affected",
              "version": "0ab30494bc4f3bc1ea4659b7c5d97c5218554a63",
              "versionType": "git"
            },
            {
              "lessThan": "39151f0708c84221e94cdd6aa070aba5d7cb1c01",
              "status": "affected",
              "version": "0ab30494bc4f3bc1ea4659b7c5d97c5218554a63",
              "versionType": "git"
            },
            {
              "lessThan": "47f0c7d856c67c9935546d2644f18c0d0131b449",
              "status": "affected",
              "version": "0ab30494bc4f3bc1ea4659b7c5d97c5218554a63",
              "versionType": "git"
            },
            {
              "lessThan": "718178f524b98bc920d74bc771aed823c8b81425",
              "status": "affected",
              "version": "0ab30494bc4f3bc1ea4659b7c5d97c5218554a63",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/memstick/core/ms_block.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "3.12"
            },
            {
              "lessThan": "3.12",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.261",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.212",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.178",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.145",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.97",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.40",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.1.*",
              "status": "unaffected",
              "version": "7.1.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.261",
                  "versionStartIncluding": "3.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.212",
                  "versionStartIncluding": "3.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.178",
                  "versionStartIncluding": "3.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.145",
                  "versionStartIncluding": "3.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.97",
                  "versionStartIncluding": "3.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.40",
                  "versionStartIncluding": "3.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1.5",
                  "versionStartIncluding": "3.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2",
                  "versionStartIncluding": "3.12",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmemstick: ms_block: reject a card that reports too many blocks\n\nmsb_ftl_initialize() computes the zone count from the card block count\nwith no bound:\n\n\tmsb-\u003ezone_count = msb-\u003eblock_count / MS_BLOCKS_IN_ZONE;\n\t...\n\tfor (i = 0; i \u003c msb-\u003ezone_count; i++)\n\t\tmsb-\u003efree_block_count[i] = MS_BLOCKS_IN_ZONE;\n\nmsb-\u003eblock_count is a card value. msb_read_boot_blocks() reads\nnumber_of_blocks from the card boot page and byte swaps it.\nfree_block_count is a fixed int[MS_MAX_ZONES]. MS_MAX_ZONES is 16, so the\nvalid indices are 0 to 15. The init loop above indexes it by zone_count.\nmsb_mark_block_used() and msb_mark_block_unused() index it by\npba / MS_BLOCKS_IN_ZONE, for pba up to block_count - 1. A card may report\nup to 65535 blocks. A block_count above 8192 (MS_MAX_ZONES *\nMS_BLOCKS_IN_ZONE) lets the pba index reach 16. That writes past\nfree_block_count[] and corrupts struct msb_data. A larger count runs the\ninit loop past the end too.\n\nA real Memory Stick has at most 16 zones. So it has at most 8192 blocks.\nmsb_ftl_initialize() now rejects a card that reports more than\nMS_MAX_ZONES * MS_BLOCKS_IN_ZONE blocks."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-17T05:06:21.136Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/a4b9961efe8640f50800811b4a2b2046b3dc2ccc"
        },
        {
          "url": "https://git.kernel.org/stable/c/8937b11f1c3896e066c3fb07387ba17bc8c50b8a"
        },
        {
          "url": "https://git.kernel.org/stable/c/f1c675ecf6e5ad02722f0019f729d8bb588d502e"
        },
        {
          "url": "https://git.kernel.org/stable/c/d5db3439ee8d1c165a09a47e984c4ba508c130df"
        },
        {
          "url": "https://git.kernel.org/stable/c/b86666ac4009a252501cc17242582a7ec9ed976e"
        },
        {
          "url": "https://git.kernel.org/stable/c/39151f0708c84221e94cdd6aa070aba5d7cb1c01"
        },
        {
          "url": "https://git.kernel.org/stable/c/47f0c7d856c67c9935546d2644f18c0d0131b449"
        },
        {
          "url": "https://git.kernel.org/stable/c/718178f524b98bc920d74bc771aed823c8b81425"
        }
      ],
      "title": "memstick: ms_block: reject a card that reports too many blocks",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-68478",
    "datePublished": "2026-08-15T05:51:33.441Z",
    "dateReserved": "2026-07-30T09:28:09.397Z",
    "dateUpdated": "2026-08-17T05:06:21.136Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-68478",
      "date": "2026-08-24",
      "epss": "0.0021",
      "percentile": "0.11104"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-68478\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-08-15T06:20:47.573\",\"lastModified\":\"2026-08-17T06:17:57.333\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nmemstick: ms_block: reject a card that reports too many blocks\\n\\nmsb_ftl_initialize() computes the zone count from the card block count\\nwith no bound:\\n\\n\\tmsb-\u003ezone_count = msb-\u003eblock_count / MS_BLOCKS_IN_ZONE;\\n\\t...\\n\\tfor (i = 0; i \u003c msb-\u003ezone_count; i++)\\n\\t\\tmsb-\u003efree_block_count[i] = MS_BLOCKS_IN_ZONE;\\n\\nmsb-\u003eblock_count is a card value. msb_read_boot_blocks() reads\\nnumber_of_blocks from the card boot page and byte swaps it.\\nfree_block_count is a fixed int[MS_MAX_ZONES]. MS_MAX_ZONES is 16, so the\\nvalid indices are 0 to 15. The init loop above indexes it by zone_count.\\nmsb_mark_block_used() and msb_mark_block_unused() index it by\\npba / MS_BLOCKS_IN_ZONE, for pba up to block_count - 1. A card may report\\nup to 65535 blocks. A block_count above 8192 (MS_MAX_ZONES *\\nMS_BLOCKS_IN_ZONE) lets the pba index reach 16. That writes past\\nfree_block_count[] and corrupts struct msb_data. A larger count runs the\\ninit loop past the end too.\\n\\nA real Memory Stick has at most 16 zones. So it has at most 8192 blocks.\\nmsb_ftl_initialize() now rejects a card that reports more than\\nMS_MAX_ZONES * MS_BLOCKS_IN_ZONE blocks.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/memstick/core/ms_block.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63\",\"lessThan\":\"a4b9961efe8640f50800811b4a2b2046b3dc2ccc\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63\",\"lessThan\":\"8937b11f1c3896e066c3fb07387ba17bc8c50b8a\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63\",\"lessThan\":\"f1c675ecf6e5ad02722f0019f729d8bb588d502e\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63\",\"lessThan\":\"d5db3439ee8d1c165a09a47e984c4ba508c130df\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63\",\"lessThan\":\"b86666ac4009a252501cc17242582a7ec9ed976e\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63\",\"lessThan\":\"39151f0708c84221e94cdd6aa070aba5d7cb1c01\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63\",\"lessThan\":\"47f0c7d856c67c9935546d2644f18c0d0131b449\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63\",\"lessThan\":\"718178f524b98bc920d74bc771aed823c8b81425\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/memstick/core/ms_block.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"3.12\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"3.12\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.10.261\",\"lessThanOrEqual\":\"5.10.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.15.212\",\"lessThanOrEqual\":\"5.15.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.1.178\",\"lessThanOrEqual\":\"6.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.6.145\",\"lessThanOrEqual\":\"6.6.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.12.97\",\"lessThanOrEqual\":\"6.12.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.18.40\",\"lessThanOrEqual\":\"6.18.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.1.5\",\"lessThanOrEqual\":\"7.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.2\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/39151f0708c84221e94cdd6aa070aba5d7cb1c01\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/47f0c7d856c67c9935546d2644f18c0d0131b449\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/718178f524b98bc920d74bc771aed823c8b81425\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/8937b11f1c3896e066c3fb07387ba17bc8c50b8a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/a4b9961efe8640f50800811b4a2b2046b3dc2ccc\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/b86666ac4009a252501cc17242582a7ec9ed976e\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/d5db3439ee8d1c165a09a47e984c4ba508c130df\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/f1c675ecf6e5ad02722f0019f729d8bb588d502e\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}",
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-08-17T16:04:56+00:00",
      "cve": "CVE-2026-68478",
      "id": "CVE-2026-68478",
      "initial_release_date": "2026-08-15T00:00:00+00:00",
      "product_status:known_not_affected": "274",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: memstick: ms_block: reject a card that reports too many blocks",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-68478.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…