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 for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025052040-CVE-2025-37980-561f@gregkh>
Date: Tue, 20 May 2025 18:56:44 +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-37980: block: fix resource leak in blk_register_queue() error path

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

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

block: fix resource leak in blk_register_queue() error path

When registering a queue fails after blk_mq_sysfs_register() is
successful but the function later encounters an error, we need
to clean up the blk_mq_sysfs resources.

Add the missing blk_mq_sysfs_unregister() call in the error path
to properly clean up these resources and prevent a memory leak.

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


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

	Issue introduced in 3.13 with commit 320ae51feed5c2f13664aa05a76bec198967e04d and fixed in 6.6.88 with commit 549cbbd14bbec12469ceb279b79c763c8a24224e
	Issue introduced in 3.13 with commit 320ae51feed5c2f13664aa05a76bec198967e04d and fixed in 6.12.25 with commit 41e43134ddda35949974be40520460a12dda3502
	Issue introduced in 3.13 with commit 320ae51feed5c2f13664aa05a76bec198967e04d and fixed in 6.14.4 with commit 55a7bb2708f7c7c5b366d4e40916113168a3824c
	Issue introduced in 3.13 with commit 320ae51feed5c2f13664aa05a76bec198967e04d and fixed in 6.15-rc3 with commit 40f2eb9b531475dd01b683fdaf61ca3cfd03a51e

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-37980
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:
	block/blk-sysfs.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/549cbbd14bbec12469ceb279b79c763c8a24224e
	https://git.kernel.org/stable/c/41e43134ddda35949974be40520460a12dda3502
	https://git.kernel.org/stable/c/55a7bb2708f7c7c5b366d4e40916113168a3824c
	https://git.kernel.org/stable/c/40f2eb9b531475dd01b683fdaf61ca3cfd03a51e

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ