CVE-2026-139727 in Linuxinfo

Summary

by MITRE • 11/30/2026

In the Linux kernel, the following vulnerability has been resolved:

scsi: mpi3mr: Fix target device reference leak in device removal handshake

The device removal handshake looks up the target device to update its state but never drops the reference that the lookup takes.

Drop it once the state has been updated.

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Analysis

by VulDB Data Team • 11/30/2026

The Linux kernel's SCSI subsystem, specifically within the mpi3mr driver which manages LSI Logic MegaRAID SAS controllers, contains a resource management flaw related to object lifetime tracking during device removal operations. This vulnerability is classified as CWE-401, representing a missing release of memory after it has been successfully used. The core issue lies in the implementation of the target device reference counting mechanism within the driver's state machine logic. When the kernel initiates a handshake sequence for removing a SCSI target device, the code performs a lookup operation to retrieve the corresponding data structure that represents this hardware entity. This lookup function inherently increments an internal reference counter associated with the object to ensure it remains valid and accessible while its properties are being inspected or modified by concurrent threads of execution.

The technical flaw occurs because the subsequent logic updates the device's state, such as marking it for removal or transitioning it to a disconnected status, but fails to invoke the corresponding decrement operation on that reference counter. In Linux kernel programming, every increment via functions like get_device or similar atomic operations must be balanced by a matching put_device call to prevent resource exhaustion. By omitting this release step during the device removal handshake, the driver leaves dangling references in memory. Over time, as devices are added and removed from the system, these unreleased references accumulate, leading to a gradual but steady increase in kernel memory consumption without corresponding deallocation.

The operational impact of this reference leak is primarily characterized by long-term resource exhaustion rather than immediate catastrophic failure or privilege escalation. As the number of device removal events increases, typically during routine maintenance cycles involving hot-swapping drives or reconfiguring RAID arrays, the kernel's slab allocator becomes burdened with holding onto these orphaned structures. This can eventually lead to memory pressure within the kernel space, potentially causing system instability, degraded performance due to increased garbage collection overhead in the page cache, or even a denial of service condition if sufficient physical memory is consumed and swap resources are exhausted. While not directly exploitable for remote code execution, this flaw degrades the reliability and availability of storage subsystems managed by the mpi3mr driver.

Mitigation strategies focus on correcting the reference counting logic within the source code to ensure strict adherence to kernel object lifecycle rules. The primary fix involves inserting a call to release the device reference immediately after the state update is completed, ensuring that the counter is decremented and the memory can be reclaimed when no other active references exist. For system administrators unable to apply an immediate patch, monitoring kernel logs for signs of memory pressure or slab exhaustion related to SCSI structures may provide early warning indicators. Ultimately, applying vendor-supplied updates that include this specific code correction restores proper resource management hygiene and prevents the gradual degradation of system stability associated with CWE-401 violations in device drivers.

Responsible

Linux

Reservation

11/30/2026

Disclosure

11/30/2026

Moderation

accepted

CPE

ready

EPSS

0.00304

KEV

no

Activities

very low

Sources

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!