{"id":"CVE-2026-139723","state":"PUBLISHED","title":"scsi: mpi3mr: Fix buffer overflow in the BSG target device map","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: mpi3mr: Fix buffer overflow in the BSG target device map\n\nThe size of the target device map buffer is held in a u16 while the number\nof devices it is derived from is not bounded to fit. With enough devices\nthe size wraps, a short buffer is allocated, and the loop that fills it\nwrites past the end.\n\nDo the calculation in size_t.","publishedAt":"2026-11-30T13:37:22.801Z","updatedAt":"2026-11-30T13:37:22.801Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8ba997b22f2cd5d29aad8c39f6201f7608ed0c04","status":"affected","lessThan":"18f8301c66da25bbd4efed6ee39d57f31c66b88f","versionType":"git"},{"version":"fb428a2005fc1260d18b989cc5199f281617f44d","status":"affected","lessThan":"60b25364d7e430c202fb3f1aa24247914d7b1d53","versionType":"git"},{"version":"fb428a2005fc1260d18b989cc5199f281617f44d","status":"affected","lessThan":"89930d3c26c282526f904118ddbe0d5b5755cb0b","versionType":"git"},{"version":"fb428a2005fc1260d18b989cc5199f281617f44d","status":"affected","lessThan":"3d858ac76ace4dee07d8d556ff72d7cd3aa3ccd8","versionType":"git"},{"version":"fb428a2005fc1260d18b989cc5199f281617f44d","status":"affected","lessThan":"fe81812af36bad609d233f11ba989dedcde41ca3","versionType":"git"},{"version":"fb428a2005fc1260d18b989cc5199f281617f44d","status":"affected","lessThan":"203b3072e7aa10d98b3f2b766693ea925cfc571d","versionType":"git"},{"version":"2f3d3fa5b8ed7d3b147478f42b00b468eeb1ecd2","status":"affected","versionType":"git"},{"version":"6.1.16","status":"affected","lessThan":"6.1.193","versionType":"semver"},{"version":"6.2.3","status":"affected","lessThan":"6.3","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/mpi3mr/mpi3mr_app.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.3","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/mpi3mr/mpi3mr_app.c"]}],"references":["https://git.kernel.org/stable/c/18f8301c66da25bbd4efed6ee39d57f31c66b88f","https://git.kernel.org/stable/c/60b25364d7e430c202fb3f1aa24247914d7b1d53","https://git.kernel.org/stable/c/89930d3c26c282526f904118ddbe0d5b5755cb0b","https://git.kernel.org/stable/c/3d858ac76ace4dee07d8d556ff72d7cd3aa3ccd8","https://git.kernel.org/stable/c/fe81812af36bad609d233f11ba989dedcde41ca3","https://git.kernel.org/stable/c/203b3072e7aa10d98b3f2b766693ea925cfc571d"],"weaknesses":[],"ingestedAt":"2026-11-30T13:54:04.526Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139723.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139723","state":"PUBLISHED","datePublished":"2026-11-30T13:37:22.801Z","dateUpdated":"2026-11-30T13:37:22.801Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.949Z"},"containers":{"cna":{"title":"scsi: mpi3mr: Fix buffer overflow in the BSG target device map","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: mpi3mr: Fix buffer overflow in the BSG target device map\n\nThe size of the target device map buffer is held in a u16 while the number\nof devices it is derived from is not bounded to fit. With enough devices\nthe size wraps, a short buffer is allocated, and the loop that fills it\nwrites past the end.\n\nDo the calculation in size_t."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8ba997b22f2cd5d29aad8c39f6201f7608ed0c04","status":"affected","lessThan":"18f8301c66da25bbd4efed6ee39d57f31c66b88f","versionType":"git"},{"version":"fb428a2005fc1260d18b989cc5199f281617f44d","status":"affected","lessThan":"60b25364d7e430c202fb3f1aa24247914d7b1d53","versionType":"git"},{"version":"fb428a2005fc1260d18b989cc5199f281617f44d","status":"affected","lessThan":"89930d3c26c282526f904118ddbe0d5b5755cb0b","versionType":"git"},{"version":"fb428a2005fc1260d18b989cc5199f281617f44d","status":"affected","lessThan":"3d858ac76ace4dee07d8d556ff72d7cd3aa3ccd8","versionType":"git"},{"version":"fb428a2005fc1260d18b989cc5199f281617f44d","status":"affected","lessThan":"fe81812af36bad609d233f11ba989dedcde41ca3","versionType":"git"},{"version":"fb428a2005fc1260d18b989cc5199f281617f44d","status":"affected","lessThan":"203b3072e7aa10d98b3f2b766693ea925cfc571d","versionType":"git"},{"version":"2f3d3fa5b8ed7d3b147478f42b00b468eeb1ecd2","status":"affected","versionType":"git"},{"version":"6.1.16","status":"affected","lessThan":"6.1.193","versionType":"semver"},{"version":"6.2.3","status":"affected","lessThan":"6.3","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/mpi3mr/mpi3mr_app.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.3","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/mpi3mr/mpi3mr_app.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/18f8301c66da25bbd4efed6ee39d57f31c66b88f"},{"url":"https://git.kernel.org/stable/c/60b25364d7e430c202fb3f1aa24247914d7b1d53"},{"url":"https://git.kernel.org/stable/c/89930d3c26c282526f904118ddbe0d5b5755cb0b"},{"url":"https://git.kernel.org/stable/c/3d858ac76ace4dee07d8d556ff72d7cd3aa3ccd8"},{"url":"https://git.kernel.org/stable/c/fe81812af36bad609d233f11ba989dedcde41ca3"},{"url":"https://git.kernel.org/stable/c/203b3072e7aa10d98b3f2b766693ea925cfc571d"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:37:22.801Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1.16","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.3","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.3","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.3","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.3","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.3","versionEndExcluding":"7.4-rc1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}