{"id":"CVE-2026-143386","state":"PUBLISHED","title":"scsi: core: Balance the pseudo target reap reference","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: core: Balance the pseudo target reap reference\n\nWith memory allocation profiling enabled, unloading scsi_debug reports\nallocations left at module unload. A stock Linux 7.2.11 VM without OpenZFS\nemitted the following on each of three load/unload cycles:\n\n[    1.644665] drivers/scsi/scsi_debug.c:8863 module scsi_debug func:sdebug_add_host_helper has 1024 allocated at module unload\n[    1.656260] drivers/scsi/scsi_debug.c:1261 module scsi_debug func:sdebug_target_alloc has 16 allocated at module unload\n\nscsi_alloc_target() supplies a reap reference for its caller. The SCSI\ndevice initializer takes another reference, which device removal drops.\nscsi_get_pseudo_sdev() drops its caller reference only when device\nallocation fails. On success the target cannot be destroyed, retaining its\ndriver-private data and its parent host and adapter.\n\nDrop the caller reference in the common cleanup path, as the other\nscsi_alloc_target() callers do.","publishedAt":"2026-12-03T09:22:30.891Z","updatedAt":"2026-12-03T09:22:30.891Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f6810557c37e47191c7d4015817567f84d066911","status":"affected","lessThan":"a468be14ecee522eec351c24039718ed5280953a","versionType":"git"},{"version":"d630fbf6fc8ce2fc95de7784de5499387b682dc1","status":"affected","lessThan":"9bee8b729f1b28bc9d66e216d7d95546c3cee5ed","versionType":"git"},{"version":"d630fbf6fc8ce2fc95de7784de5499387b682dc1","status":"affected","lessThan":"8a832fb632da303cdf0704e0d56722ec47799f19","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/scsi_scan.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.19","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/scsi_scan.c"]}],"references":["https://git.kernel.org/stable/c/a468be14ecee522eec351c24039718ed5280953a","https://git.kernel.org/stable/c/9bee8b729f1b28bc9d66e216d7d95546c3cee5ed","https://git.kernel.org/stable/c/8a832fb632da303cdf0704e0d56722ec47799f19"],"weaknesses":[],"ingestedAt":"2026-12-03T09:44:04.436Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143386.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143386","state":"PUBLISHED","datePublished":"2026-12-03T09:22:30.891Z","dateUpdated":"2026-12-03T09:22:30.891Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.372Z"},"containers":{"cna":{"title":"scsi: core: Balance the pseudo target reap reference","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: core: Balance the pseudo target reap reference\n\nWith memory allocation profiling enabled, unloading scsi_debug reports\nallocations left at module unload. A stock Linux 7.2.11 VM without OpenZFS\nemitted the following on each of three load/unload cycles:\n\n[    1.644665] drivers/scsi/scsi_debug.c:8863 module scsi_debug func:sdebug_add_host_helper has 1024 allocated at module unload\n[    1.656260] drivers/scsi/scsi_debug.c:1261 module scsi_debug func:sdebug_target_alloc has 16 allocated at module unload\n\nscsi_alloc_target() supplies a reap reference for its caller. The SCSI\ndevice initializer takes another reference, which device removal drops.\nscsi_get_pseudo_sdev() drops its caller reference only when device\nallocation fails. On success the target cannot be destroyed, retaining its\ndriver-private data and its parent host and adapter.\n\nDrop the caller reference in the common cleanup path, as the other\nscsi_alloc_target() callers do."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f6810557c37e47191c7d4015817567f84d066911","status":"affected","lessThan":"a468be14ecee522eec351c24039718ed5280953a","versionType":"git"},{"version":"d630fbf6fc8ce2fc95de7784de5499387b682dc1","status":"affected","lessThan":"9bee8b729f1b28bc9d66e216d7d95546c3cee5ed","versionType":"git"},{"version":"d630fbf6fc8ce2fc95de7784de5499387b682dc1","status":"affected","lessThan":"8a832fb632da303cdf0704e0d56722ec47799f19","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/scsi_scan.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.19","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/scsi_scan.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/a468be14ecee522eec351c24039718ed5280953a"},{"url":"https://git.kernel.org/stable/c/9bee8b729f1b28bc9d66e216d7d95546c3cee5ed"},{"url":"https://git.kernel.org/stable/c/8a832fb632da303cdf0704e0d56722ec47799f19"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:22:30.891Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.19","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.19","versionEndExcluding":"7.4-rc2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}