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 3C7B015A4B3 for ; Fri, 12 Jul 2024 12:22:31 +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=1720786951; cv=none; b=rlLIwrXZf7TcfgDzJSzJd+756n3bImO8YhclPMIBssfRQNlfvS0ouDdfsqptjUykKavkHUXIY0+O7T+aRxZe0kEY6q/pDAoryvo8wErnsRIa8M1yNYyVr6cmv6e0htfISvmqa70hpT782WXaHDcyVnsx9Ok2Emx8V3l9iEEnFQk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720786951; c=relaxed/simple; bh=h+lZHE9ZDBNmb+n/Q12yAK72QrlLZj10idktVMrp/Ik=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=h/t+DqveoZpD13rnkgAqWIJ1X8zC3hUIcH6YnzCFEGw8pMEwC5Li3x5rjMPefQQ0efgQBwmKDPOs5BNdwk9w6AaJ/C31uun+iAH7lI4mEW28UMmK6dxQ7ynv/nHVMO5TZO17S/zexy1Z8+2sEqgcB9Nup3yVIUdfMRawsUXq6WY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=F1dX2E7O; 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="F1dX2E7O" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B64EDC4AF0F; Fri, 12 Jul 2024 12:22:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1720786951; bh=h+lZHE9ZDBNmb+n/Q12yAK72QrlLZj10idktVMrp/Ik=; h=From:To:Cc:Subject:Date:Reply-to:From; b=F1dX2E7Ogt+dBoREp+FLO3KfIow99y75fO1hZ1udDv/L4/QMEuBSWip5Jjdo9F6tI QGAsshZKsrcx0F8xdq/cLgIhN4JxZEJBUjORf5geKRTJUSiHPgq72vJCmfYXuDiP3P NJzTl/u0gLzgKH1MD2ngvL6H2IkrZiI4tG4420o0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-39499: vmci: prevent speculation leaks by sanitizing event in event_deliver() Date: Fri, 12 Jul 2024 14:21:05 +0200 Message-ID: <2024071203-CVE-2024-39499-ed0a@gregkh> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3147; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=h+lZHE9ZDBNmb+n/Q12yAK72QrlLZj10idktVMrp/Ik=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkT5dcLRsRdSplyp9yTScxPZQ373KbaKfd8FJ/WR2ctv jMn+823jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI7oMM81O3nflT9PvFm/d+ EzsZ/+RUHPZ0fcywYFnzuhLHglU7NzsyZ+0wP/tohbKhAAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: vmci: prevent speculation leaks by sanitizing event in event_deliver() Coverity spotted that event_msg is controlled by user-space, event_msg->event_data.event is passed to event_deliver() and used as an index without sanitization. This change ensures that the event index is sanitized to mitigate any possibility of speculative information leaks. This bug was discovered and resolved using Coverity Static Analysis Security Testing (SAST) by Synopsys, Inc. Only compile tested, no access to HW. The Linux kernel CVE team has assigned CVE-2024-39499 to this issue. Affected and fixed versions =========================== Issue introduced in 3.9 with commit 1d990201f9bb and fixed in 4.19.317 with commit 58730dfbd4ae Issue introduced in 3.9 with commit 1d990201f9bb and fixed in 5.4.279 with commit 681967c4ff21 Issue introduced in 3.9 with commit 1d990201f9bb and fixed in 5.10.221 with commit f70ff7373467 Issue introduced in 3.9 with commit 1d990201f9bb and fixed in 5.15.162 with commit 95ac3e773a1f Issue introduced in 3.9 with commit 1d990201f9bb and fixed in 6.1.95 with commit 95bac1c8bedb Issue introduced in 3.9 with commit 1d990201f9bb and fixed in 6.6.35 with commit e293c6b38ac9 Issue introduced in 3.9 with commit 1d990201f9bb and fixed in 6.9.6 with commit 757804e1c599 Issue introduced in 3.9 with commit 1d990201f9bb and fixed in 6.10-rc1 with commit 8003f00d8953 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-2024-39499 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/misc/vmw_vmci/vmci_event.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/58730dfbd4ae01c1b022b0d234a8bf8c02cdfb81 https://git.kernel.org/stable/c/681967c4ff210e06380acf9b9a1b33ae06e77cbd https://git.kernel.org/stable/c/f70ff737346744633e7b655c1fb23e1578491ff3 https://git.kernel.org/stable/c/95ac3e773a1f8da83c4710a720fbfe80055aafae https://git.kernel.org/stable/c/95bac1c8bedb362374ea1937b1d3e833e01174ee https://git.kernel.org/stable/c/e293c6b38ac9029d76ff0d2a6b2d74131709a9a8 https://git.kernel.org/stable/c/757804e1c599af5d2a7f864c8e8b2842406ff4bb https://git.kernel.org/stable/c/8003f00d895310d409b2bf9ef907c56b42a4e0f4