⚠️

Disclaimer & Liability

The content provided on this website is for educational, research, and security awareness purposes only. Any unauthorized, illegal, or abusive use of the information, tools, and techniques discussed is solely the responsibility of the user. The author and publisher assume no liability for any damages, injuries, or consequences resulting from the misuse of this content.

CVE-2026-143255: Linux Kernel Netlink Locking Flaw Lets Unprivileged Users Trigger Deadlock | Alireza Bolbolabadi - Red Team Security
LOADING

CVE-2026-143255: Linux Kernel Netlink Locking Flaw Lets Unprivileged Users Trigger Deadlock

Executive Summary

CVE-2026-143255 describes a deadlock condition in the Linux kernel's Netlink subsystem, reachable by an unprivileged local user through the Generic Netlink bind path. The flaw is a lock-ordering interaction between netlink_bind() / netlink_undo_bind() and the Generic Netlink family registration and removal paths, both of which contend on the cb_lock mutex while waiting in netlink_table_grab() for Netlink table users to drain to zero. Because nl_table_users is a plain reference counter rather than a lockdep-tracked object, the static analyzer does not notice the circular dependency. The intended fix is to release the Netlink table before invoking the unbind callback, matching the ordering already requested by the comment in netlink_release().

The issue is a denial-of-service class deadlock rather than memory corruption, privilege escalation, or remote code execution. The supplied advisory does not document a CVSS score, affected kernel versions, an upstream commit, or a backport status, and the vulnerability is not present on the CISA Known Exploited Vulnerabilities catalog.

Technical Details

The deadlock involves four kernel-side operations:

  • netlink_lock_table() and netlink_insert() taken by netlink_bind() on the failed-bind path.

  • netlink_undo_bind() invoked while the Netlink table is still held, which calls genl_unbind().

  • genl_unbind() taking cb_lock for reading.

  • genl_register_family() and genl_unregister_family() taking cb_lock for writing and then waiting in netlink_table_grab() for nl_table_users to reach zero.

The sequence described by the upstream advisory is:

  1. netlink_bind() locks the table with netlink_lock_table().

  1. The insertion in netlink_insert() fails because the requested port ID is already bound.

  1. netlink_undo_bind() is called without first releasing the table.

  1. Inside that path, genl_unbind() attempts to acquire cb_lock.

  1. If a concurrent genl_register_family() or genl_unregister_family() is now waiting in netlink_table_grab(), it cannot proceed because the failed-bind path is still counted as a table user (nl_table_users > 0), preventing the user count from reaching zero.

The circular wait is invisible to Lockdep because nl_table_users is a plain integer and is not represented as a lockdep-tracked acquisition.

Affected systems

  • Confirmed product: the Linux kernel, specifically the Netlink (net/netlink/) and Generic Netlink (net/netlink/genetlink.c) subsystems.

  • The provided advisory excerpt does not specify the affected upstream releases, the stable branches that received the fix, the upstream commit identifier, or per-distribution package versions.

  • Because the advisory does not enumerate a fixed-version list, downstream maintainers and operators must verify fix inclusion against their own distribution's kernel changelog and security advisories rather than assuming mainline resolution applies to every shipped kernel.

  • Container and namespace-isolation boundaries: the advisory does not state whether namespace boundaries or container sandboxes can prevent the trigger; the worst-case reading is that any unprivileged user namespace can exercise the bind path.

Mitigation

  1. Apply the upstream fix associated with CVE-2026-143255 once the relevant stable-branch backport is identified. Operators should not assume mainline resolution is present in their distribution's running kernel and must verify through distribution advisories and changelogs.

  1. Reboot into a patched kernel. File-level updates do not remove exposure from a still-running vulnerable kernel, because deadlock and re-entrancy state lives in kernel memory.

  1. Restrict unprivileged local access to systems that cannot be patched in the near term. This reduces exposure but is not a substitute for an updated kernel, because ordinary user accounts can trigger the bind path described in the advisory.

  1. Container or service sandboxing may reduce the population of users capable of reaching the bind path, but the supplied advisory does not confirm namespace boundaries prevent the deadlock.

  1. Monitor kernel logs, dmesg, and system-health telemetry for stuck Netlink or Generic Netlink operations, blocked kernel threads, and application hangs involving sockets or link-related services. If a deadlock is suspected, capture thread wait locations with the kernel debugging facilities available on the affected host and look for tasks blocked in the genl_unbind(), netlink_table_grab(), cb_lock, and table-user-count paths described upstream.

  1. If a host becomes unresponsive, preserve logs and stack traces for upstream and distribution analysis and restart to clear the deadlock. This is operational recovery, not a remediation.

  1. Track distribution and vendor advisories referencing CVE-2026-143255 for the specific package versions and backport identifiers applicable to each environment. The supplied context does not include a patch URL, an affected version list, or per-distribution remediation instructions.

Detection guidance

  • Symptoms: stalled Generic Netlink operations, link-related services hanging, blocked kernel worker threads, or unprivileged bind attempts leaving the process in a D state in /proc/<pid>/status.

  • Useful kernel primitives: ps -o pid,stat,wchan, /proc/<pid>/stack on capable kernels, perf and bpftool for live tracing, and sysrq-triggered task dumps for unresponsive systems.

  • Useful logs: dmesg, systemd journal entries from Netlink consumers, and audit rules around NETLINK_BIND and bind failures with nl_groups set.

Outlook

CVE-2026-143255 is unlikely to drive intrusive security response on its own. The realistic reaction is a quiet backport into stable branches and distribution kernels, paired with periodic verification by vendors that the corrected bind ordering is present. The broader signal is that even low-impact defects in widely used socket subsystems warrant inventory discipline, because Netlink is a backbone for NetworkManager, systemd, modern link-state tooling, and many userspace daemons that may stall together if the deadlock propagates.

advisory informational CVE-2026-143255
·
← Back to Writeups