{"api_version":"1","generated_at":"2026-08-22T04:27:11+00:00","cve":"CVE-2026-68478","urls":{"html":"https://cve.report/CVE-2026-68478","api":"https://cve.report/api/cve/CVE-2026-68478.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-68478","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-68478"},"summary":{"title":"memstick: ms_block: reject a card that reports too many blocks","description":"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->zone_count = msb->block_count / MS_BLOCKS_IN_ZONE;\n\t...\n\tfor (i = 0; i < msb->zone_count; i++)\n\t\tmsb->free_block_count[i] = MS_BLOCKS_IN_ZONE;\n\nmsb->block_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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-08-15 06:20:47","updated_at":"2026-08-17 06:17:57"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/f1c675ecf6e5ad02722f0019f729d8bb588d502e","name":"https://git.kernel.org/stable/c/f1c675ecf6e5ad02722f0019f729d8bb588d502e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a4b9961efe8640f50800811b4a2b2046b3dc2ccc","name":"https://git.kernel.org/stable/c/a4b9961efe8640f50800811b4a2b2046b3dc2ccc","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d5db3439ee8d1c165a09a47e984c4ba508c130df","name":"https://git.kernel.org/stable/c/d5db3439ee8d1c165a09a47e984c4ba508c130df","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/39151f0708c84221e94cdd6aa070aba5d7cb1c01","name":"https://git.kernel.org/stable/c/39151f0708c84221e94cdd6aa070aba5d7cb1c01","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/8937b11f1c3896e066c3fb07387ba17bc8c50b8a","name":"https://git.kernel.org/stable/c/8937b11f1c3896e066c3fb07387ba17bc8c50b8a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b86666ac4009a252501cc17242582a7ec9ed976e","name":"https://git.kernel.org/stable/c/b86666ac4009a252501cc17242582a7ec9ed976e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/718178f524b98bc920d74bc771aed823c8b81425","name":"https://git.kernel.org/stable/c/718178f524b98bc920d74bc771aed823c8b81425","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/47f0c7d856c67c9935546d2644f18c0d0131b449","name":"https://git.kernel.org/stable/c/47f0c7d856c67c9935546d2644f18c0d0131b449","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-68478","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-68478","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 a4b9961efe8640f50800811b4a2b2046b3dc2ccc git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 8937b11f1c3896e066c3fb07387ba17bc8c50b8a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 f1c675ecf6e5ad02722f0019f729d8bb588d502e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 d5db3439ee8d1c165a09a47e984c4ba508c130df git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 b86666ac4009a252501cc17242582a7ec9ed976e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 39151f0708c84221e94cdd6aa070aba5d7cb1c01 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 47f0c7d856c67c9935546d2644f18c0d0131b449 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 718178f524b98bc920d74bc771aed823c8b81425 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3.12","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 3.12 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.261 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.212 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.178 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.145 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.97 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.40 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.1.5 7.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"68478","cve":"CVE-2026-68478","epss":"0.002100000","percentile":"0.115390000","score_date":"2026-08-17","updated_at":"2026-08-18 00:11:47"},"legacy_qids":[]},"source_records":{"cve_program":{"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->zone_count = msb->block_count / MS_BLOCKS_IN_ZONE;\n\t...\n\tfor (i = 0; i < msb->zone_count; i++)\n\t\tmsb->free_block_count[i] = MS_BLOCKS_IN_ZONE;\n\nmsb->block_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"},"nvd":{"publishedDate":"2026-08-15 06:20:47","lastModifiedDate":"2026-08-17 06:17:57","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"68478","Ordinal":"1","Title":"memstick: ms_block: reject a card that reports too many blocks","CVE":"CVE-2026-68478","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"68478","Ordinal":"1","NoteData":"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->zone_count = msb->block_count / MS_BLOCKS_IN_ZONE;\n\t...\n\tfor (i = 0; i < msb->zone_count; i++)\n\t\tmsb->free_block_count[i] = MS_BLOCKS_IN_ZONE;\n\nmsb->block_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.","Type":"Description","Title":"memstick: ms_block: reject a card that reports too many blocks"}]}}}