CVE-2025-38699
scsi: bfa: Double-free fix
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < 684c92bb08a25ed3c0356bc7eb532ed5b19588dd; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < 9337c2affbaebe00b75fdf84ea0e2fcf93c140af; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < ba024d92564580bb90ec367248ace8efe16ce815; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < 8e03dd9fadf76db5b9799583074a1a2a54f787f1; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < 39cfe2c83146aad956318f866d0ee471b7a61fa5; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < 13f613228cf3c96a038424cd97aa4d6aadc66294; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < 8456f862cb95bcc3a831e1ba87c0c17068be0f3f; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < 50d9bd48321038bd6e15af5a454bbcd180cf6f80; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < add4c4850363d7c1b72e8fce9ccb21fdd2cf5dc9
- Anyone running Linux 2.6.32
Vulnerability facts
- Affected
- Linux >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < 684c92bb08a25ed3c0356bc7eb532ed5b19588dd; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < 9337c2affbaebe00b75fdf84ea0e2fcf93c140af; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < ba024d92564580bb90ec367248ace8efe16ce815; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < 8e03dd9fadf76db5b9799583074a1a2a54f787f1; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < 39cfe2c83146aad956318f866d0ee471b7a61fa5; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < 13f613228cf3c96a038424cd97aa4d6aadc66294; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < 8456f862cb95bcc3a831e1ba87c0c17068be0f3f; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < 50d9bd48321038bd6e15af5a454bbcd180cf6f80; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < add4c4850363d7c1b72e8fce9ccb21fdd2cf5dc9; Linux 2.6.32
- Fixed in
- Linux 684c92bb08a25ed3c0356bc7eb532ed5b19588dd, Linux 9337c2affbaebe00b75fdf84ea0e2fcf93c140af, Linux 8e03dd9fadf76db5b9799583074a1a2a54f787f1, Linux 39cfe2c83146aad956318f866d0ee471b7a61fa5, Linux 13f613228cf3c96a038424cd97aa4d6aadc66294, Linux 8456f862cb95bcc3a831e1ba87c0c17068be0f3f, Linux 50d9bd48321038bd6e15af5a454bbcd180cf6f80
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.29% chance of exploitation in 30 days (percentile 14, 2026-11-26)
- CWE
- CWE-415
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < 684c92bb08a25ed3c0356bc7eb532ed5b19588dd; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < 9337c2affbaebe00b75fdf84ea0e2fcf93c140af; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < ba024d92564580bb90ec367248ace8efe16ce815; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < 8e03dd9fadf76db5b9799583074a1a2a54f787f1; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < 39cfe2c83146aad956318f866d0ee471b7a61fa5; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < 13f613228cf3c96a038424cd97aa4d6aadc66294; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < 8456f862cb95bcc3a831e1ba87c0c17068be0f3f; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < 50d9bd48321038bd6e15af5a454bbcd180cf6f80; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < add4c4850363d7c1b72e8fce9ccb21fdd2cf5dc9 | — | cvelist |
| Linux | 2.6.32 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-38699. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-38699.md Affected: Linux >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < 684c92bb08a25ed3c0356bc7eb532ed5b19588dd; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < 9337c2affbaebe00b75fdf84ea0e2fcf93c140af; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < ba024d92564580bb90ec367248ace8efe16ce815; >= 7725ccfda59715ecf8f99e3… Fixed in: Linux 684c92bb08a25ed3c0356bc7eb532ed5b19588dd, Linux 9337c2affbaebe00b75fdf84ea0e2fcf93c140af, Linux 8e03dd9fadf76db5b9799583074a1a2a54f787f1, Linux 39cfe2c83146aad956318f866d0ee471b7a61fa5, Linux 13f613228cf3c96a038424cd97aa4d6aadc66294, Linux 8456f862cb95bcc3a831e1ba87c0c17068be0f3f, Linux 50d9b… Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- 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
FAQ
Is CVE-2025-38699 being exploited?
There is no confirmed exploitation: CVE-2025-38699 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-38699?
High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-38699?
Linux >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < 684c92bb08a25ed3c0356bc7eb532ed5b19588dd; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < 9337c2affbaebe00b75fdf84ea0e2fcf93c140af; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < ba024d92564580bb90ec367248ace8efe16ce815; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < 8e03dd9fadf76db5b9799583074a1a2a54f787f1; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < 39cfe2c83146aad956318f866d0ee471b7a61fa5; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < 13f613228cf3c96a038424cd97aa4d6aadc66294; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < 8456f862cb95bcc3a831e1ba87c0c17068be0f3f; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < 50d9bd48321038bd6e15af5a454bbcd180cf6f80; >= 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e, < add4c4850363d7c1b72e8fce9ccb21fdd2cf5dc9; Linux 2.6.32.
Is there a fix for CVE-2025-38699?
Yes. Fixed in Linux 684c92bb08a25ed3c0356bc7eb532ed5b19588dd, Linux 9337c2affbaebe00b75fdf84ea0e2fcf93c140af, Linux 8e03dd9fadf76db5b9799583074a1a2a54f787f1, Linux 39cfe2c83146aad956318f866d0ee471b7a61fa5, Linux 13f613228cf3c96a038424cd97aa4d6aadc66294, Linux 8456f862cb95bcc3a831e1ba87c0c17068be0f3f, Linux 50d9bd48321038bd6e15af5a454bbcd180cf6f80. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2025-38699?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.