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

4 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.107-1
6.1.176-16.1.190-16.12.115-27.2.12-17.2.15-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Acquire and hold the configfs subsystem mutex (su_mutex) while navigating the cg_children list or ci_parent hierarchy and while iterating over userdata items, including count_extradata_entries(); acquire su_mutex before dynamic_netconsole_mutex.

    Linux kernel netconsole/configfs su_mutex = held during all navigation and iteration of the configfs hierarchy, before acquiring dynamic_netconsole_mutex

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

Parent advisories

This vulnerability appears in the following advisories.

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