CVE-2025-38699 scsi: bfa: Double-free fix
A double-free vulnerability in the Linux kernel's bfa SCSI driver allows attackers to cause a denial of service or potentially execute code during driver initialization failure.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-38699?
CVE-2025-38699 is a high-severity use after free vulnerability in Debian Debian Linux, published on 4 Sep 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
scsi: bfa: Double-free fix
When the bfad_im_probe() 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 bfad_sm_stopping state and calls the bfad_im_probe_undo() 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.
Weakness: CWE-415
Which versions are affected by CVE-2025-38699?
It affects 2 products.
Products include Debian Debian Linux, Linux kernel.
How do I fix CVE-2025-38699?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2025-38699 being exploited?
There is no known exploitation of CVE-2025-38699 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as AZL-66848, AZL-73644, BELL-CVE-2025-38699, DEBIAN-CVE-2025-38699, GHSA-4wc7-fq9j-gx9p, ROOT-OS-DEBIAN-11-CVE-2025-38699 and 4 more.