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 139FB14A91 for ; Mon, 8 Dec 2025 00:48:51 +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=1765154931; cv=none; b=sPbcocT/7A3w7O/30aDE/9oqSzwt556LBgat6jE2t/WLcgDhbU64wrPtOJew1tsRK/n8FSc5NP7+nxgA7DO/bSgQ7Qz5hqicG7ecHScG1uxelsBnUdx9W12Gmap4LJH/Uj9crQCREWIsGPjypiyPIU5HxsIK7lMkpfMQzJWp3n8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765154931; c=relaxed/simple; bh=xE3Jju4Nej4eibo3jYXmC2huB29X+q+hIE95wnW7Poc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WOzgbsGMzvyAJkevTwJxoPoHEF59/iN7qqdflZ8SbiBj5zggSujHax1dXXOlgYxa4zrEEdvvM4yD45Nle9rDxuBkeOXuSpdtOccFfI42TDmgl4nFqcdMFmD1T7s3PGS987Y1euXDc3I8Tc1H3vWZMGz4TaxU1KIV17T3KaxURb8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uDEHC9C1; 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="uDEHC9C1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A52DBC19421; Mon, 8 Dec 2025 00:48:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765154930; bh=xE3Jju4Nej4eibo3jYXmC2huB29X+q+hIE95wnW7Poc=; h=From:To:Cc:Subject:Date:Reply-To:From; b=uDEHC9C1kh5QALeobG1yZ14bLw6v2BoVSXOCMoVuGvlKGRRGkjFcXf3UO3krfM3jb YhPh9nB6MUoi4GAgml1HP38gILGtfOjK1uEezlBac+/EAi1c9fF8ohya9WIBPMoGDo 6Bz6xchkuhmfeb0q/IWQzjuGzjWBShvfcZt2PxSk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40299: gve: Implement gettimex64 with -EOPNOTSUPP Date: Mon, 8 Dec 2025 09:47:24 +0900 Message-ID: <2025120819-CVE-2025-40299-fd5b@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=2021; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=O14wl4JPgwu4QJHlF4Ik4egofTmnwws/JVPzqDVv6lg=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlmCuKcdZmyjfpuhsLmWrEu839J3bntufBTP4//scvF3 87V8vJ3xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwETeTmWYZ/gxSlf1w8x8mfOB c3SOMez3NGINZZgfrTd375T5RhsfTJCdoh55bPoHZ8+DAA== 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: Implement gettimex64 with -EOPNOTSUPP gve implemented a ptp_clock for sole use of do_aux_work at this time. ptp_clock_gettime() and ptp_sys_offset() assume every ptp_clock has implemented either gettimex64 or gettime64. Stub gettimex64 and return -EOPNOTSUPP to prevent NULL dereferencing. The Linux kernel CVE team has assigned CVE-2025-40299 to this issue. Affected and fixed versions =========================== Issue introduced in 6.17 with commit acd16380523b400400523fe54c7499320e558e80 and fixed in 6.17.8 with commit 96ec90412ceb58c73fd3714e40ab2cee1eedac3b Issue introduced in 6.17 with commit acd16380523b400400523fe54c7499320e558e80 and fixed in 6.18 with commit 6ab753b5d8e521616cd9bd10b09891cbeb7e0235 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-40299 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_ptp.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/96ec90412ceb58c73fd3714e40ab2cee1eedac3b https://git.kernel.org/stable/c/6ab753b5d8e521616cd9bd10b09891cbeb7e0235