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 6768F35DA79 for ; Sat, 15 Aug 2026 06:14:39 +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=1786774480; cv=none; b=QbSHfOOA19/+kzOwQ0k3FMtM/o9C2khohTOK7jZwYWLYi02P2/765mDYVV729s6+nHI96HB+ZC9BEXuWKbmrfyMsMSFmNg9aVEbQSpJyAlbu1O8fYh0kaKhwmNSGDDtvEpVbEJQHPiaVsV3hSiG3s5aolRKTbZrZkYaxXaBKmQE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774480; c=relaxed/simple; bh=92twZhTy7h0KbKuILO3npUTzEo8DhewVFaGs51cvwXY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZpiKPP767nCAuU8PeSC3+2TqplMaDb4VkZX5JKeUCTqexiRAZ00bxHTSZ4DWySk11NJKmvZxOZazk44q6JMmK3V0QClxYr5FDyp6YZcLjyUo1J//n3HmEo6UwlPFPhhj3JJ3232l/7TlUohPWyzI4XzC0sLCLz9cIebIeEfDinc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=txwgDTTr; 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="txwgDTTr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3BA71F000E9; Sat, 15 Aug 2026 06:14:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786774479; bh=QE5Hp+JZPuoPzsoTmNa0O5f7pRhkygukAePuH3TU7yg=; h=From:To:Cc:Subject:Date:Reply-To; b=txwgDTTrEaqUpv3igDN60aZLfUxU7KNki1HF/7JAb1zqurEhYFNaPMUV5x1chtgud 5WOu18RjmHeNq8f8LfMNwk/vZUJet88Gxf9UAzfo7Yvi8TxQID0LcD1S0EvDFO8VlF vmTwiMdoBpMspYp0YuqOB0YsOuz0w65NxbmE4BsQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72130: nvmet-auth: reject short AUTH_RECEIVE buffers Date: Sat, 15 Aug 2026 15:03:29 +0900 Message-ID: <2026081530-CVE-2026-72130-63b4@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=3593; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=04CV0f5mfVlF8HCyjksOMmeSusNhMuiTQgZ28bQPixg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDLvWfvh5W9YgdjmXj11B6tQag5vRqmz/zj2xqvy7f 9LJc18cO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiPFMYFpz0yrj4UHqhWkbD +XNrXWbelVGfVciwYM9xqyR7q9sLZ3qaKWgIrarZlso3FwA= 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-auth: reject short AUTH_RECEIVE buffers nvmet_execute_auth_receive() trusts the AUTH_RECEIVE allocation length after checking only that it is nonzero and matches the transfer length. In the SUCCESS1 and FAILURE1/default states, that lets a remote NVMe-oF initiator reach the fixed-size DH-HMAC-CHAP response builders with a kmalloc() buffer shorter than the response, so nvmet_auth_success1() and nvmet_auth_failure1() write past the allocation; both only WARN_ON the short length and then format the message anyway. Impact: A remote NVMe-oF initiator with access to an auth-enabled target can trigger a 16-byte heap out-of-bounds write via a one-byte AUTH_RECEIVE allocation length. Compute the minimum response length for the current DH-HMAC-CHAP step in nvmet_auth_receive_data_len() and report a zero data length when the host-supplied allocation length is shorter, so the existing zero-length check in nvmet_execute_auth_receive() rejects the command before any builder runs. The SUCCESS1 minimum is sizeof(struct nvmf_auth_dhchap_success1_data) plus the HMAC hash length, because the response hash is written into the rval[] flexible-array tail, so the minimum is state dependent rather than a flat sizeof. CHALLENGE keeps its existing variable-length guard in nvmet_auth_challenge(). This is reachable only when in-band DH-HMAC-CHAP authentication is configured on the target. The Linux kernel CVE team has assigned CVE-2026-72130 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit db1312dd95488b5e6ff362ff66fcf953a46b1821 and fixed in 6.12.101 with commit 80bf7b7f676e3987bbe06af3c359bd56ac91a5a9 Issue introduced in 6.0 with commit db1312dd95488b5e6ff362ff66fcf953a46b1821 and fixed in 6.18.40 with commit 2eaa3ad450141cfcf187bb43cb8335eb336b5f87 Issue introduced in 6.0 with commit db1312dd95488b5e6ff362ff66fcf953a46b1821 and fixed in 7.1.5 with commit bc111698b46e43eddd8664cceaa621cd559e99a0 Issue introduced in 6.0 with commit db1312dd95488b5e6ff362ff66fcf953a46b1821 and fixed in 7.2-rc1 with commit 779575bc35c687697ba69e904f2cd22e60112534 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-72130 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/fabrics-cmd-auth.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/80bf7b7f676e3987bbe06af3c359bd56ac91a5a9 https://git.kernel.org/stable/c/2eaa3ad450141cfcf187bb43cb8335eb336b5f87 https://git.kernel.org/stable/c/bc111698b46e43eddd8664cceaa621cd559e99a0 https://git.kernel.org/stable/c/779575bc35c687697ba69e904f2cd22e60112534