{"api_version":"1","generated_at":"2026-12-02T18:22:58+00:00","cve":"CVE-2026-139435","urls":{"html":"https://cve.report/CVE-2026-139435","api":"https://cve.report/api/cve/CVE-2026-139435.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139435","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139435"},"summary":{"title":"block: unpin all pages of a bvec in bio_iov_iter_align_down()","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:19:13","updated_at":"2026-11-30 14:19:13"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/b91a661514f3a3ce5add42fc1f2eb17b61eacaca","name":"https://git.kernel.org/stable/c/b91a661514f3a3ce5add42fc1f2eb17b61eacaca","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2bfdba4243ac5483619d871fee9a2b821f5c7231","name":"https://git.kernel.org/stable/c/2bfdba4243ac5483619d871fee9a2b821f5c7231","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139435","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139435","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 20a0e6276edba4318c13486df02c31e5f3c09431 2bfdba4243ac5483619d871fee9a2b821f5c7231 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 20a0e6276edba4318c13486df02c31e5f3c09431 b91a661514f3a3ce5add42fc1f2eb17b61eacaca git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.18","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["block/bio.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"2bfdba4243ac5483619d871fee9a2b821f5c7231","status":"affected","version":"20a0e6276edba4318c13486df02c31e5f3c09431","versionType":"git"},{"lessThan":"b91a661514f3a3ce5add42fc1f2eb17b61eacaca","status":"affected","version":"20a0e6276edba4318c13486df02c31e5f3c09431","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["block/bio.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.18"},{"lessThan":"6.18","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"6.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.18","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:34:43.828Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/2bfdba4243ac5483619d871fee9a2b821f5c7231"},{"url":"https://git.kernel.org/stable/c/b91a661514f3a3ce5add42fc1f2eb17b61eacaca"}],"title":"block: unpin all pages of a bvec in bio_iov_iter_align_down()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139435","datePublished":"2026-11-30T13:34:43.828Z","dateReserved":"2026-11-30T13:22:15.933Z","dateUpdated":"2026-11-30T13:34:43.828Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:19:13","lastModifiedDate":"2026-11-30 14:19:13","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139435","Ordinal":"1","Title":"block: unpin all pages of a bvec in bio_iov_iter_align_down()","CVE":"CVE-2026-139435","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139435","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"block: unpin all pages of a bvec in bio_iov_iter_align_down()"}]}}}