# CVE-2026-64149: dma-mapping: move dma\_map\_resource() sanity check into debug code

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.16% (percentile 3, 2026-11-26)
- **Published:** 2026-07-19T15:40:39.423Z
- **Modified:** 2026-08-17T17:22:55.813Z

## Who should check

- Anyone running Linux \>= f7326196a781622b33bfbdabb00f5e72b5fb5679, \< 181e67bc11c5ec5b87c6c512c2078752b23ca8d4; \>= f7326196a781622b33bfbdabb00f5e72b5fb5679, \< 004a777879ff629f6e0ca3d09ad09fa3452bcc4d; \>= f7326196a781622b33bfbdabb00f5e72b5fb5679, \< af0c3f05866237f7592219bfe05387bc3bfc99b5
- Anyone running Linux 6.18

## Description

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

dma-mapping: move dma\_map\_resource() sanity check into debug code

dma\_map\_resource() uses pfn\_valid() to ensure the range is not RAM.
However, pfn\_valid() only checks for availability of the memory map for
a PFN but it does not ensure that the PFN is actually backed by RAM. On
ARM64 with SPARSEMEM (128MB section granularity), MMIO addresses that
share a section with RAM will falsely trigger the WARN\_ON\_ONCE and cause
dma\_map\_resource() to return DMA\_MAPPING\_ERROR.

This causes a WARNING on Raspberry Pi 4 during spi\_bcm2835 probe because
the SPI FIFO register (0xfe204004) falls in the same sparsemem section
as the end of RAM (0xf8000000-0xfbffffff), both in section 31
(0xf8000000-0xffffffff).

Move the sanity check from dma\_map\_resource() into debug\_dma\_map\_phys()
and replace the unreliable pfn\_valid() with pfn\_valid() &&
!PageReserved(), which correctly identifies actual usable RAM without
false positives for MMIO regions that happen to have struct pages.

Since dma\_map\_resource() is dma\_map\_phys(DMA\_ATTR\_MMIO), the check
applies equally to both APIs. Any non-reserved page represents kernel
memory to a sufficient degree that using DMA\_ATTR\_MMIO on it is almost
certainly wrong and risks breaking coherency on non-coherent platforms.
ZONE\_DEVICE pages used for PCI P2P DMA (MEMORY\_DEVICE\_PCI\_P2PDMA) have
PageReserved set, so they will not trigger a false positive.

The check no longer blocks the mapping and uses err\_printk() to
integrate with dma-debug filtering.

## Affected and fixed versions

- Linux: \>= f7326196a781622b33bfbdabb00f5e72b5fb5679, \< 181e67bc11c5ec5b87c6c512c2078752b23ca8d4; \>= f7326196a781622b33bfbdabb00f5e72b5fb5679, \< 004a777879ff629f6e0ca3d09ad09fa3452bcc4d; \>= f7326196a781622b33bfbdabb00f5e72b5fb5679, \< af0c3f05866237f7592219bfe05387bc3bfc99b5 (cvelist)
- Linux: 6.18 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-64149.md
Affected: Linux >= f7326196a781622b33bfbdabb00f5e72b5fb5679, < 181e67bc11c5ec5b87c6c512c2078752b23ca8d4; >= f7326196a781622b33bfbdabb00f5e72b5fb5679, < 004a777879ff629f6e0ca3d09ad09fa3452bcc4d; >= f7326196a781622b33bfbdabb00f5e72b5fb5679, < af0c3f05866237f7592219bfe05387bc3bfc99b5; Linux 6.18
Fixed in: Linux 181e67bc11c5ec5b87c6c512c2078752b23ca8d4, Linux 004a777879ff629f6e0ca3d09ad09fa3452bcc4d

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-64149 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= f7326196a781622b33bfbdabb00f5e72b5fb5679, \< 181e67bc11c5ec5b87c6c512c2078752b23ca8d4; \>= f7326196a781622b33bfbdabb00f5e72b5fb5679, \< 004a777879ff629f6e0ca3d09ad09fa3452bcc4d; \>= f7326196a781622b33bfbdabb00f5e72b5fb5679, \< af0c3f05866237f7592219bfe05387bc3bfc99b5; Linux 6.18.

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

Yes. Fixed in Linux 181e67bc11c5ec5b87c6c512c2078752b23ca8d4, Linux 004a777879ff629f6e0ca3d09ad09fa3452bcc4d. No fix listed yet: follow the vendor advisory.

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

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/181e67bc11c5ec5b87c6c512c2078752b23ca8d4>
- patch: <https://git.kernel.org/stable/c/004a777879ff629f6e0ca3d09ad09fa3452bcc4d>
- patch: <https://git.kernel.org/stable/c/af0c3f05866237f7592219bfe05387bc3bfc99b5>

## 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-64149>

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