{"api_version":"1","generated_at":"2026-11-30T16:27:45+00:00","cve":"CVE-2026-139432","urls":{"html":"https://cve.report/CVE-2026-139432","api":"https://cve.report/api/cve/CVE-2026-139432.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139432","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139432"},"summary":{"title":"btrfs: refactor read_key_bytes() to remove the dest_folio parameter","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: refactor read_key_bytes() to remove the dest_folio parameter\n\nThe function read_key_bytes() have 3 call sites:\n\n- For BTRFS_VERITY_DESC_ITEM_KEY offset 0 inside btrfs_get_verity_descriptor()\n- For BTRFS_VERITY_DESC_ITEM_KEY offset 1 inside btrfs_get_verity_descriptor()\n  Those are to read the description items, which are pretty small with\n  fixed item size.\n\n  Those call sites do not utilize the @dest_folio parameter.\n\n- For btrfs_read_merkle_tree_page()\n  This is to read the BTRFS_VERITY_MERKLE_ITEM_KEY, which can be pretty\n  large and split into multiple items.\n\n  This is the only call site utilizing the @dest_folio parameter.\n\nJust for the only btrfs_read_merkle_tree_page() call site, we have a\ncomplex scheme for @dest and @dest_folio parameters.\nSince @dest can be NULL, it means if we pass @dest as NULL, then no\nmatter if @dest_folio is provided, the merkle data will not be loaded\ninto that @dest_folio.\n\nThis can lead to a bug where a highmem folio is not mapped, then we pass\nfolio_address(folio), which is NULL, into read_key_bytes(), causing no\ndata to be written into @dest_folio.\n\nTo address the complex scheme between @dest and @dest_folio, remove the\n@dest_folio parameter completely, and let the only caller to map the\nfolio and pass the mapped kernel address into read_key_bytes() instead.\n\nThis not only reduces the parameter list, but also make it much clear on\nthe @dest parameter handling.\nThe only downside is a longer duration of locally mapped page, but this\nshould still be fine, as kmap_local_folio() can survive context switch.","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/8de0d7c6bb7fb7867a5b2f2d4bb94826e9e98e24","name":"https://git.kernel.org/stable/c/8de0d7c6bb7fb7867a5b2f2d4bb94826e9e98e24","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/e7e14a217844385a2954a7b008e021c177c735a5","name":"https://git.kernel.org/stable/c/e7e14a217844385a2954a7b008e021c177c735a5","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/4bd53a335becc3b0738eb879e550d8a15e0e2d47","name":"https://git.kernel.org/stable/c/4bd53a335becc3b0738eb879e550d8a15e0e2d47","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/fdf56b9d03d475881d73b75afbdbe4058db04ffc","name":"https://git.kernel.org/stable/c/fdf56b9d03d475881d73b75afbdbe4058db04ffc","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d8372ed5b688435ade4c5628d1125e6086feb1cc","name":"https://git.kernel.org/stable/c/d8372ed5b688435ade4c5628d1125e6086feb1cc","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/474361b0ee085e206e3fccaca2b6463571c43891","name":"https://git.kernel.org/stable/c/474361b0ee085e206e3fccaca2b6463571c43891","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139432","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139432","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 146054090b0859b28fc39015c7704ccc3c3a347f d8372ed5b688435ade4c5628d1125e6086feb1cc git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 146054090b0859b28fc39015c7704ccc3c3a347f 4bd53a335becc3b0738eb879e550d8a15e0e2d47 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 146054090b0859b28fc39015c7704ccc3c3a347f e7e14a217844385a2954a7b008e021c177c735a5 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 146054090b0859b28fc39015c7704ccc3c3a347f 8de0d7c6bb7fb7867a5b2f2d4bb94826e9e98e24 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 146054090b0859b28fc39015c7704ccc3c3a347f 474361b0ee085e206e3fccaca2b6463571c43891 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 146054090b0859b28fc39015c7704ccc3c3a347f fdf56b9d03d475881d73b75afbdbe4058db04ffc git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.15","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 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":["fs/btrfs/verity.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"d8372ed5b688435ade4c5628d1125e6086feb1cc","status":"affected","version":"146054090b0859b28fc39015c7704ccc3c3a347f","versionType":"git"},{"lessThan":"4bd53a335becc3b0738eb879e550d8a15e0e2d47","status":"affected","version":"146054090b0859b28fc39015c7704ccc3c3a347f","versionType":"git"},{"lessThan":"e7e14a217844385a2954a7b008e021c177c735a5","status":"affected","version":"146054090b0859b28fc39015c7704ccc3c3a347f","versionType":"git"},{"lessThan":"8de0d7c6bb7fb7867a5b2f2d4bb94826e9e98e24","status":"affected","version":"146054090b0859b28fc39015c7704ccc3c3a347f","versionType":"git"},{"lessThan":"474361b0ee085e206e3fccaca2b6463571c43891","status":"affected","version":"146054090b0859b28fc39015c7704ccc3c3a347f","versionType":"git"},{"lessThan":"fdf56b9d03d475881d73b75afbdbe4058db04ffc","status":"affected","version":"146054090b0859b28fc39015c7704ccc3c3a347f","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/btrfs/verity.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.15"},{"lessThan":"5.15","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","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":"6.1.193","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"5.15","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: refactor read_key_bytes() to remove the dest_folio parameter\n\nThe function read_key_bytes() have 3 call sites:\n\n- For BTRFS_VERITY_DESC_ITEM_KEY offset 0 inside btrfs_get_verity_descriptor()\n- For BTRFS_VERITY_DESC_ITEM_KEY offset 1 inside btrfs_get_verity_descriptor()\n  Those are to read the description items, which are pretty small with\n  fixed item size.\n\n  Those call sites do not utilize the @dest_folio parameter.\n\n- For btrfs_read_merkle_tree_page()\n  This is to read the BTRFS_VERITY_MERKLE_ITEM_KEY, which can be pretty\n  large and split into multiple items.\n\n  This is the only call site utilizing the @dest_folio parameter.\n\nJust for the only btrfs_read_merkle_tree_page() call site, we have a\ncomplex scheme for @dest and @dest_folio parameters.\nSince @dest can be NULL, it means if we pass @dest as NULL, then no\nmatter if @dest_folio is provided, the merkle data will not be loaded\ninto that @dest_folio.\n\nThis can lead to a bug where a highmem folio is not mapped, then we pass\nfolio_address(folio), which is NULL, into read_key_bytes(), causing no\ndata to be written into @dest_folio.\n\nTo address the complex scheme between @dest and @dest_folio, remove the\n@dest_folio parameter completely, and let the only caller to map the\nfolio and pass the mapped kernel address into read_key_bytes() instead.\n\nThis not only reduces the parameter list, but also make it much clear on\nthe @dest parameter handling.\nThe only downside is a longer duration of locally mapped page, but this\nshould still be fine, as kmap_local_folio() can survive context switch."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:34:42.215Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/d8372ed5b688435ade4c5628d1125e6086feb1cc"},{"url":"https://git.kernel.org/stable/c/4bd53a335becc3b0738eb879e550d8a15e0e2d47"},{"url":"https://git.kernel.org/stable/c/e7e14a217844385a2954a7b008e021c177c735a5"},{"url":"https://git.kernel.org/stable/c/8de0d7c6bb7fb7867a5b2f2d4bb94826e9e98e24"},{"url":"https://git.kernel.org/stable/c/474361b0ee085e206e3fccaca2b6463571c43891"},{"url":"https://git.kernel.org/stable/c/fdf56b9d03d475881d73b75afbdbe4058db04ffc"}],"title":"btrfs: refactor read_key_bytes() to remove the dest_folio parameter","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139432","datePublished":"2026-11-30T13:34:42.215Z","dateReserved":"2026-11-30T13:22:15.933Z","dateUpdated":"2026-11-30T13:34:42.215Z","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":"139432","Ordinal":"1","Title":"btrfs: refactor read_key_bytes() to remove the dest_folio parame","CVE":"CVE-2026-139432","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139432","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: refactor read_key_bytes() to remove the dest_folio parameter\n\nThe function read_key_bytes() have 3 call sites:\n\n- For BTRFS_VERITY_DESC_ITEM_KEY offset 0 inside btrfs_get_verity_descriptor()\n- For BTRFS_VERITY_DESC_ITEM_KEY offset 1 inside btrfs_get_verity_descriptor()\n  Those are to read the description items, which are pretty small with\n  fixed item size.\n\n  Those call sites do not utilize the @dest_folio parameter.\n\n- For btrfs_read_merkle_tree_page()\n  This is to read the BTRFS_VERITY_MERKLE_ITEM_KEY, which can be pretty\n  large and split into multiple items.\n\n  This is the only call site utilizing the @dest_folio parameter.\n\nJust for the only btrfs_read_merkle_tree_page() call site, we have a\ncomplex scheme for @dest and @dest_folio parameters.\nSince @dest can be NULL, it means if we pass @dest as NULL, then no\nmatter if @dest_folio is provided, the merkle data will not be loaded\ninto that @dest_folio.\n\nThis can lead to a bug where a highmem folio is not mapped, then we pass\nfolio_address(folio), which is NULL, into read_key_bytes(), causing no\ndata to be written into @dest_folio.\n\nTo address the complex scheme between @dest and @dest_folio, remove the\n@dest_folio parameter completely, and let the only caller to map the\nfolio and pass the mapped kernel address into read_key_bytes() instead.\n\nThis not only reduces the parameter list, but also make it much clear on\nthe @dest parameter handling.\nThe only downside is a longer duration of locally mapped page, but this\nshould still be fine, as kmap_local_folio() can survive context switch.","Type":"Description","Title":"btrfs: refactor read_key_bytes() to remove the dest_folio parame"}]}}}