lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025090452-CVE-2025-38699-9ca5@gregkh>
Date: Thu,  4 Sep 2025 17:33:04 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2025-38699: scsi: bfa: Double-free fix

From: Greg Kroah-Hartman <gregkh@...nel.org>

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.

The Linux kernel CVE team has assigned CVE-2025-38699 to this issue.


Affected and fixed versions
===========================

	Fixed in 5.4.297 with commit 684c92bb08a25ed3c0356bc7eb532ed5b19588dd
	Fixed in 5.10.241 with commit 9337c2affbaebe00b75fdf84ea0e2fcf93c140af
	Fixed in 5.15.190 with commit ba024d92564580bb90ec367248ace8efe16ce815
	Fixed in 6.1.149 with commit 8e03dd9fadf76db5b9799583074a1a2a54f787f1
	Fixed in 6.6.103 with commit 39cfe2c83146aad956318f866d0ee471b7a61fa5
	Fixed in 6.12.43 with commit 13f613228cf3c96a038424cd97aa4d6aadc66294
	Fixed in 6.15.11 with commit 8456f862cb95bcc3a831e1ba87c0c17068be0f3f
	Fixed in 6.16.2 with commit 50d9bd48321038bd6e15af5a454bbcd180cf6f80
	Fixed in 6.17-rc1 with commit add4c4850363d7c1b72e8fce9ccb21fdd2cf5dc9

Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to
older supported kernel versions.  The official CVE entry at
	https://cve.org/CVERecord/?id=CVE-2025-38699
will be updated if fixes are backported, please check that for the most
up to date information about this issue.


Affected files
==============

The file(s) affected by this issue are:
	drivers/scsi/bfa/bfad_im.c


Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes.  Individual
changes are never tested alone, but rather are part of a larger kernel
release.  Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all.  If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
	https://git.kernel.org/stable/c/684c92bb08a25ed3c0356bc7eb532ed5b19588dd
	https://git.kernel.org/stable/c/9337c2affbaebe00b75fdf84ea0e2fcf93c140af
	https://git.kernel.org/stable/c/ba024d92564580bb90ec367248ace8efe16ce815
	https://git.kernel.org/stable/c/8e03dd9fadf76db5b9799583074a1a2a54f787f1
	https://git.kernel.org/stable/c/39cfe2c83146aad956318f866d0ee471b7a61fa5
	https://git.kernel.org/stable/c/13f613228cf3c96a038424cd97aa4d6aadc66294
	https://git.kernel.org/stable/c/8456f862cb95bcc3a831e1ba87c0c17068be0f3f
	https://git.kernel.org/stable/c/50d9bd48321038bd6e15af5a454bbcd180cf6f80
	https://git.kernel.org/stable/c/add4c4850363d7c1b72e8fce9ccb21fdd2cf5dc9

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ