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 3B4F6368284 for ; Tue, 16 Dec 2025 15:40:18 +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=1765899619; cv=none; b=N/Lcwduj8fJQpCh0lW9QolfpGjYs21MluwCIqWUMCayk2IJQOHfaj52Z14cK9+dqrpBPeL/ZaQ/8pG6LiSE22YueZb1tMkEmGrMnZ5Jak7fo7EeoJ25SimfYR9OqnT7AB4/U2/2LLd5IJBwtDLO5QfNEU6258/nIDjRAL1BHyL0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765899619; c=relaxed/simple; bh=1UF2370FOc+y+Xm4iv92H0ccYpQH+ZnJ+je+O+9WdN4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AUsqoSheScQUfAorQmNDnHqaJmNtK4y7teTI/4himqbQ819525bRFMc0MkE6DSTtxLEgSiLBfwZxabNFFNgj6ToIdC+YtM8MtYLqg/qb4U3K2Pavm8U5zBveD5m8/jgRj1LUrFdpDtrNu0OhVeY+YtXf0ohN13HEFCvs4Ot5ld0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Mk7HLslp; 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="Mk7HLslp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 40B46C4CEF1; Tue, 16 Dec 2025 15:40:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765899618; bh=1UF2370FOc+y+Xm4iv92H0ccYpQH+ZnJ+je+O+9WdN4=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Mk7HLslpCpzfpPT6UJYMQXhPFxUCg0qpDhTZr4pTKA8+W9JPKz4C3JpvosA6YCLgi ToSNmVTRYO1t2ZKf9kmrjEq0onPKLWQM2Ve5J7F3WuMX3QEn0Kwv2GeF5GewJtzS85 huuZVXIz9WlwJRx1oHTy3WZgaJ0iFiPJD3jJpDJw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68319: netconsole: Acquire su_mutex before navigating configs hierarchy Date: Tue, 16 Dec 2025 16:40:02 +0100 Message-ID: <2025121656-CVE-2025-68319-6b7f@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=3441; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=n63Rst5g21q25l7tdlxr0q+gvmHEMIPKm8rbY4ZITPk=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOtT6JQlKNEmqlyZeK7efeytiR/V3e+c7PFp21y2IbL ey4LAs6YlkYBJkYZMUUWb5s4zm6v+KQopeh7WmYOaxMIEMYuDgFYCJqJgwLzt61s/Kfx3Vs78ma kswKM5PTc71DGBZsqG/cN0l5mk7z1Ptrv2497useEnkVAA== 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: netconsole: Acquire su_mutex before navigating configs hierarchy There is a race between operations that iterate over the userdata cg_children list and concurrent add/remove of userdata items through configfs. The update_userdata() function iterates over the nt->userdata_group.cg_children list, and count_extradata_entries() also iterates over this same list to count nodes. Quoting from Documentation/filesystems/configfs.rst: > A subsystem can navigate the cg_children list and the ci_parent pointer > to see the tree created by the subsystem. This can race with configfs' > management of the hierarchy, so configfs uses the subsystem mutex to > protect modifications. Whenever a subsystem wants to navigate the > hierarchy, it must do so under the protection of the subsystem > mutex. Without proper locking, if a userdata item is added or removed concurrently while these functions are iterating, the list can be accessed in an inconsistent state. For example, the list_for_each() loop can reach a node that is being removed from the list by list_del_init() which sets the nodes' .next pointer to point to itself, so the loop will never end (or reach the WARN_ON_ONCE in update_userdata() ). Fix this by holding the configfs subsystem mutex (su_mutex) during all operations that iterate over cg_children. This includes: - userdatum_value_store() which calls update_userdata() to iterate over cg_children - All sysdata_*_enabled_store() functions which call count_extradata_entries() to iterate over cg_children The su_mutex must be acquired before dynamic_netconsole_mutex to avoid potential lock ordering issues, as configfs operations may already hold su_mutex when calling into our code. The Linux kernel CVE team has assigned CVE-2025-68319 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit df03f830d099f0811281a222aefdd9d400fa0b72 and fixed in 6.17.8 with commit ff70aa7e8cf05745fdba7258952a8bedf33ea336 Issue introduced in 6.9 with commit df03f830d099f0811281a222aefdd9d400fa0b72 and fixed in 6.18 with commit d7d2fcf7ae31471b4e08b7e448b8fd0ec2e06a1b 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-68319 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/netconsole.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/ff70aa7e8cf05745fdba7258952a8bedf33ea336 https://git.kernel.org/stable/c/d7d2fcf7ae31471b4e08b7e448b8fd0ec2e06a1b