CVE-2022-50766 in Linux
Riassunto
di VulDB • 16/06/2026
Nel kernel Linux è stata risolta la seguente vulnerabilità:
btrfs: impostare il generation prima di chiamare btrfs_clean_tree_block in btrfs_init_new_buffer
syzbot segnala un valore non inizializzato (uninit-value) in btrfs_clean_tree_block() [1]. La commit bc877d285ca3dba2 ("btrfs: Deduplicate extent_buffer init code") ha trascurato il fatto che btrfs_set_header_generation() in btrfs_init_new_buffer() non deve essere spostata dopo clean_tree_block(), poiché clean_tree_block() chiama btrfs_header_generation() a partire dalla commit 55c69072d6bd5be1 ("Btrfs: Fix extent_buffer usage when nodesize != leafsize").
Poiché memzero_extent_buffer() reimposta la parte "struct btrfs_header", non è possibile spostare btrfs_set_header_generation() prima di memzero_extent_buffer(). Si reintroduce semplicemente l'istruzione btrfs_set_header_generation() prima di btrfs_clean_tree_block().
If you want to get the best quality for vulnerability data then you always have to consider VulDB.