{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-46209","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-05-13T15:03:33.105Z","datePublished":"2026-05-28T09:40:27.092Z","dateUpdated":"2026-08-05T12:30:30.530Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-08-05T12:30:30.530Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/gem: Fix inconsistent plane dimension calculation in drm_gem_fb_init_with_funcs()\n\ndrm_gem_fb_init_with_funcs() computes sub-sampled plane dimensions\nusing plain integer division:\n\n  unsigned int width  = mode_cmd->width  / (i ? info->hsub : 1);\n  unsigned int height = mode_cmd->height / (i ? info->vsub : 1);\n\nHowever, the ioctl-level framebuffer_check() in drm_framebuffer.c uses\ndrm_format_info_plane_width/height() which round up dimensions via\nDIV_ROUND_UP(). This inconsistency corrupts the subsequent GEM object\nsize check for certain pixel format and dimension combinations.\n\nFor example, with NV12 (vsub=2) and a 1-pixel-tall framebuffer the\nGEM size validation path sees height=0 instead of height=1. The\nexpression (height - 1) then wraps to UINT_MAX as an unsigned int,\ncausing min_size to overflow and wrap back to a small value. A tiny\nGEM object therefore passes the size guard, yet when the GPU accesses\nthe chroma plane it will read or write memory beyond the object's\nbounds.\n\nFix by replacing the open-coded divisions with drm_format_info_plane_width()\nand drm_format_info_plane_height(), which use DIV_ROUND_UP() and match\nthe calculation already used in framebuffer_check()."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - Reached only via the local DRM_IOCTL_MODE_ADDFB2 ioctl on /dev/dri/cardN; there is no network path.\nAC:L - The attacker fully controls pixel format, dimensions, pitch, offset, and GEM object size, so the integer underflow and undersized-object bypass are triggered deterministically.\nPR:L - ADDFB2 carries no DRM_MASTER/root flag, so any local unprivileged user with access to the primary DRM node can create the malformed framebuffer and (as session master on their own VT) drive the OOB access.\nUI:N - No victim interaction is required; the attacker creates and uses the framebuffer entirely on their own.\nS:U - The out-of-bounds access stays within the kernel's own memory authority with no crossing of a security boundary such as a VM or IOMMU domain.\nC:H - GPU access to the undersized chroma plane reads adjacent memory over an attacker-controlled, potentially large span, exposing kernel/GPU-visible memory contents.\nI:H - The same out-of-bounds chroma access can write past the GEM object, corrupting adjacent memory and providing a controllable write primitive.\nA:H - Out-of-bounds reads/writes of GPU-accessible memory readily cause kernel oops/panic, yielding a denial of service."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/drm_gem_framebuffer_helper.c"],"versions":[{"version":"4c3dbb2c312c9fafbac30d98c523b8b1f3455d78","lessThan":"11427ad6c9f0def5ce567982b785da3191946430","status":"affected","versionType":"git"},{"version":"4c3dbb2c312c9fafbac30d98c523b8b1f3455d78","lessThan":"adfc5ba4ef4dd2bca5969f40e8fc7b41fb3902ad","status":"affected","versionType":"git"},{"version":"4c3dbb2c312c9fafbac30d98c523b8b1f3455d78","lessThan":"22922f7dae74409fc4bf0f1142710cb6b8ce8cc2","status":"affected","versionType":"git"},{"version":"4c3dbb2c312c9fafbac30d98c523b8b1f3455d78","lessThan":"6b992591e04f2cce813bcf239b354f375bbf84d3","status":"affected","versionType":"git"},{"version":"4c3dbb2c312c9fafbac30d98c523b8b1f3455d78","lessThan":"1da4ab7189f1064b3b712b388772c008b4d82580","status":"affected","versionType":"git"},{"version":"4c3dbb2c312c9fafbac30d98c523b8b1f3455d78","lessThan":"1a17ea9861e89585361caa8bc231bd22dc6dbe7d","status":"affected","versionType":"git"},{"version":"4c3dbb2c312c9fafbac30d98c523b8b1f3455d78","lessThan":"c5fc49d8470c5ebf3b41607600f277158f159950","status":"affected","versionType":"git"},{"version":"4c3dbb2c312c9fafbac30d98c523b8b1f3455d78","lessThan":"3d4c2268bd7243c3780fe32bf24ff876da272acf","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/drm_gem_framebuffer_helper.c"],"versions":[{"version":"4.14","status":"affected"},{"version":"0","lessThan":"4.14","status":"unaffected","versionType":"semver"},{"version":"5.10.258","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.209","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.175","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.140","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.90","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.32","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.0.9","lessThanOrEqual":"7.0.*","status":"unaffected","versionType":"semver"},{"version":"7.1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"5.10.258"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"5.15.209"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"6.1.175"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"6.6.140"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"6.12.90"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"6.18.32"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"7.0.9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"7.1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/11427ad6c9f0def5ce567982b785da3191946430"},{"url":"https://git.kernel.org/stable/c/adfc5ba4ef4dd2bca5969f40e8fc7b41fb3902ad"},{"url":"https://git.kernel.org/stable/c/22922f7dae74409fc4bf0f1142710cb6b8ce8cc2"},{"url":"https://git.kernel.org/stable/c/6b992591e04f2cce813bcf239b354f375bbf84d3"},{"url":"https://git.kernel.org/stable/c/1da4ab7189f1064b3b712b388772c008b4d82580"},{"url":"https://git.kernel.org/stable/c/1a17ea9861e89585361caa8bc231bd22dc6dbe7d"},{"url":"https://git.kernel.org/stable/c/c5fc49d8470c5ebf3b41607600f277158f159950"},{"url":"https://git.kernel.org/stable/c/3d4c2268bd7243c3780fe32bf24ff876da272acf"}],"title":"drm/gem: Fix inconsistent plane dimension calculation in drm_gem_fb_init_with_funcs()","x_generator":{"engine":"bippy-1.2.0"}}}}