{"id":"CVE-2022-50221","published":"2025-06-18T11:03:56Z","modified":"2026-08-05T08:57:46Z","title":"drm/fb-helper: Fix out-of-bounds access","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/fb-helper: Fix out-of-bounds access\n\nClip memory range to screen-buffer size to avoid out-of-bounds access\nin fbdev deferred I/O's damage handling.\n\nFbdev's deferred I/O can only track pages. From the range of pages, the\ndamage handler computes the clipping rectangle for the display update.\nIf the fbdev screen buffer ends near the beginning of a page, that page\ncould contain more scanlines. The damage handler would then track these\nnon-existing scanlines as dirty and provoke an out-of-bounds access\nduring the screen update. Hence, clip the maximum memory range to the\nsize of the screen buffer.\n\nWhile at it, rename the variables min/max to min_off/max_off in\ndrm_fb_helper_deferred_io(). This avoids confusion with the macros of\nthe same name.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00228,"percentile":0.13655,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/9c49ac792c639dbec0728b513329a32461f72253","tags":[]},{"url":"https://git.kernel.org/stable/c/ae25885bdf59fde40726863c57fd20e4a0642183","tags":[]}],"priority":{"score":8.2,"factors":[{"name":"EPSS percentile","points":2.73},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 67b723f5b74254d27962b1b59bddfee1584575ff, < 9c49ac792c639dbec0728b513329a32461f72253",">= 67b723f5b74254d27962b1b59bddfee1584575ff, < ae25885bdf59fde40726863c57fd20e4a0642183"]},{"vendor":"Linux","product":"Linux","versions":["5.18"]}],"euvd":{"id":"EUVD-2022-55481","exploited":false,"provenance":"source"}}