CVE & CISA-KEV Catalog

CVE-2022-50766

UNSCORED

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().

How to fix

Remediation Available
linuxDebian
Fixed in:6.0.3-1CVE-2022-50766
Fixed in:6.0.3-1CVE-2022-50766
Fixed in:6.0.3-1CVE-2022-50766

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3.1 Vector

No CVSS vector data available.

Exploit Intelligence

0.20%probability of exploitation in 30 days
10thpercentile

Low risk: more likely to be exploited than 10% of all known CVEs.

References

Embed a live status badge for CVE-2022-50766
CVE-2022-50766 severity badge

Markdown

[![CVE-2022-50766](https://tridentstack.com/cve/badge/CVE-2022-50766.svg)](https://tridentstack.com/cve/CVE-2022-50766)

HTML

<a href="https://tridentstack.com/cve/CVE-2022-50766"><img src="https://tridentstack.com/cve/badge/CVE-2022-50766.svg" alt="CVE-2022-50766"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-12-29.