CVE Catalog

CVE-2025-40172

HighCVSS 7.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.14%

4th percentile - higher than 4% of all known CVEs

Summary

In the accel/qaic driver of the Linux kernel, the function find_and_map_user_pages() may return 0 before allocating an sgt when the DMA request length is 0 or when the device requests continuation after all bytes have been transferred. This leads to a general protection fault when accessing the uninitialized sgt.

Risk Assessment

An attacker could cause a system crash (kernel panic) or potentially access unauthorized memory, threatening system stability and security.

Recommendation

Immediately update the Linux kernel to a version containing the fix that rejects zero-length requests (EINVAL).

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS