{"id":"CVE-2026-68478","aliases":["CVE-2026-68478"],"related":[],"kind":"vulnerability","state":"published","title":"memstick: ms_block: reject a card that reports too many blocks","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-08-15T05:51:33.441Z","modified":"2026-08-17T06:17:57.333Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63","fixed":"a4b9961efe8640f50800811b4a2b2046b3dc2ccc","status":"affected"},{"type":"git","introduced":"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63","fixed":"8937b11f1c3896e066c3fb07387ba17bc8c50b8a","status":"affected"},{"type":"git","introduced":"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63","fixed":"f1c675ecf6e5ad02722f0019f729d8bb588d502e","status":"affected"},{"type":"git","introduced":"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63","fixed":"d5db3439ee8d1c165a09a47e984c4ba508c130df","status":"affected"},{"type":"git","introduced":"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63","fixed":"b86666ac4009a252501cc17242582a7ec9ed976e","status":"affected"},{"type":"git","introduced":"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63","fixed":"39151f0708c84221e94cdd6aa070aba5d7cb1c01","status":"affected"},{"type":"git","introduced":"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63","fixed":"47f0c7d856c67c9935546d2644f18c0d0131b449","status":"affected"},{"type":"git","introduced":"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63","fixed":"718178f524b98bc920d74bc771aed823c8b81425","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.12","status":"unaffected"},{"type":"semver","introduced":"5.10.261","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.212","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.178","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.145","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.97","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.40","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.5","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/a4b9961efe8640f50800811b4a2b2046b3dc2ccc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8937b11f1c3896e066c3fb07387ba17bc8c50b8a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f1c675ecf6e5ad02722f0019f729d8bb588d502e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d5db3439ee8d1c165a09a47e984c4ba508c130df","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b86666ac4009a252501cc17242582a7ec9ed976e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/39151f0708c84221e94cdd6aa070aba5d7cb1c01","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/47f0c7d856c67c9935546d2644f18c0d0131b449","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/718178f524b98bc920d74bc771aed823c8b81425","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-68478","url":"https://www.cve.org/CVERecord?id=CVE-2026-68478","licence":"CVE Terms of Use","modified":"2026-08-17T05:06:21.136Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-68478","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-68478","licence":"Public domain","modified":"2026-08-17T06:17:57.333Z"}],"updatedAt":"2026-11-25T22:59:32.969Z","epss":{"score":0.0022,"percentile":0.0723,"date":"2026-11-30T12:00:22.000Z"}}