CVE-2022-50766 Details
Description
In the Linux kernel, the following vulnerability has been resolved: btrfs: set generation before calling btrfs_clean_tree_block in btrfs_init_new_buffer syzbot is reporting uninit-value in btrfs_clean_tree_block() [1], for commit bc877d285ca3dba2 ("btrfs: Deduplicate extent_buffer init code") missed that btrfs_set_header_generation() in btrfs_init_new_buffer() must not be moved to after clean_tree_block() because clean_tree_block() is calling btrfs_header_generation() since commit 55c69072d6bd5be1 ("Btrfs: Fix extent_buffer usage when nodesize != leafsize"). Since memzero_extent_buffer() will reset "struct btrfs_header" part, we can't move btrfs_set_header_generation() to before memzero_extent_buffer(). Just re-add btrfs_set_header_generation() before btrfs_clean_tree_block().
A vulnerability in the Linux kernel's Btrfs file system has been addressed. The issue involved an uninitialized value being accessed in the function 'btrfs_clean_tree_block'. This vulnerability arose because a previous commit had incorrectly reordered the initialization of the extent buffer's header generation. As a result, when 'btrfs_clean_tree_block' was called, it accessed a generation field that had not been properly initialized, leading to potential undefined behavior.
Users can upgrade to the latest stable version of the Linux kernel, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 24, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/0a408c6212c16b9a2a1141d3c531247582ef8101 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/89bc41c92d10b905c60f6ec13c9ef664a3555c54 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/a687c2890fe4a2acaac6941fa4097a1264d8f3eb | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/cbddcc4fa3443fe8cfb2ff8e210deb1f6a0eea38 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | >= 4.19, < 4.19.0-rc1 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 10, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 24, 2025 | New CVE Received | kernel.org |
Volerion