CVE-2026-139432

Source
https://cve.org/CVERecord?id=CVE-2026-139432
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139432.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-139432
Downstream
Published
2026-11-30T13:34:42Z
Modified
2026-11-30T15:02:28Z
Summary
btrfs: refactor read_key_bytes() to remove the dest_folio parameter
Details

In the Linux kernel, the following vulnerability has been resolved:

btrfs: refactor read_key_bytes() to remove the dest_folio parameter

The function read_key_bytes() have 3 call sites:

  • For BTRFS_VERITY_DESC_ITEM_KEY offset 0 inside btrfs_get_verity_descriptor()

  • For BTRFS_VERITY_DESC_ITEM_KEY offset 1 inside btrfs_get_verity_descriptor() Those are to read the description items, which are pretty small with fixed item size.

    Those call sites do not utilize the @dest_folio parameter.

  • For btrfs_read_merkle_tree_page() This is to read the BTRFS_VERITY_MERKLE_ITEM_KEY, which can be pretty large and split into multiple items.

    This is the only call site utilizing the @dest_folio parameter.

Just for the only btrfs_read_merkle_tree_page() call site, we have a complex scheme for @dest and @dest_folio parameters. Since @dest can be NULL, it means if we pass @dest as NULL, then no matter if @dest_folio is provided, the merkle data will not be loaded into that @dest_folio.

This can lead to a bug where a highmem folio is not mapped, then we pass folio_address(folio), which is NULL, into read_key_bytes(), causing no data to be written into @dest_folio.

To address the complex scheme between @dest and @dest_folio, remove the @dest_folio parameter completely, and let the only caller to map the folio and pass the mapped kernel address into read_key_bytes() instead.

This not only reduces the parameter list, but also make it much clear on the @dest parameter handling. The only downside is a longer duration of locally mapped page, but this should still be fine, as kmap_local_folio() can survive context switch.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139432.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
146054090b0859b28fc39015c7704ccc3c3a347f
Fixed
d8372ed5b688435ade4c5628d1125e6086feb1cc
Fixed
4bd53a335becc3b0738eb879e550d8a15e0e2d47
Fixed
e7e14a217844385a2954a7b008e021c177c735a5
Fixed
8de0d7c6bb7fb7867a5b2f2d4bb94826e9e98e24
Fixed
474361b0ee085e206e3fccaca2b6463571c43891
Fixed
fdf56b9d03d475881d73b75afbdbe4058db04ffc

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139432.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.15.0
Fixed
6.1.193
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.119
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.65
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139432.json"