CVE-2026-64280 PUBLISHED

fpga: dfl-afu: validate DMA mapping length in afu_dma_map_region()

Assigner: Linux
Reserved: 19.07.2026 Published: 25.07.2026 Updated: 25.07.2026

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

fpga: dfl-afu: validate DMA mapping length in afu_dma_map_region()

afu_ioctl_dma_map() accepts a 64-bit length from userspace via DFL_FPGA_PORT_DMA_MAP ioctl without an upper bound check. The value is passed to afu_dma_pin_pages() where npages is derived as length >> PAGE_SHIFT and passed to pin_user_pages_fast() which takes int nr_pages, causing implicit truncation if length is very large.

Validate map.length at the ioctl entry point before calling afu_dma_map_region(), rejecting values whose page count exceeds INT_MAX.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from fa8dda1edef9ebc3af467c644c5533ac97171e12 to 59070040fd12e0b78d7b4d341d9f9a183237c5ff (excl.)
  • affected from fa8dda1edef9ebc3af467c644c5533ac97171e12 to fb2c0eab51ae5b02d2bae7d67c2cfbec39b57231 (excl.)
  • affected from fa8dda1edef9ebc3af467c644c5533ac97171e12 to fc3b071a7c8dc0f5d56defddf6e6fd5aaa3e1e27 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 4.19 is affected
  • unaffected from 0 to 4.19 (excl.)
  • unaffected from 6.18.39 to 6.18.* (incl.)
  • unaffected from 7.1.4 to 7.1.* (incl.)
  • unaffected from 7.2-rc1 to * (incl.)

References