btrfs: restore active device pointers after failed sprout
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel e127ac29a52134d0f4cba39d38e4b375deb3d1aa, Kernel 0a0ee38ad6324ac1603079bb785f784191576bd5, Kernel 2ee5c4bc11007c51f63f0c1be5d3f07f2b404ff7 and 9 more.
In the Linux kernel, the following vulnerability has been resolved: btrfs: restore active device pointers after failed sprout btrfs_init_new_device() switches latest_dev and possibly s_bdev from the seed device to the new sprout device before creating the first writable chunks. If chunk creation or the subsequent sprout setup fails, the error path releases the new device without switching those pointers back. btrfs_show_devname() can then dereference the freed latest_dev and crash. Restore the active device pointers to the latest seed device before removing and releasing the failed sprout device.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=b7cb29e666fe79dda5dbe5f57fb7c92413bf161c <e127ac29a52134d0f4cba39d38e4b375deb3d1aa, >=b7cb29e666fe79dda5dbe5f57fb7c92413bf161c <0a0ee38ad6324ac1603079bb785f784191576bd5, >=b7cb29e666fe79dda5dbe5f57fb7c92413bf161c <2ee5c4bc11007c51f63f0c1be5d3f07f2b404ff7, >=b7cb29e666fe79dda5dbe5f57fb7c92413bf161c <49179f13c04735c55fd0f43b03696c015b067137, >=b7cb29e666fe79dda5dbe5f57fb7c92413bf161c <b79b4b29003690acfade8241998fc0104ef9c84c, >=b7cb29e666fe79dda5dbe5f57fb7c92413bf161c <e0b54613aabeb8e9da597f23b90c6a03d0981986, =5.16, >=5.15.11 <5.15.222, >=a6e7e218a4d6488d56727a7d9aee1b7e78c0c485 <46863a9f93186e620c70584f91c8d5d95da83eff | e127ac29a52134d0f4cba39d38e4b375deb3d1aa, 0a0ee38ad6324ac1603079bb785f784191576bd5, 2ee5c4bc11007c51f63f0c1be5d3f07f2b404ff7, 49179f13c04735c55fd0f43b03696c015b067137, b79b4b29003690acfade8241998fc0104ef9c84c, e0b54613aabeb8e9da597f23b90c6a03d0981986, 5.15.222, 46863a9f93186e620c70584f91c8d5d95da83eff |
| linux-kernel: Kernel | >=5.16.0 <6.6.158, >=6.13.0 <7.2.7, >=6.2.0 <6.12.111, >=6.7.0 <6.18.53, <5.15.222 | 6.6.158, 7.2.7, 6.12.111, 6.18.53, 5.15.222 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket