{"id":"CVE-2026-139716","aliases":["CVE-2026-139716"],"related":[],"kind":"vulnerability","state":"published","title":"usb-storage: alauda: fix out-of-bounds zone index","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb-storage: alauda: fix out-of-bounds zone index\n\nMEDIA_INFO(us).lba_to_pba and .pba_to_lba are arrays of num_zones\npointers, allocated by kcalloc() in alauda_init_media().\nalauda_ensure_map_for_zone() reads lba_to_pba[zone] and\npba_to_lba[zone], and when either is NULL alauda_read_map() writes a\npointer back to both. Two separate errors let zone reach num_zones, one\nelement past the end.\n\nmax_lba is capacity >> (blockshift + pageshift), which counts physical\nblocks, but zone is lba / uzonesize and uzonesize is 125/128 of\nzonesize. On a 16 MB card (alauda_card_ids id 0x73) num_zones is 1 and\nuzonesize is 1000, so lba 1000 to 1023 pass the bounds check and index\nelement 1 of a one-element array.\n\nalauda_read_data() also calls alauda_ensure_map_for_zone() before it\ncompares lba against max_lba, so any larger lba is used as an index\nbefore the check rejects it. alauda_write_data() already checks first.\n\nBound lba by num_zones * uzonesize on both paths and move the read\nside's call below the check. alauda_transport() reports\nnum_zones * uzonesize * blocksize for READ_CAPACITY, so the new bound is\nexactly the range the device advertises and no block becomes\nunreachable.\n\nsd never issues an lba past the reported capacity; an SG_IO READ_10 can.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb-storage: alauda: fix out-of-bounds zone index\n\nMEDIA_INFO(us).lba_to_pba and .pba_to_lba are arrays of num_zones\npointers, allocated by kcalloc() in alauda_init_media().\nalauda_ensure_map_for_zone() reads lba_to_pba[zone] and\npba_to_lba[zone], and when either is NULL alauda_read_map() writes a\npointer back to both. Two separate errors let zone reach num_zones, one\nelement past the end.\n\nmax_lba is capacity >> (blockshift + pageshift), which counts physical\nblocks, but zone is lba / uzonesize and uzonesize is 125/128 of\nzonesize. On a 16 MB card (alauda_card_ids id 0x73) num_zones is 1 and\nuzonesize is 1000, so lba 1000 to 1023 pass the bounds check and index\nelement 1 of a one-element array.\n\nalauda_read_data() also calls alauda_ensure_map_for_zone() before it\ncompares lba against max_lba, so any larger lba is used as an index\nbefore the check rejects it. alauda_write_data() already checks first.\n\nBound lba by num_zones * uzonesize on both paths and move the read\nside's call below the check. alauda_transport() reports\nnum_zones * uzonesize * blocksize for READ_CAPACITY, so the new bound is\nexactly the range the device advertises and no block becomes\nunreachable.\n\nsd never issues an lba past the reported capacity; an SG_IO READ_10 can.","source":"cvelist"}],"published":"2026-11-30T13:37:18.800Z","modified":"2026-11-30T14:20:02.373Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"e80b0fade09ef1ee67b0898d480d4c588f124d5f","fixed":"b30a65bf59c74d5ec23982a440d3c385e0d5f371","status":"affected"},{"type":"git","introduced":"e80b0fade09ef1ee67b0898d480d4c588f124d5f","fixed":"660e03c03073508938aad2fe45836d1eb50f556f","status":"affected"},{"type":"git","introduced":"e80b0fade09ef1ee67b0898d480d4c588f124d5f","fixed":"a7c01cbf98a4bd52d0019373a042e25206633886","status":"affected"},{"type":"git","introduced":"e80b0fade09ef1ee67b0898d480d4c588f124d5f","fixed":"2ae4b79ee580246adb0b154dcf1eb6dab06bf832","status":"affected"},{"type":"git","introduced":"e80b0fade09ef1ee67b0898d480d4c588f124d5f","fixed":"45edfe489e8dd1c12f6692fde60006a6cabb8349","status":"affected"},{"type":"git","introduced":"e80b0fade09ef1ee67b0898d480d4c588f124d5f","fixed":"9a5e3f50a597e7cccac8b156dfcae894d001d8ea","status":"affected"},{"type":"git","introduced":"e80b0fade09ef1ee67b0898d480d4c588f124d5f","fixed":"f83f896d3d78d4adf85a932c9dffae88da8a4f26","status":"affected"},{"type":"git","introduced":"e80b0fade09ef1ee67b0898d480d4c588f124d5f","fixed":"c4542993c071fcafe7335698bf52650dee7e3555","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.16","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","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/b30a65bf59c74d5ec23982a440d3c385e0d5f371","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/660e03c03073508938aad2fe45836d1eb50f556f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a7c01cbf98a4bd52d0019373a042e25206633886","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2ae4b79ee580246adb0b154dcf1eb6dab06bf832","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/45edfe489e8dd1c12f6692fde60006a6cabb8349","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9a5e3f50a597e7cccac8b156dfcae894d001d8ea","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f83f896d3d78d4adf85a932c9dffae88da8a4f26","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c4542993c071fcafe7335698bf52650dee7e3555","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139716","url":"https://www.cve.org/CVERecord?id=CVE-2026-139716","licence":"CVE Terms of Use","modified":"2026-11-30T13:37:18.800Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139716","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139716","licence":"Public domain","modified":"2026-11-30T14:20:02.373Z"}],"updatedAt":"2026-11-30T14:33:40.166Z","epss":{"score":0.0037,"percentile":0.32969,"date":"2026-12-01T12:00:22.000Z"}}