scsi: bfa: Double-free fix
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 2 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-415 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 2.6.32 and later | 5.4.297, 5.10.241, 5.15.190, 6.1.149, 6.6.103, 6.12.43, 6.15.11, 6.16.2, 6.17 | Patch available | CNA |
- Linux VendorLinux Affected 2.6.32 and later Fixed in 5.4.297, 5.10.241, 5.15.190, 6.1.149, 6.6.103, 6.12.43, 6.15.11, 6.16.2, 6.17 Patch available CNA
CPE configurations NVD · 8
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 2.6.33 to before 5.4.297; 5.5 to before 5.10.241; 5.11 to before 5.15.190; 5.16 to before 6.1.149; 6.2 to before 6.6.103; 6.7 to before 6.12.43; 6.13 to before 6.15.11; 6.16 to before 6.16.2 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:2.6.32:-:*:*:*:*:*:* | 2.6.32 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:2.6.32:rc4:*:*:*:*:*:* | 2.6.32 rc4 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:2.6.32:rc5:*:*:*:*:*:* | 2.6.32 rc5 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:2.6.32:rc6:*:*:*:*:*:* | 2.6.32 rc6 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:2.6.32:rc7:*:*:*:*:*:* | 2.6.32 rc7 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:2.6.32:rc8:*:*:*:*:*:* | 2.6.32 rc8 | Vulnerable | Linux |
| cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* | 11.0 | Vulnerable | Debian |
- cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* Versions 2.6.33 to before 5.4.297; 5.5 to before 5.10.241; 5.11 to before 5.15.190; 5.16 to before 6.1.149; 6.2 to before 6.6.103; 6.7 to before 6.12.43; 6.13 to before 6.15.11; 6.16 to before 6.16.2 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:2.6.32:-:*:*:*:*:*:* Versions 2.6.32 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:2.6.32:rc4:*:*:*:*:*:* Versions 2.6.32 rc4 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:2.6.32:rc5:*:*:*:*:*:* Versions 2.6.32 rc5 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:2.6.32:rc6:*:*:*:*:*:* Versions 2.6.32 rc6 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:2.6.32:rc7:*:*:*:*:*:* Versions 2.6.32 rc7 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:2.6.32:rc8:*:*:*:*:*:* Versions 2.6.32 rc8 Vulnerable ·Linux
- cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* Versions 11.0 Vulnerable ·Debian
Remediation
- Fix · CNA Linux (Linux) Fixed in 5.4.297, 5.10.241, 5.15.190, 6.1.149, 6.6.103, 6.12.43, 6.15.11, 6.16.2, 6.17
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
Not affected: 3 products
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
Timeline
- 2026-10-02 Threatist record created from CVE-2025-38699
- 2026-10-03 Alias added: GHSA-4wc7-fq9j-gx9p
References
Patch 9
- https://git.kernel.org/stable/c/684c92bb08a25ed3c0356bc7eb532ed5b19588dd
- https://git.kernel.org/stable/c/9337c2affbaebe00b75fdf84ea0e2fcf93c140af
- https://git.kernel.org/stable/c/ba024d92564580bb90ec367248ace8efe16ce815
- https://git.kernel.org/stable/c/8e03dd9fadf76db5b9799583074a1a2a54f787f1
- https://git.kernel.org/stable/c/39cfe2c83146aad956318f866d0ee471b7a61fa5
- https://git.kernel.org/stable/c/13f613228cf3c96a038424cd97aa4d6aadc66294
- https://git.kernel.org/stable/c/8456f862cb95bcc3a831e1ba87c0c17068be0f3f
- https://git.kernel.org/stable/c/50d9bd48321038bd6e15af5a454bbcd180cf6f80
- https://git.kernel.org/stable/c/add4c4850363d7c1b72e8fce9ccb21fdd2cf5dc9
More Linux Kernel vulnerabilities
- TI-2025-26358 tls: fix handling of zero-length records on the rx_list KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 netfilter: bridge: make ebt_snat ARP rewrite writable KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the… KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Integer overflow in kernel KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9… KEVCVSS 3.1HIGH 8.4
- TI-2021-05514 Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACE KEVCVSS 3.1HIGH 8.3
Sources
- CVE-2025-38699 · CVE Program
- CVE-2025-38699 · NVD
- FIRST EPSS
- GHSA-4wc7-fq9j-gx9p · GitHub Advisory Database · CC BY 4.0
- CVE-2025-38699 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences