# CVE-2026-64124: net: devmem: reject dma-buf bind with non-page-aligned size or SG length

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-26)
- **Published:** 2026-07-19T15:40:21.879Z
- **Modified:** 2026-08-13T15:11:27.950Z

## Who should check

- Anyone running Linux \>= bd61848900bff597764238f3a8ec67c815cd316e, \< 134c517dfa63203287b2aad6558017f42435a02e; \>= bd61848900bff597764238f3a8ec67c815cd316e, \< d5008e4e4ee6b739256b796702a7d1aae1b5c3b4; \>= bd61848900bff597764238f3a8ec67c815cd316e, \< 4eb82ba543421e9e38cc14e4e82058b78850df50
- Anyone running Linux 6.16

## Description

In the Linux kernel, the following vulnerability has been resolved:

net: devmem: reject dma-buf bind with non-page-aligned size or SG length

net\_devmem\_bind\_dmabuf() trusts dmabuf-\>size and sg\_dma\_len() to be
PAGE\_SIZE multiples without checking:

  - tx\_vec is sized dmabuf-\>size / PAGE\_SIZE, and
    net\_devmem\_get\_niov\_at() only bounds-checks virt\_addr \< dmabuf-\>size
    before indexing tx\_vec\[virt\_addr / PAGE\_SIZE\]. With size =
    N\*PAGE\_SIZE + r (1 \<= r \< PAGE\_SIZE), sendmsg() at iov\_base =
    N\*PAGE\_SIZE passes the bound check and reads tx\_vec\[N\] -- one past.

  - owner-\>area.num\_niovs = len / PAGE\_SIZE while gen\_pool\_add\_owner()
    covers the full byte len, so a non-page-multiple non-final sg
    desyncs num\_niovs from the gen\_pool 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 tx\_vec is sized off dmabuf-\>size); the
SG-length check covers both directions.

## Affected and fixed versions

- Linux: \>= bd61848900bff597764238f3a8ec67c815cd316e, \< 134c517dfa63203287b2aad6558017f42435a02e; \>= bd61848900bff597764238f3a8ec67c815cd316e, \< d5008e4e4ee6b739256b796702a7d1aae1b5c3b4; \>= bd61848900bff597764238f3a8ec67c815cd316e, \< 4eb82ba543421e9e38cc14e4e82058b78850df50 (cvelist)
- Linux: 6.16 (cvelist)

## Mitigation

- Upgrade Linux to 4eb82ba543421e9e38cc14e4e82058b78850df50 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-64124. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-64124.md
Affected: Linux >= bd61848900bff597764238f3a8ec67c815cd316e, < 134c517dfa63203287b2aad6558017f42435a02e; >= bd61848900bff597764238f3a8ec67c815cd316e, < d5008e4e4ee6b739256b796702a7d1aae1b5c3b4; >= bd61848900bff597764238f3a8ec67c815cd316e, < 4eb82ba543421e9e38cc14e4e82058b78850df50; Linux 6.16
Fixed in: Linux 134c517dfa63203287b2aad6558017f42435a02e, Linux 4eb82ba543421e9e38cc14e4e82058b78850df50

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-64124 being exploited?

There is no confirmed exploitation: CVE-2026-64124 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-64124?

High: CVSS 8.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-64124?

Linux \>= bd61848900bff597764238f3a8ec67c815cd316e, \< 134c517dfa63203287b2aad6558017f42435a02e; \>= bd61848900bff597764238f3a8ec67c815cd316e, \< d5008e4e4ee6b739256b796702a7d1aae1b5c3b4; \>= bd61848900bff597764238f3a8ec67c815cd316e, \< 4eb82ba543421e9e38cc14e4e82058b78850df50; Linux 6.16.

### Is there a fix for CVE-2026-64124?

Yes. Fixed in Linux 134c517dfa63203287b2aad6558017f42435a02e, Linux 4eb82ba543421e9e38cc14e4e82058b78850df50. Upgrade Linux to 4eb82ba543421e9e38cc14e4e82058b78850df50 or later.

### How do I check if I'm affected by CVE-2026-64124?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/134c517dfa63203287b2aad6558017f42435a02e>
- patch: <https://git.kernel.org/stable/c/d5008e4e4ee6b739256b796702a7d1aae1b5c3b4>
- patch: <https://git.kernel.org/stable/c/4eb82ba543421e9e38cc14e4e82058b78850df50>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-64124>

HTML: <https://flawdb.com/CVE-2026-64124> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-64124>
