# CVE-2025-38699: scsi: bfa: Double-free fix

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **CWE:** CWE-415
- **Published:** 2025-09-04T15:32:51.420Z
- **Modified:** 2026-10-19T21:10:00.160Z

## 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

## 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

- 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)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- patch: <https://git.kernel.org/stable/c/684c92bb08a25ed3c0356bc7eb532ed5b19588dd>
- patch: <https://git.kernel.org/stable/c/9337c2affbaebe00b75fdf84ea0e2fcf93c140af>
- patch: <https://git.kernel.org/stable/c/ba024d92564580bb90ec367248ace8efe16ce815>
- patch: <https://git.kernel.org/stable/c/8e03dd9fadf76db5b9799583074a1a2a54f787f1>
- patch: <https://git.kernel.org/stable/c/39cfe2c83146aad956318f866d0ee471b7a61fa5>
- patch: <https://git.kernel.org/stable/c/13f613228cf3c96a038424cd97aa4d6aadc66294>
- patch: <https://git.kernel.org/stable/c/8456f862cb95bcc3a831e1ba87c0c17068be0f3f>
- patch: <https://git.kernel.org/stable/c/50d9bd48321038bd6e15af5a454bbcd180cf6f80>
- patch: <https://git.kernel.org/stable/c/add4c4850363d7c1b72e8fce9ccb21fdd2cf5dc9>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-032379.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38699>

HTML: <https://flawdb.com/CVE-2025-38699> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38699>
