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 D83B33A1E62 for ; Tue, 16 Dec 2025 13:57:48 +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=1765893469; cv=none; b=aAcdFihi/TJVPt0DVGI2xwAAp1UI9CRmqOA11SiKoul7fb23OIx2acF9kX6rCGXIEbC6tUeGOsEMsArq7IZNghWy6ij3XM3daMpgZQ2Yot3BtCriw/bWIhsaWkRIwtqbY33yYNfDIJxB6A5xQ5HbiHQSGsblCZ43LUbkgBExANA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765893469; c=relaxed/simple; bh=g/oYyMouxmNUP304pl0y6bOSd/qaVtgzhNZMtsnN464=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Du5j/PK/gCxwgdY4RKQfdE2HjuCZFbn+zhcNdHqz6ex+8aQLSOUsF/+a4wxE62TnH2QRPiayVf0VX3aGj/4HIYJu11EpfP8nGl5opXzgafyqL9GFLbDRViZzRAg1E4GrHobh+dYhoK710uC8W0+I9rpQBvfiwB9TPL6dhBrj0Vk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=awOJd6V4; 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="awOJd6V4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA4D1C4CEF1; Tue, 16 Dec 2025 13:57:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765893468; bh=g/oYyMouxmNUP304pl0y6bOSd/qaVtgzhNZMtsnN464=; h=From:To:Cc:Subject:Date:Reply-To:From; b=awOJd6V4UqjJVn9FZcGriZ/5CY/ezL8r/pJdO2zcTp+r1AXOmy+E5K+G8vQrUep+O J/NpnWKVSybV4uWG180SYeUFYad0ehlyV/c3RjHEXMWHj3cwIsuALqZ5BnkI/muM/R 582RWF08BM0usTtXVxndYIC9RLPROgtMet2wrGXU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68212: fs: Fix uninitialized 'offp' in statmount_string() Date: Tue, 16 Dec 2025 14:57:31 +0100 Message-ID: <2025121630-CVE-2025-68212-eab7@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=2353; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=V4AWOM1lv4e80eaUMvEJ8qBXQf9LZ9uhHRIijY8Aw5c=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOqV7n7+hzlEkKs4rzsEep3Lf+ZLhVOee++fM5H6sYe g5Hr2TsiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgInMm8ywYFdP2lPBSPZF4WaL rr44N2Uj86JL9xnmitgX1cvGbNCqneHuEyRomWN6R8gTAA== 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: fs: Fix uninitialized 'offp' in statmount_string() In statmount_string(), most flags assign an output offset pointer (offp) which is later updated with the string offset. However, the STATMOUNT_MNT_UIDMAP and STATMOUNT_MNT_GIDMAP cases directly set the struct fields instead of using offp. This leaves offp uninitialized, leading to a possible uninitialized dereference when *offp is updated. Fix it by assigning offp for UIDMAP and GIDMAP as well, keeping the code path consistent. The Linux kernel CVE team has assigned CVE-2025-68212 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit e52e97f09fb66fd868260d05bd6b74a9a3db39ee and fixed in 6.17.10 with commit acfde9400e611c8d2668f1c70053c4a1d6ecfc36 Issue introduced in 6.14 with commit e52e97f09fb66fd868260d05bd6b74a9a3db39ee and fixed in 6.18 with commit 0778ac7df5137d5041783fadfc201f8fd55a1d9b Issue introduced in 6.12.14 with commit d49c64c1d723c167f521833f429ab28d3ca7e0d9 Issue introduced in 6.13.3 with commit c3787a4fae66e710543137b4b1b073cb2bff3bca 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-68212 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/namespace.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/acfde9400e611c8d2668f1c70053c4a1d6ecfc36 https://git.kernel.org/stable/c/0778ac7df5137d5041783fadfc201f8fd55a1d9b