CVE-2026-80810

Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
04/09/2026
Last modified:
19/10/2026

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> io_uring/rsrc: fix folio size overflow in io_vec_fill_bvec()<br /> <br /> io_vec_fill_bvec() computes the folio size with a plain int 1:<br /> <br /> unsigned long folio_size = 1 folio_shift is unsigned int and comes from folio_shift() of the<br /> folio backing the registered buffer, so it can be 32 or more on a 64 bit<br /> kernel. Shifting int 1 that far is undefined, and on x86 and arm64 the<br /> count is taken modulo 32, so a shift of 34 yields 4 rather than 16G.<br /> Every other folio_shift shift in this file already uses 1UL.<br /> <br /> The result is that the segment estimate and the fill loop disagree.<br /> io_estimate_bvec_size() sizes the bvec array with the real shift:<br /> <br /> max_segs += (iov[i].iov_len &gt;&gt; shift) + 2;<br /> <br /> so a 1M iovec on a 16G folio is charged 2 segments, while<br /> io_vec_fill_bvec() then walks the same iovec in folio_size chunks of 4<br /> bytes and writes res_bvec[bvec_idx] a quarter of a million times, past<br /> the end of the array it was given. src_bvec is advanced once per<br /> iteration as well, so imu-&gt;bvec is read past its end at the same time.<br /> validate_fixed_range() only checks that the range is inside the<br /> registered buffer and does not bound the segment count.<br /> <br /> Reaching it needs a folio with a shift of at least 32, which means a<br /> gigantic hugetlb page: 16G on arm64 with 64K pages, where<br /> CONT_PMD_SHIFT is 34 and hugetlb_add_hstate(CONT_PMD_SHIFT - PAGE_SHIFT)<br /> registers that size, and likewise on powerpc. x86_64 tops out at 1G, so<br /> a shift of 30, which still fits in int and is unaffected.<br /> <br /> Use 1UL, as the rest of the file does.

Impact