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 1777C38236E for ; Sat, 15 Aug 2026 06:34:22 +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=1786775663; cv=none; b=TKYNN2FUjbweQ9GcgOxJhg8Bbbsm54Nfs2C8SAIq8QkleTtdh5MFTTCBAmoqFJP9hJSdw4O85q9tw+V8Ksi/86XGZkaD5LEk5392WX6opQ8UwaJSLXvxxnAFXxI7Mv0rGBm3wbvkFUo8o6a5uzpn/R/g22nqeI0BC3OiR2BCBXA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775663; c=relaxed/simple; bh=NzUfIiQ3HzPbjUUww1acnv32a39qzCGIGz+Ke9rMgpw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sxZJFjIqtOyIGXaKRri3fcI5D+p3uIKb2St7JCWOoW1Ep2PBS+VkKSXm098VoqUjL5e6NL74QS87adjVeBPPtsJyr2DaQIwI1J05tIMXQEI+6geO3PxvzJHtVFgbhUW7wnHNxopk/lCOoJn78DtlWH60G2khgEeTYPgKKQ+3o4U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xVfYPQ7z; 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="xVfYPQ7z" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6BCFE1F000E9; Sat, 15 Aug 2026 06:34:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786775662; bh=1654AB8wIhhBBzXGqvS6LZ9SwfSfAdRk/tgR0QcX/5I=; h=From:To:Cc:Subject:Date:Reply-To; b=xVfYPQ7znDMnz7wzBW59LM1DEkDs28CVZwAq+ueTvleXXgJGDwAsVRMktbp4uY/kt Sy+i9yMLpkr+ogTYTbbHJGtowUwFnMgfIhZJS77kj1Hh6WBUcPVeR2m0EIWrNpTPzf 92lb1Vk+bgnYWINQOvVNYoI/pEP9D8vCnACN1TZ0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-74312: vhost/vdpa: validate virtqueue index in mmap and fault paths Date: Sat, 15 Aug 2026 15:10:39 +0900 Message-ID: <2026081552-CVE-2026-74312-a131@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=4020; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=blJ8uu97BQ2sW4KP0z0uk+khxfCTu+/RzXuCcqJ2PeY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNjDzniuWub2eYlelldXX+pLkbH3pHP49ROlRmLpbup ftQe213RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkmz/DgumW/N90c71PnrvO PLlu9crF/I17ZRnmcP4znZMku+b4pH7+m5EJop+fMr38BgA= 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: vhost/vdpa: validate virtqueue index in mmap and fault paths vhost_vdpa_mmap() and vhost_vdpa_fault() use vma->vm_pgoff as a virtqueue index for get_vq_notification(), but they do not validate that the index is smaller than v->nvqs. The ioctl path already performs both a bounds check and array_index_nospec(), but the mmap/fault path only checks that the index fits in u16. This allows an out-of-range queue index to reach driver-specific get_vq_notification() callbacks. Fix this by extracting a unified vhost_vdpa_get_vq_notification() helper that validates the queue index against v->nvqs and applies array_index_nospec() before calling the driver callback. Both the mmap and fault paths use this helper, and the bounds checking is consolidated into a single location. >From source inspection, the most defensible impact is out-of-bounds access in the callback path, potentially leading to invalid PFN remaps and crash/DoS. The Linux kernel CVE team has assigned CVE-2026-74312 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit ddd89d0a059d8e9740c75a97e0efe9bf07ee51f9 and fixed in 5.10.261 with commit 0f310bac6db9bd3bb1655707d692d9d2a86eeb17 Issue introduced in 5.8 with commit ddd89d0a059d8e9740c75a97e0efe9bf07ee51f9 and fixed in 5.15.212 with commit 4bf5a51963ff816f7443702dc536b9327cf5e550 Issue introduced in 5.8 with commit ddd89d0a059d8e9740c75a97e0efe9bf07ee51f9 and fixed in 6.1.178 with commit 55a644031e610ea93fbde2702c7b8f267476552f Issue introduced in 5.8 with commit ddd89d0a059d8e9740c75a97e0efe9bf07ee51f9 and fixed in 6.6.145 with commit 2b3f79b90b231a682315fe2191bb71925650e183 Issue introduced in 5.8 with commit ddd89d0a059d8e9740c75a97e0efe9bf07ee51f9 and fixed in 6.12.97 with commit bbba4f92515238d76018e9b75e41b16d83df52c8 Issue introduced in 5.8 with commit ddd89d0a059d8e9740c75a97e0efe9bf07ee51f9 and fixed in 6.18.40 with commit 1f5f94c6c6b2e4eaa5b45815509e21d0c6cfa81e Issue introduced in 5.8 with commit ddd89d0a059d8e9740c75a97e0efe9bf07ee51f9 and fixed in 7.1.5 with commit 32ac9097aa2463fcfc12f61cc4a9ebc3579cba7d Issue introduced in 5.8 with commit ddd89d0a059d8e9740c75a97e0efe9bf07ee51f9 and fixed in 7.2-rc1 with commit 929e4f044621c8cc30b612fb74e1410bef09e41b 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-74312 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/vhost/vdpa.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/0f310bac6db9bd3bb1655707d692d9d2a86eeb17 https://git.kernel.org/stable/c/4bf5a51963ff816f7443702dc536b9327cf5e550 https://git.kernel.org/stable/c/55a644031e610ea93fbde2702c7b8f267476552f https://git.kernel.org/stable/c/2b3f79b90b231a682315fe2191bb71925650e183 https://git.kernel.org/stable/c/bbba4f92515238d76018e9b75e41b16d83df52c8 https://git.kernel.org/stable/c/1f5f94c6c6b2e4eaa5b45815509e21d0c6cfa81e https://git.kernel.org/stable/c/32ac9097aa2463fcfc12f61cc4a9ebc3579cba7d https://git.kernel.org/stable/c/929e4f044621c8cc30b612fb74e1410bef09e41b