drm/msm/gem: prevent integer overflow in msm_ioctl_gem_submit() (Linux Linux)

CVE-2024-52559
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.25 % · percentile 16 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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/

Weaknesses (CWE)

  • CWE-190 — Integer Overflow or Wraparound

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 198725337ef1f73b73e7dc953c6ffb0799f26ffe < e6a1565f5edacc37a82f12810566b8f6d73c33e5 ; affected 198725337ef1f73b73e7dc953c6ffb0799f26ffe < 2b99b2c4621d13bd4374ef384e8f1fc188d0a5df ; affected 198725337ef1f73b73e7dc953c6ffb0799f26ffe < 2f1845e46c41ed500789d53dc45b383b7745c96c ; affected 198725337ef1f73b73e7dc953c6ffb0799f26ffe < e43a0f1327a1ee70754f8a0de6e0262cfa3e0b87 ; affected 198725337ef1f73b73e7dc953c6ffb0799f26ffe < 3a47f4b439beb98e955d501c609dfd12b7836d61
Linux · Linuxaffected 3.12 ; unaffected 0 < 3.12 ; unaffected 6.1.191 ≤ 6.1.* ; unaffected 6.6.80 ≤ 6.6.* ; unaffected 6.12.16 ≤ 6.12.* ; unaffected 6.13.4 ≤ 6.13.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD