CVE-2026-143255: netlink: Do not call the unbind callback with the table locked
In the Linux kernel, the following vulnerability has been resolved:
netlink: Do not call the unbind callback with the table locked
When netlinkbind() fails to insert the socket, it calls netlinkundobind() with the table locked. genlunbind() then takes cblock, while genlunregisterfamily() and genlregisterfamily() take cblock for writing and then wait in netlinktablegrab() for the table users to go away:
netlinkbind() genlunregisterfamily() netlinklocktable() downwrite(&cblock) netlinkinsert() fails netlinkundobind() netlinktablegrab() genlunbind() waits for nltableusers == 0 downread(&cblock)
An unprivileged user can get here by binding to a port ID that is in use, with nlgroups set. Lockdep does not see it, as nltableusers is a plain counter.
Unlock the table first, as the comment in netlinkrelease() asks for.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.120 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7
Event History
Frequently Asked Questions
Who can trigger this issue?
An unprivileged local user can reach the problematic path. The affected component is the Linux kernel netlink subsystem.
What conditions are needed to trigger it?
The user must attempt to bind a netlink socket to a port ID that is already in use while setting nl_groups. The bind must then fail to insert the socket, causing the undo-bind path to run.
What is the practical impact of triggering the vulnerable path?
The lock ordering can deadlock: netlink_bind() holds the netlink table lock while genl_unbind() waits on cb_lock, while generic-netlink family registration or unregistration holds cb_lock and waits for netlink table users to drain.