scsi: bfa: Double-free fix

Summary

CVECVE-2025-38699
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2025-09-04 16:15:38 UTC
Updated2026-05-12 13:16:59 UTC
DescriptionIn 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
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

TypeVendorProductVersionUpdateEditionLanguage
Operating System Linux Linux Kernel All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
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

ReferenceSourceLinkTags
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

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report