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 CBA0124677A for ; Fri, 25 Jul 2025 13:12:15 +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=1753449135; cv=none; b=JenOk+x1PFIO2wlwhuCE4nZx1dZwtz+OdxyJ++6yh7nkce/vjM0D280FXfu0fc43cUjbb/FwV/1IqGT1z43ndnESUpIoqAOISHdUr1qQt7GB0s1oV08t8266mSJNWqVUwsIodjqLzMoJGWDO/aoqu/WQpf0wZ8OAz4DunF0Com8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753449135; c=relaxed/simple; bh=A7x321VIS0u0bQZD8cIKQrZRoz9bAHM+vfVcl6Gc4pg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MSGcYMKypsbZdT8J0xoCtVPT0kWXZ94cZ4eiEI0+C/4KnhE/Il8nP7O7X0AG8kfB5gCGGyde3AlyNUNNIZSgQAm0imm3vS1EU11845Cg4oR9Hokaygl0MsKKHo2B3xwgMgdofZOWJmO3eBiXq8nEaRYIiaxvJlvDDbAf4x0L0ec= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MbGKBqks; 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="MbGKBqks" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D995EC4CEE7; Fri, 25 Jul 2025 13:12:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1753449135; bh=A7x321VIS0u0bQZD8cIKQrZRoz9bAHM+vfVcl6Gc4pg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=MbGKBqksTTgCYkT2anrx+1gNDB/EcWg5E8NLh+gXjWPtx72gaxtFPeDQjRD3kpgrZ SGgQu7bn+e2BN7vFdEiTLFjYBZ38d06Oa839Blw6Oha/u8AOt5MQOUifoAEAuR5ROJ Jrsc0g8wX3nffo0aExRnlRISfLMjL4owqFeSQaLE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38405: nvmet: fix memory leak of bio integrity Date: Fri, 25 Jul 2025 15:12:11 +0200 Message-ID: <2025072511-CVE-2025-38405-014e@gregkh> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2487; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=MFI4CLMW4izAWu4YFu3ddOb6+OgGpaZTTZdnnqK1XNM=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnNTav/zmV7E5XqziDpO9cp7ZHFEhG/u193er0ov//z2 6up/odiO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiS6IYFuxf3q1+ol0xUOUG jwgvFzObz0uFGoYFh7buNfvdv7RZZ+4r1bX+cS8VUwy2AgA= 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: nvmet: fix memory leak of bio integrity If nvmet receives commands with metadata there is a continuous memory leak of kmalloc-128 slab or more precisely bio->bi_integrity. Since commit bf4c89fc8797 ("block: don't call bio_uninit from bio_endio") each user of bio_init has to use bio_uninit as well. Otherwise the bio integrity is not getting free. Nvmet uses bio_init for inline bios. Uninit the inline bio to complete deallocation of integrity in bio. The Linux kernel CVE team has assigned CVE-2025-38405 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit bf4c89fc8797f5c0964a0c3d561fbe7e8483b62f and fixed in 6.12.37 with commit 431e58d56fcb5ff1f9eb630724a922e0d2a941df Issue introduced in 6.11 with commit bf4c89fc8797f5c0964a0c3d561fbe7e8483b62f and fixed in 6.15.6 with commit 2e2028fcf924d1c6df017033c8d6e28b735a0508 Issue introduced in 6.11 with commit bf4c89fc8797f5c0964a0c3d561fbe7e8483b62f and fixed in 6.16-rc5 with commit 190f4c2c863af7cc5bb354b70e0805f06419c038 Issue introduced in 6.10.10 with commit 64149da0fddbbfe43e11c0348d8c8b4171dae3a2 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-38405 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/nvme/target/nvmet.h 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/431e58d56fcb5ff1f9eb630724a922e0d2a941df https://git.kernel.org/stable/c/2e2028fcf924d1c6df017033c8d6e28b735a0508 https://git.kernel.org/stable/c/190f4c2c863af7cc5bb354b70e0805f06419c038