CVE-2022-49833

Summary

In the Linux kernel, the following vulnerability has been resolved:

btrfs: zoned: clone zoned device info when cloning a device

When cloning a btrfs_device, we're not cloning the associated btrfs_zoned_device_info structure of the device in case of a zoned filesystem.

Later on this leads to a NULL pointer dereference when accessing the device's zone_info for instance when setting a zone as active.

This was uncovered by fstests' testcase btrfs/161.

Affected Software

VendorProductVersion RangeStatus
LinuxLinux5b316468983dfa9473ff0f1c42e4e30b4c267141 < ad88cabcec942c033f980cd1e28d56ecdaf5f3b8affected
LinuxLinux5b316468983dfa9473ff0f1c42e4e30b4c267141 < 21e61ec6d0bb786818490e926aa9aeb4de95ad0daffected
LinuxLinux5.11affected
LinuxLinux0 < 5.11unaffected
LinuxLinux6.0.9 <= 6.0.*unaffected
LinuxLinux6.1 <= *unaffected

Weaknesses

References