{"id":65882,"date":"2025-07-09T16:33:11","date_gmt":"2025-07-09T13:03:11","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2025-38256-linux-kernel-io_uring-folio-unpinning-vulnerability\/"},"modified":"2025-07-09T16:33:11","modified_gmt":"2025-07-09T13:03:11","slug":"cve-2025-38256-linux-kernel-io_uring-folio-unpinning-vulnerability","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2025-38256-linux-kernel-io_uring-folio-unpinning-vulnerability\/","title":{"rendered":"CVE-2025-38256 &#8211; Linux Kernel io_uring Folio Unpinning Vulnerability"},"content":{"rendered":"<p><strong>CVE ID : <\/strong>CVE-2025-38256<br \/>\n<br \/>\n<strong>Published : <\/strong> July 9, 2025, 11:15 a.m. | 49\u00a0minutes ago<br \/>\n<br \/>\n<strong>Description : <\/strong>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>io_uring\/rsrc: fix folio unpinning<\/p>\n<p>syzbot complains about an unmapping failure:<\/p>\n[  108.070381][   T14] kernel BUG at mm\/gup.c:71!<br \/>\n[  108.070502][   T14] Internal error: Oops &#8211; BUG: 00000000f2000800 [#1]  SMP<br \/>\n[  108.123672][   T14] Hardware name: QEMU KVM Virtual Machine, BIOS edk2-20250221-8.fc42 02\/21\/2025<br \/>\n[  108.127458][   T14] Workqueue: iou_exit io_ring_exit_work<br \/>\n[  108.174205][   T14] Call trace:<br \/>\n[  108.175649][   T14]  sanity_check_pinned_pages+0x7cc\/0x7d0 (P)<br \/>\n[  108.178138][   T14]  unpin_user_page+0x80\/0x10c<br \/>\n[  108.180189][   T14]  io_release_ubuf+0x84\/0xf8<br \/>\n[  108.182196][   T14]  io_free_rsrc_node+0x250\/0x57c<br \/>\n[  108.184345][   T14]  io_rsrc_data_free+0x148\/0x298<br \/>\n[  108.186493][   T14]  io_sqe_buffers_unregister+0x84\/0xa0<br \/>\n[  108.188991][   T14]  io_ring_ctx_free+0x48\/0x480<br \/>\n[  108.191057][   T14]  io_ring_exit_work+0x764\/0x7d8<br \/>\n[  108.193207][   T14]  process_one_work+0x7e8\/0x155c<br \/>\n[  108.195431][   T14]  worker_thread+0x958\/0xed8<br \/>\n[  108.197561][   T14]  kthread+0x5fc\/0x75c<br \/>\n[  108.199362][   T14]  ret_from_fork+0x10\/0x20<\/p>\n<p>We can pin a tail page of a folio, but then io_uring will try to unpin<br \/>\nthe head page of the folio. While it should be fine in terms of keeping<br \/>\nthe page actually alive, mm folks say it&#8217;s wrong and triggers a debug<br \/>\nwarning. Use unpin_user_folio() instead of unpin_user_page*.<\/p>\n[axboe: adapt to current tree, massage commit message]\n<br \/>\n<strong>Severity:<\/strong> 0.0 | NA<br \/>\n<br \/>\nVisit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID : CVE-2025-38256 Published : July 9, 2025, 11:15 a.m. | 49\u00a0minutes ago Description : In the Linux kernel, the following vulnerability has been resolved: io_uring\/rsrc: fix folio unpinning syzbot complains about an unmapping failure: [ 108.070381][ T14] kernel BUG at mm\/gup.c:71! [ 108.070502][ T14] Internal error: Oops &#8211; BUG: 00000000f2000800 [#1] SMP [ &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-65882","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/65882","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=65882"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/65882\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=65882"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=65882"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=65882"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}