Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1AF9A315D2A for ; Wed, 24 Dec 2025 10:36:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766572582; cv=none; b=PgSSjIY3DZUaYvFpryV9zgAmwxn/Oiw7dAbhFpygpEQ2F9E5LsFIgnTAjmN4tTOLbaB5JBs0v9M1gBkSG7U7rctNOABWPzaA1JWEeRN/Hc1kwrRQbssro0NQLXF9cjY7GzD3q6+R4GUvBcMyXpaatqAfFvwUwTzIHgQWZ/FD+2w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766572582; c=relaxed/simple; bh=zNNjxZWmZ33VMzImh9o+q6jq/4DHJHA/p86Esi6WEBE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=enS3Q6hfmlejzn+ilFiR1aAPvSCrBzri1/K7g0Uyl/ZylnWdjjcC54nbfspI9PNNz85A4q04aA+3uD9sJYYmWsk7Izvvhii6VXI1ZRcc6o0xu0Amtow2OcJCTv3rxH1PMaay4ZzcntM62uaZJHbpw4Y3iOQFVE11IJa9hx6Qf/A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1ICUvHDd; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="1ICUvHDd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 95F29C4CEFB; Wed, 24 Dec 2025 10:36:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766572582; bh=zNNjxZWmZ33VMzImh9o+q6jq/4DHJHA/p86Esi6WEBE=; h=From:To:Cc:Subject:Date:Reply-To:From; b=1ICUvHDdwBTLnYXA6/qY3vpGgeHkrKwrrk3nghg47eu5XhSNCJpdkVW1O/FWdEfs2 zmpwP2KKimXS6y7Jz7vWUDjTmpQZYX7C/gY+0vZgRLQBuhetFm27L6GkU3QJ66WC/B NWlUkaCCBfesTa4WgXU74UiTEeK8LFX+h8YwRck0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68348: block: fix memory leak in __blkdev_issue_zero_pages Date: Wed, 24 Dec 2025 11:34:53 +0100 Message-ID: <2025122453-CVE-2025-68348-2088@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2683; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6xdlazX9D1Aqw3Ne+YJkePuERDg/55zSqc/gVhyk00M=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneB8+unvH1wZdXShFrdFcdNJy5992RN5mBLLdlljDO2 nbXnmvyp45YFgZBJgZZMUWWL9t4ju6vOKToZWh7GmYOKxPIEAYuTgGYyCVdhgVLz6mkHhG0rv6+ 2fzEqqyoOYfyAvwY5hlWz3K/8ztp41zlZcl8JlMazjwXPQYA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: block: fix memory leak in __blkdev_issue_zero_pages Move the fatal signal check before bio_alloc() to prevent a memory leak when BLKDEV_ZERO_KILLABLE is set and a fatal signal is pending. Previously, the bio was allocated before checking for a fatal signal. If a signal was pending, the code would break out of the loop without freeing or chaining the just-allocated bio, causing a memory leak. This matches the pattern already used in __blkdev_issue_write_zeroes() where the signal check precedes the allocation. The Linux kernel CVE team has assigned CVE-2025-68348 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit bf86bcdb40123ee99669ee91b67e023669433a1a and fixed in 6.12.63 with commit 453e4b0c84d0db1454ff0adf655d91179e6fca3a Issue introduced in 6.11 with commit bf86bcdb40123ee99669ee91b67e023669433a1a and fixed in 6.17.13 with commit 7957635c679e8a01147163a3a4a1f16e1210fa03 Issue introduced in 6.11 with commit bf86bcdb40123ee99669ee91b67e023669433a1a and fixed in 6.18.2 with commit 7193407bc4457212fa38ec3aff9c640e63a8dbef Issue introduced in 6.11 with commit bf86bcdb40123ee99669ee91b67e023669433a1a and fixed in 6.19-rc1 with commit f7e3f852a42d7cd8f1af2c330d9d153e30c8adcf 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-68348 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-lib.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/453e4b0c84d0db1454ff0adf655d91179e6fca3a https://git.kernel.org/stable/c/7957635c679e8a01147163a3a4a1f16e1210fa03 https://git.kernel.org/stable/c/7193407bc4457212fa38ec3aff9c640e63a8dbef https://git.kernel.org/stable/c/f7e3f852a42d7cd8f1af2c330d9d153e30c8adcf