CVE-2025-38699: scsi: bfa: Double-free fix
In the Linux kernel, the following vulnerability has been resolved:
scsi: bfa: Double-free fix
When the bfadimprobe() function fails during initialization, the memory pointed to by bfad->im is freed without setting bfad->im to NULL.
Subsequently, during driver uninstallation, when the state machine enters the bfadsmstopping state and calls the bfadimprobeundo() function, it attempts to free the memory pointed to by bfad->im again, thereby triggering a double-free vulnerability.
Set bfad->im to NULL if probing fails.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.113-1Fixed in 7.2.12-1Fixed in 7.2.13-1 - Configuration
Set bfad->im to NULL when bfad_im_probe() fails during initialization, preventing bfad_im_probe_undo() from freeing the memory a second time during driver uninstallation.
Linux kernel SCSI bfa driver bfad->im = NULL
Event History
Frequently Asked Questions
What is the severity of CVE-2025-38699?
The severity of CVE-2025-38699 is categorized as medium due to its potential for causing a denial of service during driver uninstallation.
How do I fix CVE-2025-38699?
To fix CVE-2025-38699, update to the latest version of the Linux kernel where the double-free vulnerability has been resolved.
What components are affected by CVE-2025-38699?
CVE-2025-38699 affects the SCSI subsystem in the Linux kernel, specifically related to the bfa driver.
Can CVE-2025-38699 be exploited remotely?
CVE-2025-38699 is generally not exploitable remotely as it typically requires local access to the system.
When was CVE-2025-38699 published?
CVE-2025-38699 was published in 2025, detailing a vulnerability in the Linux kernel's SCSI driver framework.