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 A8DC0274FDB for ; Wed, 1 Oct 2025 11:56:39 +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=1759319799; cv=none; b=kqc7gC2ejQPRFAZH3jxkkI/5pi2m7CsrtFksHP91cpCsp8+EAl2xDf1mWGKbf9ZbaQfURXc8eyHUc4ScLdKRrSFU/TwuLdIsb5H//hG/+D5P/C58TwAmKaAe3gczvYhDcGB7uBpY/f64JQPDR1tASYAP+eAglEXP7588NPUDeOQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759319799; c=relaxed/simple; bh=GFx77E0B7elCba4g7lNNitfZMWTh+l1ZZPy0DHD1R7M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KmEYCXjbIlujpel/Eak+Uguvne038hnOsQu7hc0OZ5WK+tzYFYYztzfVSahaGKrnpgwFURzEoTUKeHeJzKKfUt2qxI/Cjv3S6oJ2iJAQuwPoDr5PUVEiRTBKIAvFuxU0odCN5ZZo8YzAfWc7jG6vCkqzbuLZr/jSuvikrlbyT1c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bStCBME8; 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="bStCBME8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A24CEC4CEF4; Wed, 1 Oct 2025 11:56:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759319799; bh=GFx77E0B7elCba4g7lNNitfZMWTh+l1ZZPy0DHD1R7M=; h=From:To:Cc:Subject:Date:Reply-to:From; b=bStCBME8J+Gd+Ome3LUP0DpZtXZ6tNo4G4aKqVx08E6/CBOf2s83K+uoUYmmnPlIi 2dtdJK6GKpjOqKZ2GNQFcgovKonDYq5oMGhAPFQ1wodEEhLqToAaQXTgUnH3p7I+lD fpmIGgVic5hC75mZWdI/f/SuyJUIj7zyOtsoCnV8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53499: virtio_net: Fix error unwinding of XDP initialization Date: Wed, 1 Oct 2025 13:45:51 +0200 Message-ID: <2025100126-CVE-2023-53499-0e6a@gregkh> X-Mailer: git-send-email 2.51.0 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=2736; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=E9dU3ewtGleW7soD+i6QissvSqql0nM9iq3qGXZf2ks=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl3RcI2fhWL/9e2/Xn0nfmR5yoeeDnvyJANMd5RpFy+3 PKOyLPfHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCROa4Mc0Uk183Xy8/RlE9S T/ZIfXv12X3hBoYFLXmt9SLPAw9HC3fGbEs9/GGjtvBbAA== 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: virtio_net: Fix error unwinding of XDP initialization When initializing XDP in virtnet_open(), some rq xdp initialization may hit an error causing net device open failed. However, previous rqs have already initialized XDP and enabled NAPI, which is not the expected behavior. Need to roll back the previous rq initialization to avoid leaks in error unwinding of init code. Also extract helper functions of disable and enable queue pairs. Use newly introduced disable helper function in error unwinding and virtnet_close. Use enable helper function in virtnet_open. The Linux kernel CVE team has assigned CVE-2023-53499 to this issue. Affected and fixed versions =========================== Issue introduced in 4.16 with commit 754b8a21a96d5f11712245aef907149606b323ae and fixed in 5.15.113 with commit 6a7690f2bd178eee80f33411ae32e543ae66379c Issue introduced in 4.16 with commit 754b8a21a96d5f11712245aef907149606b323ae and fixed in 6.1.30 with commit 73f53bc295727a3cdbd9d6bcdfaa239258970cf4 Issue introduced in 4.16 with commit 754b8a21a96d5f11712245aef907149606b323ae and fixed in 6.3.4 with commit 037768b28e3752c07d63d1c72a651a6775b080bb Issue introduced in 4.16 with commit 754b8a21a96d5f11712245aef907149606b323ae and fixed in 6.4 with commit 5306623a9826aa7d63b32c6a3803c798a765474d 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-53499 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/net/virtio_net.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/6a7690f2bd178eee80f33411ae32e543ae66379c https://git.kernel.org/stable/c/73f53bc295727a3cdbd9d6bcdfaa239258970cf4 https://git.kernel.org/stable/c/037768b28e3752c07d63d1c72a651a6775b080bb https://git.kernel.org/stable/c/5306623a9826aa7d63b32c6a3803c798a765474d