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 3CF873C7E1B for ; Wed, 22 Apr 2026 13:56: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=1776866175; cv=none; b=UacIyAb7pL+TJOl5ceszcEgQxhV7yCK9ScuNs+TEV+JXEgPQFew8E8h9VpRs3kFBZcjRul18va+VaV6a76F5MSaTsDZrPcJQT4QhMLPCyOo8uzZdjnL+UF3uL4tPwwx3qNRceJpJyDLk5/JzChDadYGOM+fAyMcdXuw4owiUe2s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776866175; c=relaxed/simple; bh=klYvsM1b86fP6gYZiOmykvYD3SO7xHlmekp3orE4nW4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=An0y04vTr7wL3B/h/62OtmgZzXMxmHieKOOIVYDLbLky8yerh5zNEgIG9n9Yy4q6lDAKmarolw8q71h8/Eed+Bo0x0SWQ2hHzhLnpjz+8i0Wqig9Stz5EMkBB0UcxvO0jRmNFnlqEj6SyePVhUt+7nkwgetZPyEhX2/pqkcWvFc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Sic8j+vn; 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="Sic8j+vn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6911C19425; Wed, 22 Apr 2026 13:56:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776866175; bh=klYvsM1b86fP6gYZiOmykvYD3SO7xHlmekp3orE4nW4=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Sic8j+vnW8Se6A3HowPUZcIsdlQTA+qs3K5fskTj1m7jgwNc9FJpX15VTlNIZ/mwJ +8ueRLqnBWtQuoml10czg99+hVu93NRn79j5RQvEFf4eSXKcqm5gf6rUwRqUJk1m+E Fe5UTj6wbrpacNR6FPvKxF8r3QEREExLIGXztu6U= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31484: io_uring/fdinfo: fix OOB read in SQE_MIXED wrap check Date: Wed, 22 Apr 2026 15:54:30 +0200 Message-ID: <2026042259-CVE-2026-31484-3268@gregkh> X-Mailer: git-send-email 2.54.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=2378; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BnWQ5mryL8YjrbdXmt4SLMFIAEQd1I5zjapvSHiNwoc=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkvLn3f+WZyYu/Fi/8NfG6unDFj7qwm09Dpl76eOHbyK kfJjiOHfTpiWRgEmRhkxRRZvmzjObq/4pCil6HtaZg5rEwgQxi4OAVgImVSDAvaO3Usq4JyGXhr zA3KPJXXH9rH08iwYKKtVjXz/dJ57NVmwoKvDjNz7NkRBQA= 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: io_uring/fdinfo: fix OOB read in SQE_MIXED wrap check __io_uring_show_fdinfo() iterates over pending SQEs and, for 128-byte SQEs on an IORING_SETUP_SQE_MIXED ring, needs to detect when the second half of the SQE would be past the end of the sq_sqes array. The current check tests (++sq_head & sq_mask) == 0, but sq_head is only incremented when a 128-byte SQE is encountered, not on every iteration. The actual array index is sq_idx = (i + sq_head) & sq_mask, which can be sq_mask (the last slot) while the wrap check passes. Fix by checking sq_idx directly. Keep the sq_head increment so the loop still skips the second half of the 128-byte SQE on the next iteration. The Linux kernel CVE team has assigned CVE-2026-31484 to this issue. Affected and fixed versions =========================== Issue introduced in 6.19 with commit 1cba30bf9fdd6c982708f3587f609a30c370d889 and fixed in 6.19.11 with commit ba21ab247a5be5382da7464b95afbe5f0e9aa503 Issue introduced in 6.19 with commit 1cba30bf9fdd6c982708f3587f609a30c370d889 and fixed in 7.0 with commit 5170efd9c344c68a8075dcb8ed38d3f8a60e7ed4 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-31484 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: io_uring/fdinfo.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/ba21ab247a5be5382da7464b95afbe5f0e9aa503 https://git.kernel.org/stable/c/5170efd9c344c68a8075dcb8ed38d3f8a60e7ed4