From mboxrd@z Thu Jan 1 00:00:00 1970 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 059214DA52E for ; Fri, 4 Sep 2026 15:16: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=1788535000; cv=none; b=nxviuvxM5y1JkBUQQt2DZKreSDnMTA5rr6SHZMuOE1hNRpAV7kho6AvDypDeemk4bMCyj8nBOgpAxlA6IBViF1Y+TiwkltxE1E3gunDT1N4OB6qVMpMZWpY2+iG966Xt+QHuW1N/hwsj8JHiDyJ8gVp59Qzy1puXYX5uwsd0Wcs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788535000; c=relaxed/simple; bh=mXsa3vtEHb+RnFW4U2KUhADZlUjmB7JITm8tDmcOHio=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RwDbRm7Y7loLAlcPd8T0sBygeIyeNQTqRNIbQNFqDh80uMqAu8Uc+FPUQ00ahtgoxzOpg7tkrK+lUhJ5BaH9KCkxC8JcEpIGimoXiGvYx1MVHB1n+ZdcFg0YvzWc4FimlOMmrvjJNBnRwTeGoOztIVEAx2Dq67H+1vfzwgnVzFA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=C4+zJNag; 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="C4+zJNag" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2597C1F00A3D; Fri, 4 Sep 2026 15:16:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1788534998; bh=ox8wT9xemXZGdW+z1Nek3t+aL5gHOHy+BZvPzRClzWc=; h=From:To:Cc:Subject:Date:Reply-To; b=C4+zJNagSGgbgA7quKqvTjEnc1UYCS67fyJ+cqoNZRHP9XYp0C50IL8dnBMPIop07 rIh9Y1SrCCSI38FO4OMmQ2gDEFaAngLdlu5G5pIkZkJrm/qRnxDe2HiStN3nMEVCQe CygXR3d7MKP1yDA2O7vQBiLe66OtCU3cQfgbpgfw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80790: nvmet-fc: fix invalid free in LS IOD error path Date: Fri, 4 Sep 2026 17:11:29 +0200 Message-ID: <2026090406-CVE-2026-80790-7221@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=4066; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7ReeBBRK3Obut+jA1GwC34LxKh18NYn60h3mldq0xIM=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmz7ndt/us8NeDo7sWu/1jnxQcdYb8UsOmBsPlN97KHq yTdZ9mc6YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJfDjFsGDp4unCpxWdH3C5 xCi+EnjbFyleHsIwT9lj3bLbpeWfJPdeKrWbdct4Sdf23wA= 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-fc: fix invalid free in LS IOD error path nvmet_fc_alloc_ls_iodlist() advances iod while initializing the LS IOD array. If an rqstbuf allocation or response buffer DMA mapping fails, the unwind loop decrements iod past the start of the array. The final kfree(iod) therefore frees an address before the allocated object. This can be reproduced with nvme-fcloop and failslab by setting fail-nth to 6 before creating a target port. KASAN reports: BUG: KASAN: invalid-free in nvmet_fc_register_targetport Free of addr ffff88816cf8ff48 by task nvmet_fail_nth/9552 Free the original allocation base stored in tgtport->iod instead. With this fix applied, the same sysfs write with fail-nth=6 returns -ENOMEM without any KASAN report. The Linux kernel CVE team has assigned CVE-2026-80790 to this issue. Affected and fixed versions =========================== Issue introduced in 4.10 with commit c53432030d86429dc9fe5adc3d68cb9d1343b0b2 and fixed in 5.10.267 with commit b189c6e408896ccc23d2e76d7738847cdebf1532 Issue introduced in 4.10 with commit c53432030d86429dc9fe5adc3d68cb9d1343b0b2 and fixed in 5.15.218 with commit 449e9c4f8db84ad9d9bb288029b230bcf590faa2 Issue introduced in 4.10 with commit c53432030d86429dc9fe5adc3d68cb9d1343b0b2 and fixed in 6.1.185 with commit 1a8f007faefe8c226ec65896589f8d59b0a8d5a5 Issue introduced in 4.10 with commit c53432030d86429dc9fe5adc3d68cb9d1343b0b2 and fixed in 6.6.154 with commit d094582cce9c08516d714e7436a8f3b9211dda90 Issue introduced in 4.10 with commit c53432030d86429dc9fe5adc3d68cb9d1343b0b2 and fixed in 6.12.106 with commit 371fb1bf902adaa59be32bd7e904a5317e604fd0 Issue introduced in 4.10 with commit c53432030d86429dc9fe5adc3d68cb9d1343b0b2 and fixed in 6.18.47 with commit 8bce9cd08aae4283badf8ddc11fbb6f57b75a81e Issue introduced in 4.10 with commit c53432030d86429dc9fe5adc3d68cb9d1343b0b2 and fixed in 7.1.11 with commit bb9489f0dce58da730d3479588d6710d7a2c1b45 Issue introduced in 4.10 with commit c53432030d86429dc9fe5adc3d68cb9d1343b0b2 and fixed in 7.2.1 with commit 94334ea92f4d7535f66f86e33681efa94827eddc Issue introduced in 4.10 with commit c53432030d86429dc9fe5adc3d68cb9d1343b0b2 and fixed in 7.3-rc1 with commit ba98d6796d12258e837ece065d2ecb59d76ce4ff 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-80790 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/fc.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/b189c6e408896ccc23d2e76d7738847cdebf1532 https://git.kernel.org/stable/c/449e9c4f8db84ad9d9bb288029b230bcf590faa2 https://git.kernel.org/stable/c/1a8f007faefe8c226ec65896589f8d59b0a8d5a5 https://git.kernel.org/stable/c/d094582cce9c08516d714e7436a8f3b9211dda90 https://git.kernel.org/stable/c/371fb1bf902adaa59be32bd7e904a5317e604fd0 https://git.kernel.org/stable/c/8bce9cd08aae4283badf8ddc11fbb6f57b75a81e https://git.kernel.org/stable/c/bb9489f0dce58da730d3479588d6710d7a2c1b45 https://git.kernel.org/stable/c/94334ea92f4d7535f66f86e33681efa94827eddc https://git.kernel.org/stable/c/ba98d6796d12258e837ece065d2ecb59d76ce4ff