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 8C8163CB576 for ; Sun, 18 Oct 2026 15:54:34 +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=1792338875; cv=none; b=EG5Rp/c6TbjfIBOFrNUyYm3FAcEbioZzY3GOXitM8v5Or1KrwlFtmMRal5LdS0pyrZ6GEEhgwaKe6GoWY/5wGp2aChpRybe9BUd1TdCe83be4QyqpATN08OTL0IYG8zR7RVv3FKHIPp9SNHmk7VgCBbnG9qkJxRx+otMaN+A/Uk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792338875; c=relaxed/simple; bh=MmJHY8Vhu3l/fiFEzH3mnF9C9n15GLkBkOg+6uDXuV4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VSLDx20lyX9EqWKVBDyPZrE8X9E5mKOB7X4AuudyF9cL5zm13l7ok8DxOIm3i0FPwklMYxTBwgULY85O7IoU0uNocntQ5aczRVTgX1szr6zB/aw0XGSGr1EvXMTAfSikeNXXYS1/mWbPcjwNkqE92Xgrr7iGB7R/bPVfnhb1y68= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ab3BhzTt; 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="ab3BhzTt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82E101F000C4; Sun, 18 Oct 2026 15:54:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792338874; bh=cjFweqOuHr6GCwTngjWzpXZxeAPprO53Rm8mXYklUKA=; h=From:To:Cc:Subject:Date:Reply-To; b=ab3BhzTtR8+68Sb4LD14vIJMt+hYGCaT/A578qEBMeMwPBxKSwdA4EHFqaftz43S2 CAromtyXVBKhZDVJuGvX3Xde1iYrY/u28f5auHZHc6xQkHsfivMkYgFexjjzXpLIU3 udVUu9yJYecydYbclIaAIqWoHx4qGf7TMMuPg2KQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98724: nvmet: pci-epf: reject too-short SGL segments Date: Sun, 18 Oct 2026 17:44:59 +0200 Message-ID: <2026101809-CVE-2026-98724-7a0b@gregkh> X-Mailer: git-send-email 2.56.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=2796; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=vmX9Dw+esKyVBxBR2x956mt2TOjggBDNaDsaWUAlYt4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXXnpNjvFirHiws22bp2zSGu2EQO90QY+cQl6Z+1eWO GzaujShI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZSJ8owP/2mDtvnC/Y/Tm0W yrfZwnhyuYSJPsM8zSiNtO6omC7/rfJ5zTJRz8o2NE8AAA== 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: pci-epf: reject too-short SGL segments The host controls an SGL segment's length. A nonzero length smaller than one SGL descriptor makes nr_descs zero, so nvmet_pci_epf_get_sgl_segment() reads the type byte of sgls[-1] outside the allocated buffer. If that byte contains a segment descriptor type, the function also copies the preceding 16 bytes and returns a negative descriptor count. The read was reproduced in 3/3 KASAN boots with only the host transfer mocked by a KUnit test: BUG: KASAN: slab-out-of-bounds in nvmet_pci_epf_get_sgl_segment Read of size 1 by task kunit_try_catch Call Trace: nvmet_pci_epf_get_sgl_segment nvmet_pci_epf_short_sgl_test Kernel panic - not syncing: KASAN: panic_on_warn set ... Reject segments that cannot hold one descriptor before allocating or transferring their contents. The Linux kernel CVE team has assigned CVE-2026-98724 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit 0faa0fe6f90ea59b10d1b0f15ce0eb0c18eff186 and fixed in 6.18.56 with commit 2423a05dd0f21330c47ce0ae1cb54a8b0be821e2 Issue introduced in 6.14 with commit 0faa0fe6f90ea59b10d1b0f15ce0eb0c18eff186 and fixed in 7.2.10 with commit 472df1d103dbe3e9d09156f0667e36180e912c46 Issue introduced in 6.14 with commit 0faa0fe6f90ea59b10d1b0f15ce0eb0c18eff186 and fixed in 7.3-rc6 with commit 5d5fbfbbacd1efb13a9bf91317d4fde859ede4b9 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-98724 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/pci-epf.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/2423a05dd0f21330c47ce0ae1cb54a8b0be821e2 https://git.kernel.org/stable/c/472df1d103dbe3e9d09156f0667e36180e912c46 https://git.kernel.org/stable/c/5d5fbfbbacd1efb13a9bf91317d4fde859ede4b9