CVE-2026-64124: net: devmem: reject dma-buf bind with non-page-aligned size or SG length
In the Linux kernel, the following vulnerability has been resolved:
net: devmem: reject dma-buf bind with non-page-aligned size or SG length
netdevmembinddmabuf() trusts dmabuf->size and sgdmalen() to be PAGESIZE multiples without checking:
- txvec is sized dmabuf->size / PAGESIZE, and netdevmemgetniovat() only bounds-checks virtaddr < dmabuf->size before indexing txvec[virtaddr / PAGESIZE]. With size = NPAGESIZE + r (1 <= r < PAGESIZE), sendmsg() at iovbase = NPAGESIZE passes the bound check and reads txvec[N] -- one past.
- owner->area.numniovs = len / PAGESIZE while genpooladdowner() covers the full byte len, so a non-page-multiple non-final sg desyncs numniovs from the genpool region for every later sg, on both RX and TX.
dma-buf does not require page-aligned sizes, so the bind path has to enforce what its own indexing assumes. Reject both with -EINVAL.
The size check is TX-only (only txvec is sized off dmabuf->size); the SG-length check covers both directions.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Modify the dma-buf bind path to enforce the assumptions used for tx_vec indexing: reject dma-buf bind when (1) dma-buf size is not a PAGE_SIZE multiple and (2) SG length is not a PAGE_SIZE multiple (including the (N*PAGE_SIZE + r) case), returning -EINVAL; ensure SG-length checks cover both directions (RX and TX), so indexing cannot read tx_vec one past the allocated region.
Linux kernel net/devmem (net_devmem_bind_dmabuf / net_devmem_get_niov_at) Reject dma-buf bind with non-page-aligned dma-buf size or non-page-multiple/SG length = -EINVAL
Event History
Frequently Asked Questions
What is the severity of CVE-2026-64124?
CVE-2026-64124 has a severity score of 8.8, classified as high.
What systems are affected by CVE-2026-64124?
CVE-2026-64124 affects the Linux kernel.
How do I fix CVE-2026-64124?
To fix CVE-2026-64124, update the Linux kernel to the latest patched version.
What is the risk associated with CVE-2026-64124?
CVE-2026-64124 has a risk level of 76, indicating significant potential impact.
What type of vulnerability is CVE-2026-64124?
CVE-2026-64124 is a vulnerability related to improper handling of dma-buf binds in the Linux kernel.