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 792CA34106E for ; Tue, 16 Dec 2025 14:21:55 +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=1765894915; cv=none; b=jYmbCW8EHtSKZMbfBenCWTikxMuyujZhogATCoIazxLI4Kr49IxPN6emHHa/XHLbm3ErMQIpAVBTdkDb/wFjNz8Qi5H7DkuqNCxbnbNPZO7ib09MFOfiTC6WG0BtHxGFJTe8wU4pdlvV4+37rTvt3MhPWpRm89NuK5jVExOHYUY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765894915; c=relaxed/simple; bh=+55Q7aEEIfJ4/BpAclWtn5OCFVsAd9hburBKdmOc4Hw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YLW0ab8m9/GzOz6ClzQcNFrOhGINdL4RnchoWfYfHspcq3OMgJQ08AfE4/uc/jvUku38v4LNetW7cpDx5T+w84YkZ4/ArSDa465DYwKL1JyS2kzVMljp1d/G+laK0RKMjMWpsWanM0YzahLJyRVtw6aFk9/M5TmY5J9LTB+J7r0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LpfgBDZD; 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="LpfgBDZD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C463C4CEF1; Tue, 16 Dec 2025 14:21:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765894915; bh=+55Q7aEEIfJ4/BpAclWtn5OCFVsAd9hburBKdmOc4Hw=; h=From:To:Cc:Subject:Date:Reply-To:From; b=LpfgBDZDnZH+tbiCCBFJ5Q5kUZMiFVm/SzoGlGQino4qQsKdjSdNDfyuHGhoPUa8b 3c8EqOS75U8Fd9wKBA44GcI/2/XNXNaYR4KfNulxLM7dWyj0OmZCRY/jB/9yFdpPnu xCjryMDVlAXyyngTEh+aaUEnRj45ty6Kq2zckPpM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68242: NFS: Fix LTP test failures when timestamps are delegated Date: Tue, 16 Dec 2025 15:21:34 +0100 Message-ID: <2025121632-CVE-2025-68242-45e0@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=2686; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zfhBoNG7MMDSkRSrfFQw7v3I7lQtX1W2j4y34Irmy/A=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOWW8u7QnkzKrT+ZHFb/vwy1W3v0avL+dMd5nSoL1+/ wqX8N2LO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiN5cxzA+8slHsp3r0N9Hf /5R4ll0U1/ykc59hvs/at367XIVjON8fjXGIt7qwkykuBQA= 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: NFS: Fix LTP test failures when timestamps are delegated The utimes01 and utime06 tests fail when delegated timestamps are enabled, specifically in subtests that modify the atime and mtime fields using the 'nobody' user ID. The problem can be reproduced as follow: # echo "/media *(rw,no_root_squash,sync)" >> /etc/exports # export -ra # mount -o rw,nfsvers=4.2 127.0.0.1:/media /tmpdir # cd /opt/ltp # ./runltp -d /tmpdir -s utimes01 # ./runltp -d /tmpdir -s utime06 This issue occurs because nfs_setattr does not verify the inode's UID against the caller's fsuid when delegated timestamps are permitted for the inode. This patch adds the UID check and if it does not match then the request is sent to the server for permission checking. The Linux kernel CVE team has assigned CVE-2025-68242 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit e12912d94137ab36ee704a91f465ff15c8b423da and fixed in 6.12.59 with commit b2e4cda71ed062c87573b016d2d956a62f4258ed Issue introduced in 6.11 with commit e12912d94137ab36ee704a91f465ff15c8b423da and fixed in 6.17.9 with commit 0e9be902041c6b9f0ed4b72764187eed1067a42f Issue introduced in 6.11 with commit e12912d94137ab36ee704a91f465ff15c8b423da and fixed in 6.18 with commit b623390045a81fc559decb9bfeb79319721d3dfb 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-68242 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: fs/nfs/inode.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/b2e4cda71ed062c87573b016d2d956a62f4258ed https://git.kernel.org/stable/c/0e9be902041c6b9f0ed4b72764187eed1067a42f https://git.kernel.org/stable/c/b623390045a81fc559decb9bfeb79319721d3dfb