{"api_version":"1","generated_at":"2026-10-23T18:11:52+00:00","cve":"CVE-2026-99019","urls":{"html":"https://cve.report/CVE-2026-99019","api":"https://cve.report/api/cve/CVE-2026-99019.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99019","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99019"},"summary":{"title":"scsi: ch: Do not keep references to data transfer element devices","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: ch: Do not keep references to data transfer element devices\n\nch_readconfig() looks up the scsi_device of every data transfer element\nwhose SCSI id the changer reports in READ ELEMENT STATUS, and stores it in\nch->dt[]. scsi_device_lookup() takes a reference, and nothing ever drops\nit: ch_destroy() frees the array with kfree(). ch->dt[] is read nowhere\nelse - it only supplies the vendor, model and revision printed in the same\nloop.\n\nOnce such a drive is removed, its scsi_device can never be released. It\nstays on the host's device list at its address, so a new device there is\nrefused by anything that walks the list - target_core_pscsi reports\n\"scsi_device_get() failed for H:C:T:L\" - and the low-level driver's module\ncan no longer be unloaded. Only a reboot recovers.\n\nIt shows with any changer that reports its drives' ids; with the mhvtl\nvirtual library (IBM 3573-TL personality), each create and remove of a\nlibrary with four drives leaves four references behind, counted by the\nmodule's use count in lsmod. With ch not bound the count is unchanged, and\nwith this patch applied it is unchanged too.\n\nDrop the reference as soon as the name has been printed, and remove the now\nunused dt[] array. That also removes the array leaked when ch_probe() fails\nafter ch_readconfig().\n\nThe same leak was reported with an RFC patch in 2022, which was not merged.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-10-23 13:17:24","updated_at":"2026-10-23 13:17:24"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/1d35a17f1c2ed4154731895694a1a3557f0da766","name":"https://git.kernel.org/stable/c/1d35a17f1c2ed4154731895694a1a3557f0da766","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ec6ecab1b7577ae555ee6b81480814d123dd9ec0","name":"https://git.kernel.org/stable/c/ec6ecab1b7577ae555ee6b81480814d123dd9ec0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a34a230ccea1b8b667ae59dca11295a2c8f81738","name":"https://git.kernel.org/stable/c/a34a230ccea1b8b667ae59dca11295a2c8f81738","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/cef2cedb6f7a394b278775b3d6ffb9b20ecd61db","name":"https://git.kernel.org/stable/c/cef2cedb6f7a394b278775b3d6ffb9b20ecd61db","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/27c0f718d3b3c99e6d315308e95d987d0382a8a8","name":"https://git.kernel.org/stable/c/27c0f718d3b3c99e6d315308e95d987d0382a8a8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99019","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99019","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected daa6eda65a53e5addf86c6bc829129ff51b08bda ec6ecab1b7577ae555ee6b81480814d123dd9ec0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected daa6eda65a53e5addf86c6bc829129ff51b08bda cef2cedb6f7a394b278775b3d6ffb9b20ecd61db git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected daa6eda65a53e5addf86c6bc829129ff51b08bda a34a230ccea1b8b667ae59dca11295a2c8f81738 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected daa6eda65a53e5addf86c6bc829129ff51b08bda 1d35a17f1c2ed4154731895694a1a3557f0da766 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected daa6eda65a53e5addf86c6bc829129ff51b08bda 27c0f718d3b3c99e6d315308e95d987d0382a8a8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2.6.13","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 2.6.13 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.160 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.114 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.58 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.2.11 7.2.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/scsi/ch.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"ec6ecab1b7577ae555ee6b81480814d123dd9ec0","status":"affected","version":"daa6eda65a53e5addf86c6bc829129ff51b08bda","versionType":"git"},{"lessThan":"cef2cedb6f7a394b278775b3d6ffb9b20ecd61db","status":"affected","version":"daa6eda65a53e5addf86c6bc829129ff51b08bda","versionType":"git"},{"lessThan":"a34a230ccea1b8b667ae59dca11295a2c8f81738","status":"affected","version":"daa6eda65a53e5addf86c6bc829129ff51b08bda","versionType":"git"},{"lessThan":"1d35a17f1c2ed4154731895694a1a3557f0da766","status":"affected","version":"daa6eda65a53e5addf86c6bc829129ff51b08bda","versionType":"git"},{"lessThan":"27c0f718d3b3c99e6d315308e95d987d0382a8a8","status":"affected","version":"daa6eda65a53e5addf86c6bc829129ff51b08bda","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/scsi/ch.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"2.6.13"},{"lessThan":"2.6.13","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.160","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.114","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.58","versionType":"semver"},{"lessThanOrEqual":"7.2.*","status":"unaffected","version":"7.2.11","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.3","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.160","versionStartIncluding":"2.6.13","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.114","versionStartIncluding":"2.6.13","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.58","versionStartIncluding":"2.6.13","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.2.11","versionStartIncluding":"2.6.13","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3","versionStartIncluding":"2.6.13","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: ch: Do not keep references to data transfer element devices\n\nch_readconfig() looks up the scsi_device of every data transfer element\nwhose SCSI id the changer reports in READ ELEMENT STATUS, and stores it in\nch->dt[]. scsi_device_lookup() takes a reference, and nothing ever drops\nit: ch_destroy() frees the array with kfree(). ch->dt[] is read nowhere\nelse - it only supplies the vendor, model and revision printed in the same\nloop.\n\nOnce such a drive is removed, its scsi_device can never be released. It\nstays on the host's device list at its address, so a new device there is\nrefused by anything that walks the list - target_core_pscsi reports\n\"scsi_device_get() failed for H:C:T:L\" - and the low-level driver's module\ncan no longer be unloaded. Only a reboot recovers.\n\nIt shows with any changer that reports its drives' ids; with the mhvtl\nvirtual library (IBM 3573-TL personality), each create and remove of a\nlibrary with four drives leaves four references behind, counted by the\nmodule's use count in lsmod. With ch not bound the count is unchanged, and\nwith this patch applied it is unchanged too.\n\nDrop the reference as soon as the name has been printed, and remove the now\nunused dt[] array. That also removes the array leaked when ch_probe() fails\nafter ch_readconfig().\n\nThe same leak was reported with an RFC patch in 2022, which was not merged."}],"providerMetadata":{"dateUpdated":"2026-10-23T12:20:55.832Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/ec6ecab1b7577ae555ee6b81480814d123dd9ec0"},{"url":"https://git.kernel.org/stable/c/cef2cedb6f7a394b278775b3d6ffb9b20ecd61db"},{"url":"https://git.kernel.org/stable/c/a34a230ccea1b8b667ae59dca11295a2c8f81738"},{"url":"https://git.kernel.org/stable/c/1d35a17f1c2ed4154731895694a1a3557f0da766"},{"url":"https://git.kernel.org/stable/c/27c0f718d3b3c99e6d315308e95d987d0382a8a8"}],"title":"scsi: ch: Do not keep references to data transfer element devices","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99019","datePublished":"2026-10-23T12:20:55.832Z","dateReserved":"2026-09-25T10:25:14.386Z","dateUpdated":"2026-10-23T12:20:55.832Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-10-23 13:17:24","lastModifiedDate":"2026-10-23 13:17:24","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99019","Ordinal":"1","Title":"scsi: ch: Do not keep references to data transfer element device","CVE":"CVE-2026-99019","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99019","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: ch: Do not keep references to data transfer element devices\n\nch_readconfig() looks up the scsi_device of every data transfer element\nwhose SCSI id the changer reports in READ ELEMENT STATUS, and stores it in\nch->dt[]. scsi_device_lookup() takes a reference, and nothing ever drops\nit: ch_destroy() frees the array with kfree(). ch->dt[] is read nowhere\nelse - it only supplies the vendor, model and revision printed in the same\nloop.\n\nOnce such a drive is removed, its scsi_device can never be released. It\nstays on the host's device list at its address, so a new device there is\nrefused by anything that walks the list - target_core_pscsi reports\n\"scsi_device_get() failed for H:C:T:L\" - and the low-level driver's module\ncan no longer be unloaded. Only a reboot recovers.\n\nIt shows with any changer that reports its drives' ids; with the mhvtl\nvirtual library (IBM 3573-TL personality), each create and remove of a\nlibrary with four drives leaves four references behind, counted by the\nmodule's use count in lsmod. With ch not bound the count is unchanged, and\nwith this patch applied it is unchanged too.\n\nDrop the reference as soon as the name has been printed, and remove the now\nunused dt[] array. That also removes the array leaked when ch_probe() fails\nafter ch_readconfig().\n\nThe same leak was reported with an RFC patch in 2022, which was not merged.","Type":"Description","Title":"scsi: ch: Do not keep references to data transfer element device"}]}}}