scsi: sd: Fix off-by-one error in sd_read_block_characteristics()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
scsi: sd: Fix off-by-one error in sd_read_block_characteristics()
Ff the device returns page 0xb1 with length 8 (happens with qemu v2.x, for example), sd_read_block_characteristics() may attempt an out-of-bounds memory access when accessing the zoned field at offset 8.
From the CVE record · Linux
The Linux kernel’s sd_read_block_characteristics() has an off-by-one error. If a device returns page 0xb1 with length 8, the kernel may access memory out of bounds when reading the zoned field. The input does not specify an attacker model, authentication requirements, or user interaction.
Anyone running the Linux kernel should check whether their version is affected; affected versions were not specified.