drm/msm/gem: prevent integer overflow in msm_ioctl_gem_submit()
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:
drm/msm/gem: prevent integer overflow in msm_ioctl_gem_submit()
The "submit->cmd[i].size" and "submit->cmd[i].offset" variables are u32 values that come from the user via the submit_lookup_cmds() function. This addition could lead to an integer wrapping bug so use size_add() to prevent that.
Patchwork: https://patchwork.freedesktop.org/patch/624696/
From the CVE record · Linux
The Linux kernel’s msm_ioctl_gem_submit() can overflow when adding user-supplied command size and offset values. A local user submitting commands can trigger the overflow; the input does not specify further impact or any required user interaction.
Engineers running Linux kernels with the affected drm/msm/gem code should check their installations; affected versions are not specified.