# CVE-2026-68330: net: airoha: Fix DMA direction for NPU mailbox buffer

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-08-10T12:03:06.542Z
- Modified: 2026-08-17T06:17:41.097Z
- Assigned by: Linux

## Description

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

net: airoha: Fix DMA direction for NPU mailbox buffer

airoha_npu_send_msg() always maps the mailbox buffer with DMA_TO_DEVICE,
but some callers expect the NPU to write response data back into the
same buffer:

- airoha_npu_wlan_msg_get() (NPU_OP_GET): NPU writes response into
  the buffer, then the caller reads it via memcpy()
- airoha_npu_ppe_stats_setup() (NPU_OP_SET): NPU writes back
  npu_stats_addr field in the response

On non-cache-coherent architectures like EN7581 (Cortex-A53 without
hardware cache coherency for NPU DMA), DMA_TO_DEVICE unmap is a no-op
— it does not invalidate the CPU cache. If the NPU-written cache line
is still present in the CPU cache when the caller reads the buffer,
the CPU observes stale data instead of the NPU response.

This is a timing-sensitive bug: small mailbox buffers (~24 bytes)
typically fit in a single cache line and may survive in the cache
until the caller reads them, producing silent data corruption rather
than a crash. The bug is more likely to trigger when the caller reads
the response immediately after dma_unmap_single() without intervening
cache-evicting operations.

Fix by using DMA_BIDIRECTIONAL for both map and unmap, which ensures
dma_unmap_single() invalidates the CPU cache on non-coherent systems.
The mailbox buffers are small so there is no performance concern.

(As written by CVE List.)

## Affected

- Linux Linux: from c52918744ee1e49cea86622a2633b9782446428f before 76fc5604308a109bf5838c2a0a0eb3ac6819f1ea; from c52918744ee1e49cea86622a2633b9782446428f before 4c4d866a64f36718cbcdf20add372a599dd44311; from c52918744ee1e49cea86622a2633b9782446428f before 6f884eb87a79e0c482baef2ad96c96b81d024235; 6.16 (not affected: before 6.16; from 6.18.42 up to 6.18.*; from 7.1.6 up to 7.1.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/76fc5604308a109bf5838c2a0a0eb3ac6819f1ea>
- <https://git.kernel.org/stable/c/4c4d866a64f36718cbcdf20add372a599dd44311>
- <https://git.kernel.org/stable/c/6f884eb87a79e0c482baef2ad96c96b81d024235>

## Sources

- CVE List: [CVE-2026-68330](https://www.cve.org/CVERecord?id=CVE-2026-68330), CVE Terms of Use, modified 2026-08-17
- NVD: [CVE-2026-68330](https://nvd.nist.gov/vuln/detail/CVE-2026-68330), Public domain, modified 2026-08-17

---

Page: https://cve.day/CVE-2026-68330 · Whole record: https://cve.day/CVE-2026-68330.json · Rebuilt by cve.day 2026-11-25T22:59:32.089Z
