High severity · published Sep 4, 2025
CVE-2025-38699
scsi: bfa: Double-free fix
7.8
CVSS
0.2%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 8% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
KE
Kernel · Linux
2.6.33 before 5.4.297; 5.5 before 5.10.241; 5.11 before 5.15.190; 5.16 before 6.1.149; 6.2 before 6.6.103; 6.7 before 6.12.43; +8 more · source: NVD
LI
Linux · Linux
7725ccfda59715ecf8f99e3b520a0b84cc2ea79e before 684c92bb08a25ed3c0356bc7eb532ed5b19588dd; 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e before 9337c2affbaebe00b75fdf84ea0e2fcf93c140af; 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e before ba024d92564580bb90ec367248ace8efe16ce815; 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e before 8e03dd9fadf76db5b9799583074a1a2a54f787f1; 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e before 39cfe2c83146aad956318f866d0ee471b7a61fa5; 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e before 13f613228cf3c96a038424cd97aa4d6aadc66294; +4 more · source: vendor
DL
Debian Linux · Debian
11.0 · source: NVD
SC
SIMATIC CN 4100 · Siemens
before V5.0 · source: CISA
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-38699
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-38699
Patch
https://git.kernel.org/stable/c/13f613228cf3c96a038424cd97aa4d6aadc66294
Patch
https://git.kernel.org/stable/c/39cfe2c83146aad956318f866d0ee471b7a61fa5
Patch
https://git.kernel.org/stable/c/50d9bd48321038bd6e15af5a454bbcd180cf6f80
Patch
https://git.kernel.org/stable/c/684c92bb08a25ed3c0356bc7eb532ed5b19588dd
Patch
https://git.kernel.org/stable/c/8456f862cb95bcc3a831e1ba87c0c17068be0f3f
Patch
https://git.kernel.org/stable/c/8e03dd9fadf76db5b9799583074a1a2a54f787f1
More from Kernel
9.8
CVE-2025-39682
tls: fix handling of zero-length records on the rx_list
8.8
CVE-2026-53266
netfilter: bridge: make ebt_snat ARP rewrite writable
8.8
CVE-2013-6282
Linux Kernel Improper Input Validation Vulnerability
8.4
CVE-2022-0185
Linux Kernel Heap-Based Buffer Overflow Vulnerability
8.4
CVE-2013-2094
Linux Kernel Privilege Escalation Vulnerability
