CVE-2025-38699
scsi: bfa: Double-free fix
Reported by linux · Published September 4, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| SIMATIC CN 4100 | Siemens | 5.0 |
| Linux | Linux | add4c4850363d7c1b72e8fce9ccb21fdd2cf5dc9, 8456f862cb95bcc3a831e1ba87c0c17068be0f3f, 39cfe2c83146aad956318f866d0ee471b7a61fa5, 2.6.32 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e |
| Linux | Linux | 2.6.32, 0, 5.4.297 |
| Siemens | SIMATIC CN 4100 | 0 |
| Linux | Linux | 5.15.190, 6.6.103, 6.12.43 |
| Linux | Linux Kernel | |
| linux | linux_kernel | 2.6.32, 2.6.32, 2.6.32 |
Timeline
- Sep 4, 2025 CVE Published
- Sep 5, 2025 EPSS Score (30 in total, the first dated here)
- Oct 12, 2025 PoC Published (14 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (173 in total, the first dated here)
- Mar 29, 2026 Security Advisory (186 in total, the first dated here)
- Jun 9, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-38699
vulnetix vdb fixes CVE-2025-38699
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-38699/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart