CVE-2026-68478

Source
https://cve.org/CVERecord?id=CVE-2026-68478
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68478.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-68478
Downstream
Published
2026-08-15T05:51:33Z
Modified
2026-08-18T03:31:01Z
Summary
memstick: ms_block: reject a card that reports too many blocks
Details

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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68478.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0ab30494bc4f3bc1ea4659b7c5d97c5218554a63
Fixed
a4b9961efe8640f50800811b4a2b2046b3dc2ccc
Fixed
8937b11f1c3896e066c3fb07387ba17bc8c50b8a
Fixed
f1c675ecf6e5ad02722f0019f729d8bb588d502e
Fixed
d5db3439ee8d1c165a09a47e984c4ba508c130df
Fixed
b86666ac4009a252501cc17242582a7ec9ed976e
Fixed
39151f0708c84221e94cdd6aa070aba5d7cb1c01
Fixed
47f0c7d856c67c9935546d2644f18c0d0131b449
Fixed
718178f524b98bc920d74bc771aed823c8b81425

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68478.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.12.0
Fixed
5.10.261
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.212
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.178
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.145
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.97
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.40
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68478.json"