Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 9E0AE385D9C for ; Sat, 15 Aug 2026 06:37:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775880; cv=none; b=shaYUPsozu6do9MERqJInc1ugi35SGldeMuwxZBMqFCRqEqQUcA5R8wGqOfLHFEJSOI+ykoZlYGZka7ai9M9uwKsu3zJgyNQaDhHTQVZCvbJwXsm434XorS4vz5RrHNmPwNZfgdQN75b1AJop3FCNsBAemokrypkf378PIae4PU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775880; c=relaxed/simple; bh=j+HGBR2xxJMUlYEUI+8nTrhrifPyXrRJFT5ExKdWZoM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=e3mGIQOp68zhvQtdJXFsSRC/lBIeHY/XUZyHC4EMEhCBJflCQ1dgsGBDV6y2y1gsp33XSGrHWlmCI2ACJIqJsqKGTE7EGb4jq9jEjLOm8d3YQXK2VTaX5VoXQVrBTIf9HvROVjsV/VAIkKHIWQ+72LbDlP3MPj1224EtH9F8v74= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PlYLti/L; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="PlYLti/L" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 021E01F000E9; Sat, 15 Aug 2026 06:37:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786775879; bh=kG5M0ob6jaqEK120eRo8ka9HxdFIMHuRYix4s+s91Yw=; h=From:To:Cc:Subject:Date:Reply-To; b=PlYLti/LclGcR50PqXnHyt3i3gkNKwnzLu14VBtB026jogWKLCd2TGIpkIob3xXw0 GFEVkvBy08l6JG1nHVVYlw/+MOj866BFC0IRQJEb9HFDRIbOjrPB1S8cmFGzqcN7OD /xlY1i20FhZb9gR4p6kgmoOH9/ANQRHQxvH1NCk8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-74386: nvmet-tcp: fix page fragment cache leak in error path Date: Sat, 15 Aug 2026 15:11:53 +0900 Message-ID: <2026081506-CVE-2026-74386-9fc4@gregkh> X-Mailer: git-send-email 2.55.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=3090; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1jjMa7xT/f3MhwuNiJuPmSMxbrtjPUpYYXLRbO8IAk8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNjFIZKzf/t302qcd4sWmy09pbtjG+/CEJ0rPU3Od/D JhZfXFiRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkcwzDgpOrhX4zLpLcaFy6 ViGVd++DNN7pZQwLelpYZfPdW2xK3kjuEjHZqH0/YP9pAA== 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-tcp: fix page fragment cache leak in error path In nvmet_tcp_alloc_queue(), when a connection is closed during the allocation process (e.g., nvmet_tcp_set_queue_sock() returns -ENOTCONN), the error handling jumps to out_destroy_sq and then to out_ida_remove without draining the page fragment cache. Although nvmet_tcp_free_cmd() is called in some error paths to release individual page fragments, the underlying page cache reference held by queue->pf_cache is never released. The first allocation using pf_cache is the call to nvmet_tcp_alloc_cmd() for queue->connect, which happens after ida_alloc() returns successfully. This results in a page leak each time a connection fails during allocation, which could lead to memory exhaustion over time if connections are repeatedly opened and closed. Fix this by calling page_frag_cache_drain() before freeing the queue structure in the out_ida_remove label. The Linux kernel CVE team has assigned CVE-2026-74386 to this issue. Affected and fixed versions =========================== Issue introduced in 5.0 with commit 872d26a391da92ed8f0c0f5cb5fef428067b7f30 and fixed in 6.12.97 with commit a43a9abc1ebf663f0aa56a729106f68dd9c77da6 Issue introduced in 5.0 with commit 872d26a391da92ed8f0c0f5cb5fef428067b7f30 and fixed in 6.18.40 with commit ba3209704b3cd46961e4e081af5c52a780785648 Issue introduced in 5.0 with commit 872d26a391da92ed8f0c0f5cb5fef428067b7f30 and fixed in 7.1.5 with commit 5fbe83a374f09561a0f0c1f4aa021501ffd681eb Issue introduced in 5.0 with commit 872d26a391da92ed8f0c0f5cb5fef428067b7f30 and fixed in 7.2-rc1 with commit 4dae393956093c807212918fd91a8fc70df15338 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-2026-74386 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/tcp.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/a43a9abc1ebf663f0aa56a729106f68dd9c77da6 https://git.kernel.org/stable/c/ba3209704b3cd46961e4e081af5c52a780785648 https://git.kernel.org/stable/c/5fbe83a374f09561a0f0c1f4aa021501ffd681eb https://git.kernel.org/stable/c/4dae393956093c807212918fd91a8fc70df15338