{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "20a0e6276edba4318c13486df02c31e5f3c09431"
            },
            {
              "fixed": "2bfdba4243ac5483619d871fee9a2b821f5c7231"
            },
            {
              "fixed": "b91a661514f3a3ce5add42fc1f2eb17b61eacaca"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.18.0"
            },
            {
              "fixed": "7.3.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139435.json"
  },
  "details": "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.",
  "id": "CVE-2026-139435",
  "modified": "2026-12-01T20:45:18.559918700Z",
  "published": "2026-11-30T13:34:43.828Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2bfdba4243ac5483619d871fee9a2b821f5c7231"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b91a661514f3a3ce5add42fc1f2eb17b61eacaca"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139435.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139435"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "block: unpin all pages of a bvec in bio_iov_iter_align_down()"
}