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 D301B19A2A0 for ; Tue, 16 Jul 2024 12:28:55 +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=1721132935; cv=none; b=BehI+OW5TyY0I5lXxky/QnR2M5K6XTzks0T+UXBH/Fnnnv4NFdYWAjGzgrULE5dwL0gHrukKhr3ATngwAkrkvANBSyU3u+GozZAGVDuhloC+VMlJxpQIjLObx0wECQ+2UScP2hAD1DBmA95tV0yxiXaeEHjZffE2CsH3CeSidw8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721132935; c=relaxed/simple; bh=SGKz8/S5rl6wJQN8Xk0gACTTx1Wvw2F8Nr2ZtBpo6Fk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pWzKD9prTiN9aViSd6cDvSzxNJvvu1Mioh7JO56pUc6VYtAM4jri8dwdPaCpQRiirJDf/h+Q0EUGX3r/7HzWvImNRgkRpECeKOn/QCV9PU+j6oVu4HemLBdLQgiH+36jSRp6Xh6/XJduxQd6wwbEIjCpr6DH+HiwTCbDY2OmN8M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fYqeERb0; 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="fYqeERb0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 166F4C116B1; Tue, 16 Jul 2024 12:28:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1721132935; bh=SGKz8/S5rl6wJQN8Xk0gACTTx1Wvw2F8Nr2ZtBpo6Fk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=fYqeERb01cxoqp7xF5S2JL9Kx+oQmCj2KVfEVHikEDPq71GVlgng9rksJsFeq32wU pL1yFgGv1/FXnr5+/R65Hw9wBnzbL6hF0SIHETkQmTzNhhlE2edZGkr1K3dDuAu6U1 gin2dKjTnuo0MiUySqS+Xxr7Z0tWnkR+ksOWICA8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48864: vdpa/mlx5: add validation for VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET command Date: Tue, 16 Jul 2024 14:27:49 +0200 Message-ID: <2024071629-CVE-2022-48864-2b26@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=2253; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=SGKz8/S5rl6wJQN8Xk0gACTTx1Wvw2F8Nr2ZtBpo6Fk=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnT0g0PFgc8WaBWJzDpbW0FX6qvSMHmFYGPRZu426bVM dkUTT7TEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNZ7sWwYLFiirl9RavHi24l novHmitWnQ1kZphnO9k8+76crv+c4oSPETv+3XMTnu4JAA== 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: vdpa/mlx5: add validation for VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET command When control vq receives a VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET command request from the driver, presently there is no validation against the number of queue pairs to configure, or even if multiqueue had been negotiated or not is unverified. This may lead to kernel panic due to uninitialized resource for the queues were there any bogus request sent down by untrusted driver. Tie up the loose ends there. The Linux kernel CVE team has assigned CVE-2022-48864 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 52893733f2c5 and fixed in 5.15.29 with commit e7e118416465 Issue introduced in 5.15 with commit 52893733f2c5 and fixed in 5.16.15 with commit 9f6effca7562 Issue introduced in 5.15 with commit 52893733f2c5 and fixed in 5.17 with commit ed0f849fc3a6 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-2022-48864 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/vdpa/mlx5/net/mlx5_vnet.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/e7e118416465f2ba8b55007e5b789823e101421e https://git.kernel.org/stable/c/9f6effca75626c7a7c7620dabcb1a254ca530230 https://git.kernel.org/stable/c/ed0f849fc3a63ed2ddf5e72cdb1de3bdbbb0f8eb