Junglewise Threat Intelligence

CVE-2026-45997: Linux Kernel resource leak in SCSI sd_probe

CVE-2026-45997 · Severity: info · Published 2026-05-27

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A resource management issue was identified in the Linux kernel's SCSI disk driver. When the system fails to add a new disk device, it may fail to properly release certain memory structures, leading to a memory leak. While this primarily affects system stability during hardware initialization or driver loading, it could theoretically be used to exhaust system resources over time.

Technical details

A reference counting bug exists in the sd_probe() function of the Linux kernel's SCSI subsystem (drivers/scsi/sd.c). When device_add(&sdkp->disk_dev) fails, the error path calls put_device(), which triggers scsi_disk_release() and frees the scsi_disk structure; however, it fails to call put_disk(gd), leaving the associated gendisk structure referenced and leaked. This is a local resource leak vulnerability. The fix introduces a missing put_disk(gd) call to ensure proper cleanup of the generic disk object when device registration fails.

Affected products

  • Linux Linux Kernel All versions prior to the fix in May 2026

Timeline

  • 2026-03-30: other: Patch submitted by Yang Xiuwei
  • 2026-05-27: advisory: CVE-2026-45997 published

References