{"id":"CVE-2026-68478","state":"PUBLISHED","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.","publishedAt":"2026-08-15T05:51:33.441Z","updatedAt":"2026-08-17T05:06:21.136Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63","status":"affected","lessThan":"a4b9961efe8640f50800811b4a2b2046b3dc2ccc","versionType":"git"},{"version":"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63","status":"affected","lessThan":"8937b11f1c3896e066c3fb07387ba17bc8c50b8a","versionType":"git"},{"version":"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63","status":"affected","lessThan":"f1c675ecf6e5ad02722f0019f729d8bb588d502e","versionType":"git"},{"version":"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63","status":"affected","lessThan":"d5db3439ee8d1c165a09a47e984c4ba508c130df","versionType":"git"},{"version":"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63","status":"affected","lessThan":"b86666ac4009a252501cc17242582a7ec9ed976e","versionType":"git"},{"version":"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63","status":"affected","lessThan":"39151f0708c84221e94cdd6aa070aba5d7cb1c01","versionType":"git"},{"version":"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63","status":"affected","lessThan":"47f0c7d856c67c9935546d2644f18c0d0131b449","versionType":"git"},{"version":"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63","status":"affected","lessThan":"718178f524b98bc920d74bc771aed823c8b81425","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/memstick/core/ms_block.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.12","versionType":"semver"},{"version":"5.10.261","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.212","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.178","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.145","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.97","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.40","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.5","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/memstick/core/ms_block.c"]}],"references":["https://git.kernel.org/stable/c/a4b9961efe8640f50800811b4a2b2046b3dc2ccc","https://git.kernel.org/stable/c/8937b11f1c3896e066c3fb07387ba17bc8c50b8a","https://git.kernel.org/stable/c/f1c675ecf6e5ad02722f0019f729d8bb588d502e","https://git.kernel.org/stable/c/d5db3439ee8d1c165a09a47e984c4ba508c130df","https://git.kernel.org/stable/c/b86666ac4009a252501cc17242582a7ec9ed976e","https://git.kernel.org/stable/c/39151f0708c84221e94cdd6aa070aba5d7cb1c01","https://git.kernel.org/stable/c/47f0c7d856c67c9935546d2644f18c0d0131b449","https://git.kernel.org/stable/c/718178f524b98bc920d74bc771aed823c8b81425"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:49.727Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/68xxx/CVE-2026-68478.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-68478","state":"PUBLISHED","datePublished":"2026-08-15T05:51:33.441Z","dateUpdated":"2026-08-17T05:06:21.136Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-07-30T09:28:09.397Z"},"containers":{"cna":{"title":"memstick: ms_block: reject a card that reports too many blocks","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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63","status":"affected","lessThan":"a4b9961efe8640f50800811b4a2b2046b3dc2ccc","versionType":"git"},{"version":"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63","status":"affected","lessThan":"8937b11f1c3896e066c3fb07387ba17bc8c50b8a","versionType":"git"},{"version":"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63","status":"affected","lessThan":"f1c675ecf6e5ad02722f0019f729d8bb588d502e","versionType":"git"},{"version":"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63","status":"affected","lessThan":"d5db3439ee8d1c165a09a47e984c4ba508c130df","versionType":"git"},{"version":"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63","status":"affected","lessThan":"b86666ac4009a252501cc17242582a7ec9ed976e","versionType":"git"},{"version":"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63","status":"affected","lessThan":"39151f0708c84221e94cdd6aa070aba5d7cb1c01","versionType":"git"},{"version":"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63","status":"affected","lessThan":"47f0c7d856c67c9935546d2644f18c0d0131b449","versionType":"git"},{"version":"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63","status":"affected","lessThan":"718178f524b98bc920d74bc771aed823c8b81425","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/memstick/core/ms_block.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.12","versionType":"semver"},{"version":"5.10.261","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.212","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.178","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.145","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.97","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.40","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.5","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/memstick/core/ms_block.c"]}],"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"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-17T05:06:21.136Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.12","versionEndExcluding":"5.10.261"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.12","versionEndExcluding":"5.15.212"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.12","versionEndExcluding":"6.1.178"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.12","versionEndExcluding":"6.6.145"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.12","versionEndExcluding":"6.12.97"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.12","versionEndExcluding":"6.18.40"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.12","versionEndExcluding":"7.1.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.12","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}