CVE-2026-46209CWE-190CWE-787

CVE-2026-46209

High · published May 28, 2026

CVSS v3.1
7.8
EPSS
0%
Percentile
7.1
In the wild
Unconfirmed
What it is

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

drm/gem: Fix inconsistent plane dimension calculation in drm_gem_fb_init_with_funcs()

drm_gem_fb_init_with_funcs() computes sub-sampled plane dimensions

using plain integer division:

unsigned int width = mode_cmd->width / (i ? info->hsub : 1);

unsigned int height = mode_cmd->height / (i ? info->vsub : 1);

However, the ioctl-level framebuffer_check() in drm_framebuffer.c uses

drm_format_info_plane_width/height() which round up dimensions via

DIV_ROUND_UP(). This inconsistency corrupts the subsequent GEM object

size check for certain pixel format and dimension combinations.

For example, with NV12 (vsub=2) and a 1-pixel-tall framebuffer the

GEM size validation path sees height=0 instead of height=1. The

expression (height - 1) then wraps to UINT_MAX as an unsigned int,

causing min_size to overflow and wrap back to a small value. A tiny

GEM object therefore passes the size guard, yet when the GPU accesses

the chroma plane it will read or write memory beyond the object's

bounds.

Fix by replacing the open-coded divisions with drm_format_info_plane_width()

and drm_format_info_plane_height(), which use DIV_ROUND_UP() and match

the calculation already used in framebuffer_check().

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00179 · 7.1th percentile
Weaknesses
CWE-190 · Integer Overflow or Wraparound; CWE-787 · Out-of-bounds Write
Published
2026-05-28T14:16Z
Affected products (8)
ProductVersionsFixed in
linux/linux_kernel≥ 4.14, < 5.10.2585.10.258
linux/linux_kernel≥ 5.11, < 5.15.2095.15.209
linux/linux_kernel≥ 5.16, < 6.1.1756.1.175
linux/linux_kernel≥ 6.2, < 6.6.1406.6.140
linux/linux_kernel≥ 6.7, < 6.12.906.12.90
linux/linux_kernel≥ 6.13, < 6.18.326.18.32
linux/linux_kernel≥ 6.19, < 7.0.97.0.9
linux/linux_kernelall versions—
References (9)
EPSS history
Timeline
  • 28 MAY 09:40Z
    drm/gem: Fix inconsistent plane dimension calculation in drm_gem_fb_init_with_funcs()
    cvelistv5