dm-ioctl: fix a possible overflow in list_version_get_info
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < 76c6f845dc0c614304a6e6ee619b552f97cf24b3| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
dm-ioctl: fix a possible overflow in list_version_get_info
sizeof(tt->version) is 12 bytes, but the code writes 16 bytes into the output buffer - info->vers->version[0], info->vers->version[1], info->vers->version[2] and info->vers->next. This can cause buffer overflow.
Fix this buffer overflow by replacing "sizeof(tt->version)" with "sizeof(struct dm_target_versions)".
From the CVE record · Linux
The Linux kernel's dm-ioctl list_version_get_info function writes 16 bytes into an output buffer where only 12 bytes were accounted for, causing a possible buffer overflow. The input does not specify how an attacker could trigger this or whether access, authentication, or user interaction is required.
Engineers running the Linux kernel should check their versions for this issue; affected versions are not specified.