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 7868B215F42 for ; Thu, 8 May 2025 06:40:19 +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=1746686419; cv=none; b=O1zovKAxwTv1eq1QY2V1Q5BNm7bhplfPMEBNQM4XGf8ydaBPuEy1YdSNVyT0/kjvNwwkbnINR1j7A4WHV2kBawpr8duAtZJVRrPL06gf7wigSjiXEjjR+Pmg53J8tiW43O8wyVzBykyaU0NW07eitP/WrM4B7GCKb+aVEBOLfDs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746686419; c=relaxed/simple; bh=Nt1Vb2agsLIzcnD8S679kl+SIHczp3/Gq0BXVeGMW3Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aMSPuUl1vOxKLS/K3mbYkat650SWE/dpKLUSNEQCoDtnsumTvtjiUIz+l4pPelBoo1/45IX+sjRjKeO313iYSck9ZVxSkOlYwfgSDP6VZISX+RsBh/VcfAFnYy5QbiWr0mpMaq//PGuJX6fZ2wg1/zUtr9YmHwfSveSAEwTajpE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nA0xfPfW; 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="nA0xfPfW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0FA4C4CEEB; Thu, 8 May 2025 06:40:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746686419; bh=Nt1Vb2agsLIzcnD8S679kl+SIHczp3/Gq0BXVeGMW3Y=; h=From:To:Cc:Subject:Date:Reply-to:From; b=nA0xfPfWhy6WUAP/NcGmMv7fyMPhsyVR+EJd+iNnl6mSrJcql8QAR8E0yYmuzoaYq vhm/P6MOZY222tTaSYYD8hxa2i/lVwvvdAaDkn+N88UoAQ+O7mVEhLiAfWzLeb4Z7S HxQ1mpslXsnZRLGqjepidryYhOV0VfyeW6VgD7Dk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37820: xen-netfront: handle NULL returned by xdp_convert_buff_to_frame() Date: Thu, 8 May 2025 08:39:29 +0200 Message-ID: <2025050820-CVE-2025-37820-799c@gregkh> X-Mailer: git-send-email 2.49.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=3044; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=VKf5uwE40DiHPOcq+QcXiXN2tj39PYuneHIRVBJHq/w=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkygTMyHy9sOG0il3xXgc1HuM02w3NjxP757teYGXtd3 ml9kr/ZEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPxE2GYnxBqN+P9sxv+Ond2 v9yoLa0q0jDZkGF+lsZKYyvew9enCBlmB0Zc7lRS//UZAA== 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: xen-netfront: handle NULL returned by xdp_convert_buff_to_frame() The function xdp_convert_buff_to_frame() may return NULL if it fails to correctly convert the XDP buffer into an XDP frame due to memory constraints, internal errors, or invalid data. Failing to check for NULL may lead to a NULL pointer dereference if the result is used later in processing, potentially causing crashes, data corruption, or undefined behavior. On XDP redirect failure, the associated page must be released explicitly if it was previously retained via get_page(). Failing to do so may result in a memory leak, as the pages reference count is not decremented. The Linux kernel CVE team has assigned CVE-2025-37820 to this issue. Affected and fixed versions =========================== Issue introduced in 5.9 with commit 6c5aa6fc4defc2a0977a2c59e4710d50fa1e834c and fixed in 6.1.136 with commit 5b83d30c63f9964acb1bc63eb8e670b9e0d2c240 Issue introduced in 5.9 with commit 6c5aa6fc4defc2a0977a2c59e4710d50fa1e834c and fixed in 6.6.89 with commit cefd8a2e2de46209ce66e6d30c237eb59b6c5bfa Issue introduced in 5.9 with commit 6c5aa6fc4defc2a0977a2c59e4710d50fa1e834c and fixed in 6.12.26 with commit d6a9c4e6f9b3ec3ad98468c950ad214af8a2efb9 Issue introduced in 5.9 with commit 6c5aa6fc4defc2a0977a2c59e4710d50fa1e834c and fixed in 6.14.5 with commit eefccd889df3b49d92e7349d94c4aa7e1ba19f6c Issue introduced in 5.9 with commit 6c5aa6fc4defc2a0977a2c59e4710d50fa1e834c and fixed in 6.15-rc4 with commit cc3628dcd851ddd8d418bf0c897024b4621ddc92 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-2025-37820 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/xen-netfront.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/5b83d30c63f9964acb1bc63eb8e670b9e0d2c240 https://git.kernel.org/stable/c/cefd8a2e2de46209ce66e6d30c237eb59b6c5bfa https://git.kernel.org/stable/c/d6a9c4e6f9b3ec3ad98468c950ad214af8a2efb9 https://git.kernel.org/stable/c/eefccd889df3b49d92e7349d94c4aa7e1ba19f6c https://git.kernel.org/stable/c/cc3628dcd851ddd8d418bf0c897024b4621ddc92