# CVE-2022-50221: drm/fb-helper: Fix out-of-bounds access

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2025-06-18T11:03:56.096Z
- Modified: 2026-08-05T08:57:46.137Z
- Weaknesses: CWE-125
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

drm/fb-helper: Fix out-of-bounds access

Clip memory range to screen-buffer size to avoid out-of-bounds access
in fbdev deferred I/O's damage handling.

Fbdev's deferred I/O can only track pages. From the range of pages, the
damage handler computes the clipping rectangle for the display update.
If the fbdev screen buffer ends near the beginning of a page, that page
could contain more scanlines. The damage handler would then track these
non-existing scanlines as dirty and provoke an out-of-bounds access
during the screen update. Hence, clip the maximum memory range to the
size of the screen buffer.

While at it, rename the variables min/max to min_off/max_off in
drm_fb_helper_deferred_io(). This avoids confusion with the macros of
the same name.

(As written by CVE List.)

## Affected

- Linux Linux: from 67b723f5b74254d27962b1b59bddfee1584575ff before 9c49ac792c639dbec0728b513329a32461f72253; from 67b723f5b74254d27962b1b59bddfee1584575ff before ae25885bdf59fde40726863c57fd20e4a0642183; 5.18 (not affected: before 5.18; from 5.19.2 up to 5.19.*; from 6.0 up to *)
- linux linux_kernel: from 5.18 before 5.19.2

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/9c49ac792c639dbec0728b513329a32461f72253> (patch)
- <https://git.kernel.org/stable/c/ae25885bdf59fde40726863c57fd20e4a0642183> (patch)

## Sources

- CVE List: [CVE-2022-50221](https://www.cve.org/CVERecord?id=CVE-2022-50221), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2022-50221](https://nvd.nist.gov/vuln/detail/CVE-2022-50221), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2022-50221 · Whole record: https://cve.day/CVE-2022-50221.json · Rebuilt by cve.day 2026-11-25T22:58:21.111Z
