scsi: bfa: Double-free fix
Summary
| CVE | CVE-2025-38699 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2025-09-04 16:15:38 UTC |
| Updated | 2026-05-12 13:16:59 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 7.8 HIGH from [email protected]
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Problem Types: CWE-415
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Operating System | Linux | Linux Kernel | All | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Linux | Linux | affected 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e 684c92bb08a25ed3c0356bc7eb532ed5b19588dd git | Not specified |
| CNA | Linux | Linux | affected 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e 9337c2affbaebe00b75fdf84ea0e2fcf93c140af git | Not specified |
| CNA | Linux | Linux | affected 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e ba024d92564580bb90ec367248ace8efe16ce815 git | Not specified |
| CNA | Linux | Linux | affected 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e 8e03dd9fadf76db5b9799583074a1a2a54f787f1 git | Not specified |
| CNA | Linux | Linux | affected 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e 39cfe2c83146aad956318f866d0ee471b7a61fa5 git | Not specified |
| CNA | Linux | Linux | affected 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e 13f613228cf3c96a038424cd97aa4d6aadc66294 git | Not specified |
| CNA | Linux | Linux | affected 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e 8456f862cb95bcc3a831e1ba87c0c17068be0f3f git | Not specified |
| CNA | Linux | Linux | affected 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e 50d9bd48321038bd6e15af5a454bbcd180cf6f80 git | Not specified |
| CNA | Linux | Linux | affected 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e add4c4850363d7c1b72e8fce9ccb21fdd2cf5dc9 git | Not specified |
| CNA | Linux | Linux | affected 2.6.32 | Not specified |
| CNA | Linux | Linux | unaffected 2.6.32 semver | Not specified |
| CNA | Linux | Linux | unaffected 5.4.297 5.4.* semver | Not specified |
| CNA | Linux | Linux | unaffected 5.10.241 5.10.* semver | Not specified |
| CNA | Linux | Linux | unaffected 5.15.190 5.15.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.1.149 6.1.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.6.103 6.6.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.12.43 6.12.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.15.11 6.15.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.16.2 6.16.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.17 * original_commit_for_fix | Not specified |
| ADP | Siemens | SIMATIC CN 4100 | affected V5.0 custom | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| lists.debian.org/debian-lts-announce/2025/10/msg00008.html | af854a3a-2127-422b-91ae-364da2661108 | lists.debian.org | Third Party Advisory |
| git.kernel.org/stable/c/39cfe2c83146aad956318f866d0ee471b7a61fa5 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/ba024d92564580bb90ec367248ace8efe16ce815 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/684c92bb08a25ed3c0356bc7eb532ed5b19588dd | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/9337c2affbaebe00b75fdf84ea0e2fcf93c140af | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| cert-portal.siemens.com/productcert/html/ssa-032379.html | 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e | cert-portal.siemens.com | |
| git.kernel.org/stable/c/13f613228cf3c96a038424cd97aa4d6aadc66294 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/8e03dd9fadf76db5b9799583074a1a2a54f787f1 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/50d9bd48321038bd6e15af5a454bbcd180cf6f80 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/add4c4850363d7c1b72e8fce9ccb21fdd2cf5dc9 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/8456f862cb95bcc3a831e1ba87c0c17068be0f3f | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| lists.debian.org/debian-lts-announce/2025/10/msg00007.html | af854a3a-2127-422b-91ae-364da2661108 | lists.debian.org | Third Party Advisory |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.