net: devmem: check uid and netns in net_devmem_get_binding()
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
net: devmem: check uid and netns in net_devmem_get_binding()
NETDEV_CMD_BIND_TX is unprivileged, and dmabuf binding IDs are allocated from a single global xarray. Currently net_devmem_get_binding() 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 net_devmem_get_binding() before checking the route destination device. Return -EINVAL on mismatch so callers cannot distinguish non-existent IDs from bindings owned by other users.
| Product | Versions |
|---|---|
| Linux Linux | bd61848900bff597764238f3a8ec67c815cd316e to before 2593dedca98f2fa981dabfb0f63c319f391f3f20 Affectedbd61848900bff597764238f3a8ec67c815cd316e to before 7e3406ebfebe91956b94f113712287157323ee35 Affectedbd61848900bff597764238f3a8ec67c815cd316e to before 3a82195416fd71fdd6cb4ff80f611ec28073be16 Affected |
| Linux Linux | 6.16 Affectedbefore 6.16 Not Affected6.18.66 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.