{"id":29281,"date":"2026-09-25T20:32:19","date_gmt":"2026-09-25T12:32:19","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-98127"},"modified":"2026-09-25T20:32:19","modified_gmt":"2026-09-25T12:32:19","slug":"cve-2026-98127","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-98127","title":{"rendered":"CVE-2026-98127 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nsmb\/client: validate"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>smb\/client: validate new EOF for insert range<\/p>\n<p>smb3_insert_range() does not check if the new file size<br \/>\n(i_size + len) is valid. This allows FALLOC_FL_INSERT_RANGE to bypass<br \/>\nRLIMIT_FSIZE, exceed s_maxbytes, or produce a size outside the loff_t<br \/>\nrange.<\/p>\n<p>Use check_add_overflow() to calculate the new EOF. Validate it with<br \/>\ninode_newsize_ok() before modifying the file.<\/p>\n<p>Reproducer, using a file on a CIFS mount:<\/p>\n<p>\tbash -c &#8216;<br \/>\n\t\tFILE=\/mnt\/cifs\/repro<\/p>\n<p>\t\ttrap &#8220;&#8221; SIGXFSZ<br \/>\n\t\tulimit -f 3072\t\t# RLIMIT_FSIZE = 3 MiB<\/p>\n<p>\t\t# A regular write is stopped at 3 MiB.<br \/>\n\t\tdd if=\/dev\/zero of=&#8221;$FILE&#8221; bs=1M count=4 status=none<br \/>\n\t\tstat -c &#8220;size after write: %s&#8221; &#8220;$FILE&#8221;<\/p>\n<p>\t\t# Insert 2 MiB into a 2 MiB file.<br \/>\n\t\ttruncate -s 2M &#8220;$FILE&#8221;<br \/>\n\t\tfallocate -i -o 0 -l 2M &#8220;$FILE&#8221;<br \/>\n\t\tstat -c &#8220;size after insert: %s&#8221; &#8220;$FILE&#8221;<br \/>\n\t&#8216;<\/p>\n<p>Before this change, the regular write stops at the 3 MiB limit, but<br \/>\ninsert range grows the file to 4 MiB:<\/p>\n<p>\tdd: error writing &#8216;\/mnt\/cifs\/repro&#8217;: File too large<br \/>\n\tsize after write: 3145728<br \/>\n\tsize after insert: 4194304<\/p>\n<p>After this change, insert range also fails at the limit and leaves the<br \/>\n2 MiB file unchanged:<\/p>\n<p>\tdd: error writing &#8216;\/mnt\/cifs\/repro&#8217;: File too large<br \/>\n\tsize after write: 3145728<br \/>\n\tfallocate: fallocate failed: File too large<br \/>\n\tsize after insert: 2097152<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>smb\/client: validate new EOF for insert range<\/p>\n<p>smb3_insert_range() does not check if the new file size<br \/>\n(i_size + len) is valid. Thi<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-29281","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/29281","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=29281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=29281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=29281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}