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 13D6E2D2381 for ; Thu, 3 Jul 2025 08:36:33 +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=1751531793; cv=none; b=fEWYfdKRSqP4k5n6hjhOVOU8yxY1MVuWq2OK/pG/b+w6/BfCSA9dhf3Z3S0PFQu15/q3kZnHYS+mMb0duv8LGc3ZR/gXybWzKOWUYiLC5a/D6GOCznrnjFa1yKBl7nF7zh8PMRnc6tbxgjmtqd0TM5XudCZwL/B2QWHAWHOQPzo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751531793; c=relaxed/simple; bh=T6gjeU5j6BcVor7kgTeGTuG2mpFndLn0eOhybDk5l/M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Gqlgg9ewzU2G8rf4cYvDWW0Fpkpu4ci/5A69i7UC7/8spv/yv+7qhkPFwTah0gdXiMd97Dn3xOmBgRZu2DCQmsAosJBjRYATqpwTASZgl2ZKpejT23Fh1qF6dpfFERY0BpHXtHLi617bjL6EykHjkpOnB5poelfUV0fAQNwTtj0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=BVLGwmf9; 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="BVLGwmf9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F6D8C4CEE3; Thu, 3 Jul 2025 08:36:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751531792; bh=T6gjeU5j6BcVor7kgTeGTuG2mpFndLn0eOhybDk5l/M=; h=From:To:Cc:Subject:Date:Reply-to:From; b=BVLGwmf9gws6jI2aSMItFmOtfEjPdBf4JKozYAoflWAL8eAyMd8dTsBY7sTmF2y5T JV1IAqP8dfiW8lHi+NU8ITfm2nxmUiYET64RXKioKzwD6Apv6bJckRmAJYw6dv0dFx mwxvQdYwQCb8wKuP05A806XUq2U1jk8tO6R0BwOQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38122: gve: add missing NULL check for gve_alloc_pending_packet() in TX DQO Date: Thu, 3 Jul 2025 10:35:39 +0200 Message-ID: <2025070327-CVE-2025-38122-cd8d@gregkh> X-Mailer: git-send-email 2.50.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=3009; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=TUY79RCMD4+UdSrVs2YKrQm+VKuOoG90956hBSXbbgE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlpDudfx3xsKP2WtYxXYoHOyZNmTguCUyYszEhjXWd75 97fGRV+HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARtyUMcwVfH82bE9p5+k/D w9NTb7u7dvn842aYX3bwUbFEUqDkwsN//monL1I6zWX6DQA= 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: gve: add missing NULL check for gve_alloc_pending_packet() in TX DQO gve_alloc_pending_packet() can return NULL, but gve_tx_add_skb_dqo() did not check for this case before dereferencing the returned pointer. Add a missing NULL check to prevent a potential NULL pointer dereference when allocation fails. This improves robustness in low-memory scenarios. The Linux kernel CVE team has assigned CVE-2025-38122 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit a57e5de476be0b4b7f42beb6a21c19ad9c577aa3 and fixed in 5.15.186 with commit ae98a1787fdcb0096d122bc80d93c3c7d812c04b Issue introduced in 5.14 with commit a57e5de476be0b4b7f42beb6a21c19ad9c577aa3 and fixed in 6.1.142 with commit 2e5ead9e4e91fbe7799bd38afd8904543be1cb51 Issue introduced in 5.14 with commit a57e5de476be0b4b7f42beb6a21c19ad9c577aa3 and fixed in 6.6.94 with commit 7f6265fce3bd424ded666481b37f106d7915fb6b Issue introduced in 5.14 with commit a57e5de476be0b4b7f42beb6a21c19ad9c577aa3 and fixed in 6.12.34 with commit a0319c9b1648a67511e947a596ca86888451c0a7 Issue introduced in 5.14 with commit a57e5de476be0b4b7f42beb6a21c19ad9c577aa3 and fixed in 6.15.3 with commit c741a7ef68023ac800054e2131c3e22e647fd7e3 Issue introduced in 5.14 with commit a57e5de476be0b4b7f42beb6a21c19ad9c577aa3 and fixed in 6.16-rc1 with commit 12c331b29c7397ac3b03584e12902990693bc248 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-38122 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/ethernet/google/gve/gve_tx_dqo.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/ae98a1787fdcb0096d122bc80d93c3c7d812c04b https://git.kernel.org/stable/c/2e5ead9e4e91fbe7799bd38afd8904543be1cb51 https://git.kernel.org/stable/c/7f6265fce3bd424ded666481b37f106d7915fb6b https://git.kernel.org/stable/c/a0319c9b1648a67511e947a596ca86888451c0a7 https://git.kernel.org/stable/c/c741a7ef68023ac800054e2131c3e22e647fd7e3 https://git.kernel.org/stable/c/12c331b29c7397ac3b03584e12902990693bc248