Description
In the Linux kernel, the following vulnerability has been resolved: zloop: reject mismatched conventional zone files on restore When restoring a zloop device, zloop_init_zone() checks that the size of each conventional zone file matches the configured zone size. The check prints an error and then jumps to out_fput, which releases the zone file and returns the value left in "ret" by the preceding vfs_getattr() call, that is, zero. zloop_ctl_add() therefore treats the zone as initialized and continues with a zone->file pointer that was already released; any I/O to that zone then dereferences it. Return -EINVAL, like the sequential zone path does for the same kind of inconsistency. While at it, print the zone size that is actually compared instead of the zone capacity, which may be smaller and only made the message confusing.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
eb0570c7df23c2f32fe899fcdaf8fca9a5ecd51e to < 802c1a8b503708aca86ba1e180d407ef530dc45eaffectedeb0570c7df23c2f32fe899fcdaf8fca9a5ecd51e to < e8cf9ee52705642317184804acff781c9fd0727eaffectedeb0570c7df23c2f32fe899fcdaf8fca9a5ecd51e to < 09c2e203e0ea8b68e7c9500401fa0ab60baf1a9daffected
Linux Linux
Default version status: affected
6.16affected0 to < 6.16unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc2 to ≤ *unaffected