CVE-2026-139443: net: devmem: check uid and netns in net_devmem_get_binding()
In the Linux kernel, the following vulnerability has been resolved:
net: devmem: check uid and netns in netdevmemgetbinding()
NETDEVCMDBINDTX is unprivileged, and dmabuf binding IDs are allocated from a single global xarray. Currently netdevmemgetbinding() looks up the binding by ID without checking whether the sending socket belongs to the same user or network namespace that created the binding.
Record the creating netlink socket's network namespace and UID on the binding, and verify both in netdevmemgetbinding() before checking the route destination device. Return -EINVAL on mismatch so callers cannot distinguish non-existent IDs from bindings owned by other users.
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.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1
Event History
Frequently Asked Questions
Who can exploit this issue?
A local, unprivileged user that can send NETDEV_CMD_BIND_TX requests may be able to target a DMA-BUF binding ID created by another user or network namespace. The affected command is explicitly described as unprivileged.
What isolation boundary is missing in affected kernels?
Binding IDs are allocated from a single global xarray, but lookup did not verify that the requesting socket belonged to the binding creator's UID and network namespace. This could allow access attempts across user or network namespace boundaries when an attacker knows or can supply another binding ID.
How does the fix prevent cross-user or cross-namespace binding lookups?
The fix records the creating netlink socket's UID and network namespace on each binding and verifies both during lookup. A mismatch returns -EINVAL, making bindings owned by other users indistinguishable from non-existent IDs.