CVE-2022-50766
publishedbtrfs: set generation before calling btrfs_clean_tree_block in btrfs_init_new_buffer
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxbc877d285ca3dba24c52406946a4a69847cc7422 to < 0a408c6212c16b9a2a1141d3c531247582ef8101 · bc877d285ca3dba24c52406946a4a69847cc7422 to < a687c2890fe4a2acaac6941fa4097a1264d8f3eb · bc877d285ca3dba24c52406946a4a69847cc7422 to < 89bc41c92d10b905c60f6ec13c9ef664a3555c54 · bc877d285ca3dba24c52406946a4a69847cc7422 to < cbddcc4fa3443fe8cfb2ff8e210deb1f6a0eea38 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.19 (affected) · 0 to < 4.19 (unaffected · semver) · 5.15.75 through 5.15.* (unaffected · semver) · 5.19.17 through 5.19.* (unaffected · semver) · 6.0.3 through 6.0.* (unaffected · semver) · 6.1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected; No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.15-2025-090 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | kernelaarch64 | Listed in advisory | Not stated | ALAS2KERNEL-5.15-2025-090 |
| Amazon Linux | AL2 | kerneli686 | Listed in advisory | Not stated | ALAS2KERNEL-5.15-2025-090 |
| Amazon Linux | AL2 | kernelsrc | Listed in advisory | Not stated | ALAS2KERNEL-5.15-2025-090 |
Show 1 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2 | kernelx86_64 | Listed in advisory | Not stated | ALAS2KERNEL-5.15-2025-090 |
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().
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | bc877d285ca3dba24c52406946a4a69847cc7422 to < 0a408c6212c16b9a2a1141d3c531247582ef8101 (affected · git)bc877d285ca3dba24c52406946a4a69847cc7422 to < a687c2890fe4a2acaac6941fa4097a1264d8f3eb (affected · git)bc877d285ca3dba24c52406946a4a69847cc7422 to < 89bc41c92d10b905c60f6ec13c9ef664a3555c54 (affected · git)bc877d285ca3dba24c52406946a4a69847cc7422 to < cbddcc4fa3443fe8cfb2ff8e210deb1f6a0eea38 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.19 (affected)0 to < 4.19 (unaffected · semver)5.15.75 through 5.15.* (unaffected · semver)5.19.17 through 5.19.* (unaffected · semver)6.0.3 through 6.0.* (unaffected · semver)6.1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
4Provider assertions
1Linux · cna
btrfs: set generation before calling btrfs_clean_tree_block in btrfs_init_new_buffer
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 7a428fcc2b3ce21426fb4a071988efce2ceb2cf9dbfc719ee82783e28f720025
- Ingested
- 23 Sep 2026, 08:04:58 UTC
- Source record
- Official CVE record