| From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2024-52559: drm/msm/gem: prevent integer overflow in msm_ioctl_gem_submit() |
| |
| Description |
| =========== |
| |
| 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/ |
| |
| The Linux kernel CVE team has assigned CVE-2024-52559 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 3.12 with commit 198725337ef1f73b73e7dc953c6ffb0799f26ffe and fixed in 6.6.80 with commit 2b99b2c4621d13bd4374ef384e8f1fc188d0a5df |
| Issue introduced in 3.12 with commit 198725337ef1f73b73e7dc953c6ffb0799f26ffe and fixed in 6.12.16 with commit 2f1845e46c41ed500789d53dc45b383b7745c96c |
| Issue introduced in 3.12 with commit 198725337ef1f73b73e7dc953c6ffb0799f26ffe and fixed in 6.13.4 with commit e43a0f1327a1ee70754f8a0de6e0262cfa3e0b87 |
| Issue introduced in 3.12 with commit 198725337ef1f73b73e7dc953c6ffb0799f26ffe and fixed in 6.14 with commit 3a47f4b439beb98e955d501c609dfd12b7836d61 |
| |
| Please see https://www.kernel.org for a full list of currently supported |
| kernel versions by the kernel community. |
| |
| Unaffected versions might change over time as fixes are backported to |
| older supported kernel versions. The official CVE entry at |
| https://cve.org/CVERecord/?id=CVE-2024-52559 |
| will be updated if fixes are backported, please check that for the most |
| up to date information about this issue. |
| |
| |
| Affected files |
| ============== |
| |
| The file(s) affected by this issue are: |
| drivers/gpu/drm/msm/msm_gem_submit.c |
| |
| |
| Mitigation |
| ========== |
| |
| The Linux kernel CVE team recommends that you update to the latest |
| stable kernel version for this, and many other bugfixes. Individual |
| changes are never tested alone, but rather are part of a larger kernel |
| release. Cherry-picking individual commits is not recommended or |
| supported by the Linux kernel community at all. If however, updating to |
| the latest release is impossible, the individual changes to resolve this |
| issue can be found at these commits: |
| https://git.kernel.org/stable/c/2b99b2c4621d13bd4374ef384e8f1fc188d0a5df |
| https://git.kernel.org/stable/c/2f1845e46c41ed500789d53dc45b383b7745c96c |
| https://git.kernel.org/stable/c/e43a0f1327a1ee70754f8a0de6e0262cfa3e0b87 |
| https://git.kernel.org/stable/c/3a47f4b439beb98e955d501c609dfd12b7836d61 |