CVE-2025-38699

scsi: bfa: Double-free fix

HIGH
7.8
CVSS Score
Published: September 4, 2025 at 03:32 PM UTC
Updated: October 19, 2026 at 09:10 PM UTC
3 products affected across 3 vendorsLinux KernelDebian LinuxSIMATIC CN 4100

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.6.33 ≤ v < 5.4.2975.11 ≤ v < 5.15.1905.16 ≤ v < 6.1.1495.5 ≤ v < 5.10.2416.13 ≤ v < 6.15.116.16 ≤ v < 6.16.26.2 ≤ v < 6.6.1036.7 ≤ v < 6.12.432.6.322.6.32 rc42.6.32 rc52.6.32 rc62.6.32 rc72.6.32 rc87725ccfda59715ecf8f99e3b520a0b84cc2ea79e
Vendor states this is fixed in 13f613228cf3c96a038424cd97aa4d6aadc66294 (fixed)
Vendor states this is fixed in 39cfe2c83146aad956318f866d0ee471b7a61fa5 (fixed)
Vendor states this is fixed in 50d9bd48321038bd6e15af5a454bbcd180cf6f80 (fixed)
Vendor states this is fixed in 684c92bb08a25ed3c0356bc7eb532ed5b19588dd (fixed)
Vendor states this is fixed in 8456f862cb95bcc3a831e1ba87c0c17068be0f3f (fixed)
Vendor states this is fixed in 8e03dd9fadf76db5b9799583074a1a2a54f787f1 (fixed)
Vendor states this is fixed in 9337c2affbaebe00b75fdf84ea0e2fcf93c140af (fixed)
Vendor states this is fixed in add4c4850363d7c1b72e8fce9ccb21fdd2cf5dc9 (fixed)
Vendor states this is fixed in ba024d92564580bb90ec367248ace8efe16ce815 (fixed)
Vendor states this is fixed in 2.6.32 (unaffected)
Vendor states this is fixed in 5.10.241 (unaffected)
Vendor states this is fixed in 5.15.190 (unaffected)
Vendor states this is fixed in 5.4.297 (unaffected)
Vendor states this is fixed in 6.1.149 (unaffected)
Vendor states this is fixed in 6.12.43 (unaffected)
Vendor states this is fixed in 6.15.11 (unaffected)
Vendor states this is fixed in 6.16.2 (unaffected)
Vendor states this is fixed in 6.17 (unaffected)
Vendor states this is fixed in 6.6.103 (unaffected)
v < V5.0
Affected range stops below V5.0, so it looks safe — our inference, not a vendor statement

References (12)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/13f613228cf3c96a038424cd97aa4d6aadc66294
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/39cfe2c83146aad956318f866d0ee471b7a61fa5
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/50d9bd48321038bd6e15af5a454bbcd180cf6f80
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/684c92bb08a25ed3c0356bc7eb532ed5b19588dd
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8456f862cb95bcc3a831e1ba87c0c17068be0f3f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8e03dd9fadf76db5b9799583074a1a2a54f787f1
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9337c2affbaebe00b75fdf84ea0e2fcf93c140af
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/add4c4850363d7c1b72e8fce9ccb21fdd2cf5dc9

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-415

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card