CVE-2025-68319: netconsole: Acquire su_mutex before navigating configs hierarchy

Published Dec 16, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

netconsole: Acquire sumutex before navigating configs hierarchy

There is a race between operations that iterate over the userdata cgchildren list and concurrent add/remove of userdata items through configfs. The updateuserdata() function iterates over the nt->userdatagroup.cgchildren list, and countextradataentries() also iterates over this same list to count nodes.

Quoting from Documentation/filesystems/configfs.rst: A subsystem can navigate the cgchildren list and the ciparent 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 listforeach() loop can reach a node that is being removed from the list by listdelinit() which sets the nodes' .next pointer to point to itself, so the loop will never end (or reach the WARNONONCE in updateuserdata() ).

Fix this by holding the configfs subsystem mutex (sumutex) during all operations that iterate over cgchildren. This includes: - userdatumvaluestore() which calls updateuserdata() to iterate over cgchildren - All sysdataenabledstore() functions which call countextradataentries() to iterate over cgchildren

The sumutex must be acquired before dynamicnetconsolemutex to avoid potential lock ordering issues, as configfs operations may already hold sumutex when calling into our code.

Affected Software

6 affected componentsFixes available
Linux Linux kernel
debian/linux<6.12.115-2
6.12.115-2
debian/linux<6.17.8-1
6.17.8-1
debian/linux-6.12<6.12.115-2~deb12u1
6.12.115-2~deb12u1
debian/linux
6.12.115-26.17.8-1
debian/linux-6.12
6.12.115-2~deb12u1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.12.115-2
  2. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.17.8-1
  3. Upgrade

    Upgrade debian/linux-6.12 to a version that resolves this vulnerability.

    Fixed in 6.12.115-2~deb12u1
  4. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.12.115-2Fixed in 6.17.8-1
  5. Compensating control

    In Linux kernel netconsole, acquire the configfs subsystem mutex (su_mutex) before all operations that iterate over userdata_group.cg_children, including update_userdata() and count_extradata_entries() called by userdatum_value_store() and sysdata_*_enabled_store(); acquire su_mutex before dynamic_netconsole_mutex to preserve lock ordering.

Event History

Dec 16, 2025
CVE Published
via MITRE·03:39 PM
Data Sourced
via MITRE·03:39 PM
Description
Data Sourced
via NVD·04:16 PM
Description
Data Sourced
via OSV·04:16 PM
DescriptionAffected Software
Nov 13, 2026
Updated
via OSV·01:00 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2025-68319?

CVE-2025-68319 is considered to have a medium severity due to the potential for race conditions affecting userdata configurations.

2

How do I fix CVE-2025-68319?

To fix CVE-2025-68319, update to the latest version of the Linux kernel where the vulnerability has been patched.

3

What systems are affected by CVE-2025-68319?

CVE-2025-68319 affects all versions of the Linux kernel that allow manipulation of userdata items through configfs.

4

What are the potential impacts of CVE-2025-68319?

The potential impacts of CVE-2025-68319 include data inconsistency and instability in applications utilizing the Linux kernel's configfs.

5

Who discovered CVE-2025-68319?

CVE-2025-68319 was discovered as part of ongoing security assessments within the Linux kernel development community.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203