Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-40172

HIGH 7.8EPSS 8%

accel/qaic: Treat remaining == 0 as error in find_and_map_user_pages()

Mitigation

  • Upgrade Linux to 6.5 or later.

Who should check

  • Anyone running Linux >= 96d3c1cadedb6ae2e8965e19cd12caa244afbd9c, < 48b1d42286bfef7628b1d6c8c28d4e456c90f725; >= 96d3c1cadedb6ae2e8965e19cd12caa244afbd9c, < 551f1dfbcb7f3e6ed07f9d6c8c1c64337fcd0ede; >= 96d3c1cadedb6ae2e8965e19cd12caa244afbd9c, < 1ab9733d14cc9987cc5dcd1f0ad1f416e302e2e6; >= 96d3c1cadedb6ae2e8965e19cd12caa244afbd9c, < 11f08c30a3e4157305ba692f1d44cca5fc9a8fca; d410a96e5cb8c1ec7049c83f2edcd8bbfaf5d9b3; >= 6.4.12, < 6.5
  • Anyone running Linux 6.5

Vulnerability facts

Affected
Linux >= 96d3c1cadedb6ae2e8965e19cd12caa244afbd9c, < 48b1d42286bfef7628b1d6c8c28d4e456c90f725; >= 96d3c1cadedb6ae2e8965e19cd12caa244afbd9c, < 551f1dfbcb7f3e6ed07f9d6c8c1c64337fcd0ede; >= 96d3c1cadedb6ae2e8965e19cd12caa244afbd9c, < 1ab9733d14cc9987cc5dcd1f0ad1f416e302e2e6; >= 96d3c1cadedb6ae2e8965e19cd12caa244afbd9c, < 11f08c30a3e4157305ba692f1d44cca5fc9a8fca; d410a96e5cb8c1ec7049c83f2edcd8bbfaf5d9b3; >= 6.4.12, < 6.5; Linux 6.5
Fixed in
Linux 48b1d42286bfef7628b1d6c8c28d4e456c90f725, Linux 551f1dfbcb7f3e6ed07f9d6c8c1c64337fcd0ede, Linux 1ab9733d14cc9987cc5dcd1f0ad1f416e302e2e6, Linux 11f08c30a3e4157305ba692f1d44cca5fc9a8fca, Linux 6.5
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.23% chance of exploitation in 30 days (percentile 8, 2026-11-26)
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: accel/qaic: Treat remaining == 0 as error in find_and_map_user_pages() Currently, if find_and_map_user_pages() takes a DMA xfer request from the user with a length field set to 0, or in a rare case, the host receives QAIC_TRANS_DMA_XFER_CONT from the device where resources->xferred_dma_size is equal to the requested transaction size, the function will return 0 before allocating an sgt or setting the fields of the dma_xfer struct. In that case, encode_addr_size_pairs() will try to access the sgt which will lead to a general protection fault. Return an EINVAL in case the user provides a zero-sized ALP, or the device requests continuation after all of the bytes have been transferred.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 96d3c1cadedb6ae2e8965e19cd12caa244afbd9c, < 48b1d42286bfef7628b1d6c8c28d4e456c90f725; >= 96d3c1cadedb6ae2e8965e19cd12caa244afbd9c, < 551f1dfbcb7f3e6ed07f9d6c8c1c64337fcd0ede; >= 96d3c1cadedb6ae2e8965e19cd12caa244afbd9c, < 1ab9733d14cc9987cc5dcd1f0ad1f416e302e2e6; >= 96d3c1cadedb6ae2e8965e19cd12caa244afbd9c, < 11f08c30a3e4157305ba692f1d44cca5fc9a8fca; d410a96e5cb8c1ec7049c83f2edcd8bbfaf5d9b3; >= 6.4.12, < 6.5—cvelist
Linux6.5—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-40172. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40172.md
Affected: Linux >= 96d3c1cadedb6ae2e8965e19cd12caa244afbd9c, < 48b1d42286bfef7628b1d6c8c28d4e456c90f725; >= 96d3c1cadedb6ae2e8965e19cd12caa244afbd9c, < 551f1dfbcb7f3e6ed07f9d6c8c1c64337fcd0ede; >= 96d3c1cadedb6ae2e8965e19cd12caa244afbd9c, < 1ab9733d14cc9987cc5dcd1f0ad1f416e302e2e6; >= 96d3c1cadedb6ae2e8965e1…
Fixed in: Linux 48b1d42286bfef7628b1d6c8c28d4e456c90f725, Linux 551f1dfbcb7f3e6ed07f9d6c8c1c64337fcd0ede, Linux 1ab9733d14cc9987cc5dcd1f0ad1f416e302e2e6, Linux 11f08c30a3e4157305ba692f1d44cca5fc9a8fca, Linux 6.5

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.

References

FAQ

Is CVE-2025-40172 being exploited?

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

How serious is CVE-2025-40172?

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

Which versions are affected by CVE-2025-40172?

Linux >= 96d3c1cadedb6ae2e8965e19cd12caa244afbd9c, < 48b1d42286bfef7628b1d6c8c28d4e456c90f725; >= 96d3c1cadedb6ae2e8965e19cd12caa244afbd9c, < 551f1dfbcb7f3e6ed07f9d6c8c1c64337fcd0ede; >= 96d3c1cadedb6ae2e8965e19cd12caa244afbd9c, < 1ab9733d14cc9987cc5dcd1f0ad1f416e302e2e6; >= 96d3c1cadedb6ae2e8965e19cd12caa244afbd9c, < 11f08c30a3e4157305ba692f1d44cca5fc9a8fca; d410a96e5cb8c1ec7049c83f2edcd8bbfaf5d9b3; >= 6.4.12, < 6.5; Linux 6.5.

Is there a fix for CVE-2025-40172?

Yes. Fixed in Linux 48b1d42286bfef7628b1d6c8c28d4e456c90f725, Linux 551f1dfbcb7f3e6ed07f9d6c8c1c64337fcd0ede, Linux 1ab9733d14cc9987cc5dcd1f0ad1f416e302e2e6, Linux 11f08c30a3e4157305ba692f1d44cca5fc9a8fca, Linux 6.5. Upgrade Linux to 6.5 or later.

How do I check if I'm affected by CVE-2025-40172?

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.

Sponsors