{"id":73450,"date":"2025-11-12T14:45:47","date_gmt":"2025-11-12T11:15:47","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2025-40172-accel-qaic-treat-remaining-0-as-error-in-find_and_map_user_pages\/"},"modified":"2025-11-12T14:45:47","modified_gmt":"2025-11-12T11:15:47","slug":"cve-2025-40172-accel-qaic-treat-remaining-0-as-error-in-find_and_map_user_pages","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2025-40172-accel-qaic-treat-remaining-0-as-error-in-find_and_map_user_pages\/","title":{"rendered":"CVE-2025-40172 &#8211; accel\/qaic: Treat remaining == 0 as error in find_and_map_user_pages()"},"content":{"rendered":"<p>CVE ID : CVE-2025-40172<\/p>\n<p>Published :  Nov. 12, 2025, 11:15 a.m. | 16\u00a0minutes ago<\/p>\n<p>Description : In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>accel\/qaic: Treat remaining == 0 as error in find_and_map_user_pages()<\/p>\n<p>Currently, if find_and_map_user_pages() takes a DMA xfer request from the<br \/>\nuser with a length field set to 0, or in a rare case, the host receives<br \/>\nQAIC_TRANS_DMA_XFER_CONT from the device where resources-&gt;xferred_dma_size<br \/>\nis equal to the requested transaction size, the function will return 0<br \/>\nbefore allocating an sgt or setting the fields of the dma_xfer struct.<br \/>\nIn that case, encode_addr_size_pairs() will try to access the sgt which<br \/>\nwill lead to a general protection fault.<\/p>\n<p>Return an EINVAL in case the user provides a zero-sized ALP, or the device<br \/>\nrequests continuation after all of the bytes have been transferred.<\/p>\n<p>Severity: 0.0 | NA<\/p>\n<p>Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID : CVE-2025-40172 Published : Nov. 12, 2025, 11:15 a.m. | 16\u00a0minutes ago 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 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-73450","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/73450","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=73450"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/73450\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=73450"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=73450"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=73450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}