{"id":"CVE-2024-52559","summary":"drm/msm/gem: prevent integer overflow in msm_ioctl_gem_submit()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/msm/gem: prevent integer overflow in msm_ioctl_gem_submit()\n\nThe \"submit-\u003ecmd[i].size\" and \"submit-\u003ecmd[i].offset\" variables are u32\nvalues that come from the user via the submit_lookup_cmds() function.\nThis addition could lead to an integer wrapping bug so use size_add()\nto prevent that.\n\nPatchwork: https://patchwork.freedesktop.org/patch/624696/","modified":"2026-04-02T12:22:04.082607Z","published":"2025-02-27T02:18:07.106Z","related":["SUSE-SU-2025:01600-1","SUSE-SU-2025:01919-1","SUSE-SU-2025:1177-1","SUSE-SU-2025:1178-1","SUSE-SU-2025:1180-1","SUSE-SU-2025:20190-1","SUSE-SU-2025:20192-1","SUSE-SU-2025:20260-1","SUSE-SU-2025:20270-1","USN-7521-2"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/52xxx/CVE-2024-52559.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2b99b2c4621d13bd4374ef384e8f1fc188d0a5df"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2f1845e46c41ed500789d53dc45b383b7745c96c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3a47f4b439beb98e955d501c609dfd12b7836d61"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e43a0f1327a1ee70754f8a0de6e0262cfa3e0b87"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/52xxx/CVE-2024-52559.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-52559"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"198725337ef1f73b73e7dc953c6ffb0799f26ffe"},{"fixed":"2b99b2c4621d13bd4374ef384e8f1fc188d0a5df"},{"fixed":"2f1845e46c41ed500789d53dc45b383b7745c96c"},{"fixed":"e43a0f1327a1ee70754f8a0de6e0262cfa3e0b87"},{"fixed":"3a47f4b439beb98e955d501c609dfd12b7836d61"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-52559.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}