In the Linux kernel, the following vulnerability has been resolved: accel/qaic: Treat remaining == 0 as error in find_and_map_user_pages()… (CVE-2025-40172)
A vulnerability in the Linux kernel's accel/qaic component was resolved by treating a zero-length DMA transfer request as an error in the find_and_map_user_pages() function. Previously, if a DMA transfer request had a length of zero or a rare continuation condition occurred, the function could return success without properly setting up necessary structures, leading to a general protection fault when subsequent code accessed uninitialized data. The fix returns an EINVAL error for zero-sized requests or invalid continuation signals, preventing this fault.
AI Analysis
Technical Summary
The Linux kernel's accel/qaic subsystem had a vulnerability where find_and_map_user_pages() did not properly handle zero-length DMA transfer requests or certain continuation conditions. This caused the function to return success without allocating the scatter-gather table (sgt) or initializing dma_xfer struct fields. As a result, encode_addr_size_pairs() would access an uninitialized sgt, causing a general protection fault. The patch changes the function to return an EINVAL error when the user provides a zero-sized ALP or when the device requests continuation after all bytes have been transferred, preventing the fault.
Potential Impact
This vulnerability can cause a general protection fault in the Linux kernel, potentially leading to denial of service or system instability. The CVSS vector indicates local attack vector with low complexity, requiring low privileges and no user interaction, with high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to return an error for zero-length DMA transfer requests and invalid continuation conditions. Users should apply the official kernel updates that include this patch. Patch status is not explicitly confirmed in the provided data; therefore, check the Linux kernel vendor advisory for the current remediation guidance.
In the Linux kernel, the following vulnerability has been resolved: accel/qaic: Treat remaining == 0 as error in find_and_map_user_pages()… (CVE-2025-40172)
Description
A vulnerability in the Linux kernel's accel/qaic component was resolved by treating a zero-length DMA transfer request as an error in the find_and_map_user_pages() function. Previously, if a DMA transfer request had a length of zero or a rare continuation condition occurred, the function could return success without properly setting up necessary structures, leading to a general protection fault when subsequent code accessed uninitialized data. The fix returns an EINVAL error for zero-sized requests or invalid continuation signals, preventing this fault.
CVSS v3.1
Score 7.8high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel's accel/qaic subsystem had a vulnerability where find_and_map_user_pages() did not properly handle zero-length DMA transfer requests or certain continuation conditions. This caused the function to return success without allocating the scatter-gather table (sgt) or initializing dma_xfer struct fields. As a result, encode_addr_size_pairs() would access an uninitialized sgt, causing a general protection fault. The patch changes the function to return an EINVAL error when the user provides a zero-sized ALP or when the device requests continuation after all bytes have been transferred, preventing the fault.
Potential Impact
This vulnerability can cause a general protection fault in the Linux kernel, potentially leading to denial of service or system instability. The CVSS vector indicates local attack vector with low complexity, requiring low privileges and no user interaction, with high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to return an error for zero-length DMA transfer requests and invalid continuation conditions. Users should apply the official kernel updates that include this patch. Patch status is not explicitly confirmed in the provided data; therefore, check the Linux kernel vendor advisory for the current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-q638-pmrf-wwcc
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2025-40172"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a6b72d59c2644c7f8479f7f
Added to database: 07/30/2026, 15:50:45 UTC
Last enriched: 07/30/2026, 17:22:26 UTC
Last updated: 09/10/2026, 19:38:47 UTC
Views: 12
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.