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

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 14% of CVEs (2026-11-30)
- Published: 2025-09-04T15:32:51.420Z
- Modified: 2026-10-19T21:10:00.160Z
- Weaknesses: CWE-415
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e before 684c92bb08a25ed3c0356bc7eb532ed5b19588dd; from 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e before 9337c2affbaebe00b75fdf84ea0e2fcf93c140af; from 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e before ba024d92564580bb90ec367248ace8efe16ce815; from 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e before 8e03dd9fadf76db5b9799583074a1a2a54f787f1; from 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e before 39cfe2c83146aad956318f866d0ee471b7a61fa5; from 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e before 13f613228cf3c96a038424cd97aa4d6aadc66294; from 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e before 8456f862cb95bcc3a831e1ba87c0c17068be0f3f; from 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e before 50d9bd48321038bd6e15af5a454bbcd180cf6f80; from 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e before add4c4850363d7c1b72e8fce9ccb21fdd2cf5dc9; 2.6.32 (not affected: before 2.6.32; from 5.4.297 up to 5.4.*; from 5.10.241 up to 5.10.*; from 5.15.190 up to 5.15.*; from 6.1.149 up to 6.1.*; from 6.6.103 up to 6.6.*; from 6.12.43 up to 6.12.*; from 6.15.11 up to 6.15.*; from 6.16.2 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 2.6.33 before 5.4.297; from 5.5 before 5.10.241; from 5.11 before 5.15.190; from 5.16 before 6.1.149; from 6.2 before 6.6.103; from 6.7 before 6.12.43; from 6.13 before 6.15.11; from 6.16 before 6.16.2; 2.6.32
- debian debian_linux: 11.0

## References

- <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> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html> (third-party-advisory)
- <https://cert-portal.siemens.com/productcert/html/ssa-032379.html>

## Sources

- CVE List: [CVE-2025-38699](https://www.cve.org/CVERecord?id=CVE-2025-38699), CVE Terms of Use, modified 2026-05-12
- NVD: [CVE-2025-38699](https://nvd.nist.gov/vuln/detail/CVE-2025-38699), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-38699 · Whole record: https://cve.day/CVE-2025-38699.json · Rebuilt by cve.day 2026-11-25T22:59:04.145Z
