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 0741C316919 for ; Wed, 24 Dec 2025 10:59:25 +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=1766573966; cv=none; b=tHWKKAbsxIXeFpglGoLfC9Nu/fOU52/3BwcTOuCa3nkBIh3owjrkmqhX4lVq3+WFNV468h5PwDBH9P5RH6LVRwX4SiwRuEehDvGjYya6sHrHwXHnwMio6VtBQ/h4bknuwuk8Orbcu+LUbxh1Yu3Uq1eML1MpiPLkHnTo6QRk65o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766573966; c=relaxed/simple; bh=+6Fwf26phFG8vmcxIbh8+EV8FlVbW0ZOkvNZPdSJGzY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=P9nY1+CS2SURHWnqTGRzZCRQNH4iPdDey1iJQkGP37Lqy8aza2fJ+xuTF6U0YahfL0vnhyNctKIYQzbQRPVC1JFlnGiytNLsS/Zkh8An9lJPQmONTYzVqwhVXio5a/vssKIgw6sJRKJ49zwj6uAt5MUVljWSYmtucbbYnbMDjXY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WsgJPFB1; 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="WsgJPFB1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12421C4CEFB; Wed, 24 Dec 2025 10:59:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766573965; bh=+6Fwf26phFG8vmcxIbh8+EV8FlVbW0ZOkvNZPdSJGzY=; h=From:To:Cc:Subject:Date:Reply-To:From; b=WsgJPFB19ypg8DMf6Xetk29qpTSjNzg7qGz4VIZkGPqH9t0t5Apx9G49U2ValYpCn V9mHBpki6wZcVlzSrX8uUSVM5aGNUNbZPLcPC2NDopNyVrvBkcs0zeJsyPyKYmWmzF icDyCqoerZVWGUmrW6iQkeLkuzEYCVvHvxYcZDf0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54031: vdpa: Add queue index attr to vdpa_nl_policy for nlattr length check Date: Wed, 24 Dec 2025 11:57:15 +0100 Message-ID: <2025122437-CVE-2023-54031-90af@gregkh> X-Mailer: git-send-email 2.52.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=2475; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nv2Cjps4c/5kbpYQfCmznkGfRa+N779n4ZtFZZL5bmQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnex56acUtcaW07r7t96fseb6OYAwlmB1iPvLQwzdDVP 6dc6ebUEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPJs2eYn6Z62K1IdKfODr7a Yy8r5JKYE47uZVhwrmpL8gbL1a6m3/tm+E4pd9rOrjsJAA== 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: vdpa: Add queue index attr to vdpa_nl_policy for nlattr length check The vdpa_nl_policy structure is used to validate the nlattr when parsing the incoming nlmsg. It will ensure the attribute being described produces a valid nlattr pointer in info->attrs before entering into each handler in vdpa_nl_ops. That is to say, the missing part in vdpa_nl_policy may lead to illegal nlattr after parsing, which could lead to OOB read just like CVE-2023-3773. This patch adds the missing nla_policy for vdpa queue index attr to avoid such bugs. The Linux kernel CVE team has assigned CVE-2023-54031 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 13b00b135665c92065a27c0c39dd97e0f380bd4f and fixed in 6.1.47 with commit 8ad9bc25cbdcec72e7ca43dd8281decb69ea9a70 Issue introduced in 5.19 with commit 13b00b135665c92065a27c0c39dd97e0f380bd4f and fixed in 6.4.12 with commit ccb533b7070aeeb65c66ea5d590e9c62421dcd61 Issue introduced in 5.19 with commit 13b00b135665c92065a27c0c39dd97e0f380bd4f and fixed in 6.5 with commit b3003e1b54e057f5f3124e437b80c3bef26ed3fe 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-2023-54031 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/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/8ad9bc25cbdcec72e7ca43dd8281decb69ea9a70 https://git.kernel.org/stable/c/ccb533b7070aeeb65c66ea5d590e9c62421dcd61 https://git.kernel.org/stable/c/b3003e1b54e057f5f3124e437b80c3bef26ed3fe