{"id":"CVE-2026-139435","aliases":["CVE-2026-139435"],"related":[],"kind":"vulnerability","state":"published","title":"block: unpin all pages of a bvec in bio_iov_iter_align_down()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nblock: unpin all pages of a bvec in bio_iov_iter_align_down()\n\nbio_iov_iter_align_down() drops trailing bvecs with unpin_user_page(),\nbut a bvec built by iov_iter_extract_bvecs() can span several pages of\none folio, each with its own pin. All but the first pin leak.\n\nThe partially trimmed bvec has the same problem. Shrinking bv_len does\nnot release the pins for the pages cut off by the trim, and\n__bio_release_pages() only unpins the pages bv_len still covers at\ncompletion.\n\nBoth issues occur only with a logical block size above PAGE_SIZE and a\nlarge folio backing the user buffer. On a device with a 64K logical\nblock size, an O_DIRECT pwritev() from a hugetlb mapping that ends 16K\npast a block boundary leaks one huge page per call, whether the\nremainder is its own bvec or the tail of a larger one.\n\nUnpin all pages of a dropped bvec with bvec_unpin(), and unpin the\npages trimmed off the last bvec as well. Move bvec_unpin() up and split\nits page count into a helper so both sites share it.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nblock: unpin all pages of a bvec in bio_iov_iter_align_down()\n\nbio_iov_iter_align_down() drops trailing bvecs with unpin_user_page(),\nbut a bvec built by iov_iter_extract_bvecs() can span several pages of\none folio, each with its own pin. All but the first pin leak.\n\nThe partially trimmed bvec has the same problem. Shrinking bv_len does\nnot release the pins for the pages cut off by the trim, and\n__bio_release_pages() only unpins the pages bv_len still covers at\ncompletion.\n\nBoth issues occur only with a logical block size above PAGE_SIZE and a\nlarge folio backing the user buffer. On a device with a 64K logical\nblock size, an O_DIRECT pwritev() from a hugetlb mapping that ends 16K\npast a block boundary leaks one huge page per call, whether the\nremainder is its own bvec or the tail of a larger one.\n\nUnpin all pages of a dropped bvec with bvec_unpin(), and unpin the\npages trimmed off the last bvec as well. Move bvec_unpin() up and split\nits page count into a helper so both sites share it.","source":"cvelist"}],"published":"2026-11-30T13:34:43.828Z","modified":"2026-11-30T14:19:13.700Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"20a0e6276edba4318c13486df02c31e5f3c09431","fixed":"2bfdba4243ac5483619d871fee9a2b821f5c7231","status":"affected"},{"type":"git","introduced":"20a0e6276edba4318c13486df02c31e5f3c09431","fixed":"b91a661514f3a3ce5add42fc1f2eb17b61eacaca","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.18","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/2bfdba4243ac5483619d871fee9a2b821f5c7231","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b91a661514f3a3ce5add42fc1f2eb17b61eacaca","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139435","url":"https://www.cve.org/CVERecord?id=CVE-2026-139435","licence":"CVE Terms of Use","modified":"2026-11-30T13:34:43.828Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139435","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139435","licence":"Public domain","modified":"2026-11-30T14:19:13.700Z"}],"updatedAt":"2026-11-30T14:33:21.561Z","epss":{"score":0.00211,"percentile":0.11961,"date":"2026-12-01T12:00:22.000Z"}}