CVE-2026-139721: scsi: mpi3mr: zero out diagnostic buffer status memory
In the Linux kernel, the following vulnerability has been resolved:
scsi: mpi3mr: zero out diagnostic buffer status memory
Memory allocated for the BSG diagnostic buffer status is not zeroed before it is copied back to user space. Several fields in this structure are reserved and never written by the driver. Use kzalloc() instead of kmalloc() to zero out the allocated memory.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
In the scsi: mpi3mr driver, use kzalloc() instead of kmalloc() to zero the diagnostic buffer status memory before it is copied to user space.
Event History
Frequently Asked Questions
Who is exposed to this issue?
Systems running the Linux kernel with the mpi3mr SCSI driver are exposed when the BSG diagnostic buffer status path is used. The issue affects data copied from the driver back to user space.
What could an attacker obtain through exploitation?
An attacker able to invoke the affected BSG diagnostic buffer status operation may receive uninitialized kernel memory through reserved structure fields that the driver does not write before copying the structure to user space.
What is the remediation?
Apply a kernel update containing the fix that replaces kmalloc() with kzalloc() for the BSG diagnostic buffer status allocation, ensuring the returned memory is zeroed.