CVE-2026-46209

Source
https://cve.org/CVERecord?id=CVE-2026-46209
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-46209.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-46209
Downstream
Related
Published
2026-05-28T09:40:27.092Z
Modified
2026-06-05T18:29:30.114387946Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
drm/gem: Fix inconsistent plane dimension calculation in drm_gem_fb_init_with_funcs()
Details

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

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

drmgemfbinitwith_funcs() computes sub-sampled plane dimensions using plain integer division:

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

However, the ioctl-level framebuffercheck() in drmframebuffer.c uses drmformatinfoplanewidth/height() which round up dimensions via DIVROUNDUP(). 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 UINTMAX as an unsigned int, causing minsize 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 drmformatinfoplanewidth() and drmformatinfoplaneheight(), which use DIVROUNDUP() and match the calculation already used in framebuffer_check().

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46209.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / 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
4c3dbb2c312c9fafbac30d98c523b8b1f3455d78
Fixed
11427ad6c9f0def5ce567982b785da3191946430
Fixed
adfc5ba4ef4dd2bca5969f40e8fc7b41fb3902ad
Fixed
22922f7dae74409fc4bf0f1142710cb6b8ce8cc2
Fixed
6b992591e04f2cce813bcf239b354f375bbf84d3
Fixed
1da4ab7189f1064b3b712b388772c008b4d82580
Fixed
1a17ea9861e89585361caa8bc231bd22dc6dbe7d
Fixed
c5fc49d8470c5ebf3b41607600f277158f159950
Fixed
3d4c2268bd7243c3780fe32bf24ff876da272acf

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-46209.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.14.0
Fixed
5.10.258
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.209
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.175
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.140
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.90
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.32
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.0.9

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-46209.json"