{"id":"CVE-2025-21723","state":"PUBLISHED","title":"scsi: mpi3mr: Fix possible crash when setting up bsg fails","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: mpi3mr: Fix possible crash when setting up bsg fails\n\nIf bsg_setup_queue() fails, the bsg_queue is assigned a non-NULL value.\nConsequently, in mpi3mr_bsg_exit(), the condition \"if(!mrioc->bsg_queue)\"\nwill not be satisfied, preventing execution from entering\nbsg_remove_queue(), which could lead to the following crash:\n\nBUG: kernel NULL pointer dereference, address: 000000000000041c\nCall Trace:\n  <TASK>\n  mpi3mr_bsg_exit+0x1f/0x50 [mpi3mr]\n  mpi3mr_remove+0x6f/0x340 [mpi3mr]\n  pci_device_remove+0x3f/0xb0\n  device_release_driver_internal+0x19d/0x220\n  unbind_store+0xa4/0xb0\n  kernfs_fop_write_iter+0x11f/0x200\n  vfs_write+0x1fc/0x3e0\n  ksys_write+0x67/0xe0\n  do_syscall_64+0x38/0x80\n  entry_SYSCALL_64_after_hwframe+0x78/0xe2","publishedAt":"2025-02-27T02:07:30.985Z","updatedAt":"2026-10-30T12:20:46.798Z","severity":{"score":5.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4268fa7513655a83d5492705591fdac6c65db48a","status":"affected","lessThan":"1ee558f98d9e247210e2301e19cc6e605778d4f1","versionType":"git"},{"version":"4268fa7513655a83d5492705591fdac6c65db48a","status":"affected","lessThan":"bf66ec718e68767f6d463617adaf021963678803","versionType":"git"},{"version":"4268fa7513655a83d5492705591fdac6c65db48a","status":"affected","lessThan":"19b248069d1b1424982723a2bf3941ad864d5204","versionType":"git"},{"version":"4268fa7513655a83d5492705591fdac6c65db48a","status":"affected","lessThan":"832b8f95a2832321b8200ae478ed988b25faaef4","versionType":"git"},{"version":"4268fa7513655a83d5492705591fdac6c65db48a","status":"affected","lessThan":"295006f6e8c17212d3098811166e29627d19e05c","versionType":"git"}],"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":"5.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.19","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.13","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13.2","status":"unaffected","lessThanOrEqual":"6.13.*","versionType":"semver"},{"version":"6.14","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/1ee558f98d9e247210e2301e19cc6e605778d4f1","https://git.kernel.org/stable/c/bf66ec718e68767f6d463617adaf021963678803","https://git.kernel.org/stable/c/19b248069d1b1424982723a2bf3941ad864d5204","https://git.kernel.org/stable/c/832b8f95a2832321b8200ae478ed988b25faaef4","https://git.kernel.org/stable/c/295006f6e8c17212d3098811166e29627d19e05c"],"weaknesses":["CWE-476"],"ingestedAt":"2026-10-30T12:38:04.623Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/21xxx/CVE-2025-21723.json","commit":"db8103c5921aac81d5d90efcf3745980dafabf49","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-21723","state":"PUBLISHED","datePublished":"2025-02-27T02:07:30.985Z","dateUpdated":"2026-10-30T12:20:46.798Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-12-29T08:45:45.754Z"},"containers":{"cna":{"title":"scsi: mpi3mr: Fix possible crash when setting up bsg fails","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: mpi3mr: Fix possible crash when setting up bsg fails\n\nIf bsg_setup_queue() fails, the bsg_queue is assigned a non-NULL value.\nConsequently, in mpi3mr_bsg_exit(), the condition \"if(!mrioc->bsg_queue)\"\nwill not be satisfied, preventing execution from entering\nbsg_remove_queue(), which could lead to the following crash:\n\nBUG: kernel NULL pointer dereference, address: 000000000000041c\nCall Trace:\n  <TASK>\n  mpi3mr_bsg_exit+0x1f/0x50 [mpi3mr]\n  mpi3mr_remove+0x6f/0x340 [mpi3mr]\n  pci_device_remove+0x3f/0xb0\n  device_release_driver_internal+0x19d/0x220\n  unbind_store+0xa4/0xb0\n  kernfs_fop_write_iter+0x11f/0x200\n  vfs_write+0x1fc/0x3e0\n  ksys_write+0x67/0xe0\n  do_syscall_64+0x38/0x80\n  entry_SYSCALL_64_after_hwframe+0x78/0xe2"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4268fa7513655a83d5492705591fdac6c65db48a","status":"affected","lessThan":"1ee558f98d9e247210e2301e19cc6e605778d4f1","versionType":"git"},{"version":"4268fa7513655a83d5492705591fdac6c65db48a","status":"affected","lessThan":"bf66ec718e68767f6d463617adaf021963678803","versionType":"git"},{"version":"4268fa7513655a83d5492705591fdac6c65db48a","status":"affected","lessThan":"19b248069d1b1424982723a2bf3941ad864d5204","versionType":"git"},{"version":"4268fa7513655a83d5492705591fdac6c65db48a","status":"affected","lessThan":"832b8f95a2832321b8200ae478ed988b25faaef4","versionType":"git"},{"version":"4268fa7513655a83d5492705591fdac6c65db48a","status":"affected","lessThan":"295006f6e8c17212d3098811166e29627d19e05c","versionType":"git"}],"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":"5.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.19","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.13","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13.2","status":"unaffected","lessThanOrEqual":"6.13.*","versionType":"semver"},{"version":"6.14","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/1ee558f98d9e247210e2301e19cc6e605778d4f1"},{"url":"https://git.kernel.org/stable/c/bf66ec718e68767f6d463617adaf021963678803"},{"url":"https://git.kernel.org/stable/c/19b248069d1b1424982723a2bf3941ad864d5204"},{"url":"https://git.kernel.org/stable/c/832b8f95a2832321b8200ae478ed988b25faaef4"},{"url":"https://git.kernel.org/stable/c/295006f6e8c17212d3098811166e29627d19e05c"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-30T12:20:46.798Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.1.191"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.6.160"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.12.13"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.13.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.14"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.5,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"id":"CVE-2025-21723","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2025-10-01T20:08:33.491666Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-476","lang":"en","type":"CWE","description":"CWE-476 NULL Pointer Dereference"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-10-01T20:17:05.562Z"}}]}}}