{"id":15047,"date":"2026-09-04T19:02:23","date_gmt":"2026-09-04T11:02:23","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-64063"},"modified":"2026-09-04T19:02:23","modified_gmt":"2026-09-04T11:02:23","slug":"cve-2026-64063","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-64063","title":{"rendered":"CVE-2026-64063 [HIGH] &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nnetfs: Fix streaming"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>netfs: Fix streaming write being overwritten<\/p>\n<p>In order to avoid reading whilst writing, netfslib will allow &#8220;streaming<br \/>\nwrites&#8221; in which dirty data is stored directly into folios without reading<br \/>\nthem first.  Such folios are marked dirty but may not be marked uptodate.<br \/>\nIf a folio is entirely written by a streaming write, uptodate will be set,<br \/>\notherwise it will have a netfs_folio struct attached to -&gt;private recording<br \/>\nthe dirty region.<\/p>\n<p>In the event that a partially written streaming write page is to be<br \/>\noverwritten entirely by a single write(), netfs_perform_write() will try to<br \/>\ncopy over it, but doesn&#8217;t discard the netfs_folio if it succeeds; further,<br \/>\nit doesn&#8217;t correctly handle a partial copy that overwrites some of the<br \/>\ndirty data.<\/p>\n<p>Fix this by the following:<\/p>\n<p> (1) If the folio is successfully overwritten, free the netfs_folio struct<br \/>\n     before marking the page uptodate.<\/p>\n<p> (2) If the copy to the folio partially fails, but short of the dirty data,<br \/>\n     just ignore the copy.<\/p>\n<p> (3) If the copy partially fails and overwrites some of the dirty data,<br \/>\n     accept the copy, update the netfs_folio struct to record the new data.<br \/>\n     If the folio is now filled, free the netfs_folio and set uptodate,<br \/>\n     otherwise return a partial write.<\/p>\n<p>Found with:<\/p>\n<p>\tfsx -q -N 1000000 -p 10000 -o 128000 -l 600000<br \/>\n\t  \/xfstest.test\/junk &#8211;replay-ops=junk.fsxops<\/p>\n<p>using the following as junk.fsxops:<\/p>\n<p>\ttruncate 0x0 0 0x927c0<br \/>\n\twrite 0x63fb8 0x53c8 0<br \/>\n\tcopy_range 0xb704 0x19b9 0x24429 0x79380<br \/>\n\twrite 0x2402b 0x144a2 0x90660 *<br \/>\n\twrite 0x204d5 0x140a0 0x927c0 *<br \/>\n\tcopy_range 0x1f72c 0x137d0 0x7a906 0x927c0 *<br \/>\n\tread 0x00000 0x20000 0x9157c<br \/>\n\tread 0x20000 0x20000 0x9157c<br \/>\n\tread 0x40000 0x20000 0x9157c<br \/>\n\tread 0x60000 0x20000 0x9157c<br \/>\n\tread 0x7e1a0 0xcfb9 0x9157c<\/p>\n<p>on cifs with the default cache option.<\/p>\n<p>It shows folio 0x24 misbehaving if the FMODE_READ check is commented out in<br \/>\nnetfs_perform_write():<\/p>\n<p>\t\tif (\/\/(file-&gt;f_mode &amp; FMODE_READ) ||<br \/>\n\t\t    netfs_is_cache_enabled(ctx)) {<\/p>\n<p>and no fscache.  This was initially found with the generic\/522 xfstest.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>netfs: Fix streaming write being overwritten<\/p>\n<p>In order to avoid reading whilst writing, netfslib will allow &#8220;streaming<br \/>\nwrites&#8221; in w<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-15047","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/15047","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15047"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15047"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}