scsi: target: core: Fix integer overflow in UNMAP bounds check
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 86d7182985d25900929adce14fffd729cc8c6fb8 · < 51075df70c46e60a9773f2dcd28299e40dac36fb| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
scsi: target: core: Fix integer overflow in UNMAP bounds check
sbc_execute_unmap() checks LBA + range does not exceed the device capacity, but does not guard against LBA + range wrapping around on 64-bit overflow.
Add an overflow check matching the pattern already used for WRITE_SAME in the same file.
From the CVE record · Linux
The Linux kernel SCSI target's UNMAP bounds check does not guard against 64-bit overflow when adding the LBA and range. An UNMAP request could pass the device-capacity check if that addition wraps around; attacker access requirements and user interaction are not specified.
Engineers running the Linux kernel should check their deployments; affected versions are not specified.