btrfs: zoned: clone zoned device info when cloning a device
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel does not copy zoned device information when cloning a btrfs device on a zoned filesystem. A later access to that information, such as setting a zone active, can cause a NULL pointer dereference. The input does not establish whether an attacker can trigger this or what access would be required.
Operators running the Linux kernel with btrfs zoned filesystems should check their installations; affected versions are not specified.