{"id":"CVE-2026-46209","revision":"0b2f11a055dc46959315a200055cf241","records":[{"revision":"0b2f11a055dc46959315a200055cf241","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-46209","aliases":[],"title":"drm/gem: Fix inconsistent plane dimension calculation in drm_gem_fb_init_with_funcs()","description":"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().","state":0,"publishedAt":"2026-05-28T09:40:27.092+00:00","modifiedAt":"2026-10-19T19:36:55.238+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/gpu/drm/drm_gem_framebuffer_helper.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"4c3dbb2c312c9fafbac30d98c523b8b1f3455d78\",\n                            \"lessThan\": \"11427ad6c9f0def5ce567982b785da3191946430\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"4c3dbb2c312c9fafbac30d98c523b8b1f3455d78\",\n                            \"lessThan\": \"adfc5ba4ef4dd2bca5969f40e8fc7b41fb3902ad\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"4c3dbb2c312c9fafbac30d98c523b8b1f3455d78\",\n                            \"lessThan\": \"22922f7dae74409fc4bf0f1142710cb6b8ce8cc2\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"4c3dbb2c312c9fafbac30d98c523b8b1f3455d78\",\n                            \"lessThan\": \"6b992591e04f2cce813bcf239b354f375bbf84d3\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"4c3dbb2c312c9fafbac30d98c523b8b1f3455d78\",\n                            \"lessThan\": \"1da4ab7189f1064b3b712b388772c008b4d82580\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"4c3dbb2c312c9fafbac30d98c523b8b1f3455d78\",\n                            \"lessThan\": \"1a17ea9861e89585361caa8bc231bd22dc6dbe7d\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"4c3dbb2c312c9fafbac30d98c523b8b1f3455d78\",\n                            \"lessThan\": \"c5fc49d8470c5ebf3b41607600f277158f159950\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"4c3dbb2c312c9fafbac30d98c523b8b1f3455d78\",\n                            \"lessThan\": \"3d4c2268bd7243c3780fe32bf24ff876da272acf\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/gpu/drm/drm_gem_framebuffer_helper.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"4.14\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"4.14\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"5.10.258\",\n                            \"lessThanOrEqual\": \"5.10.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"5.15.209\",\n                            \"lessThanOrEqual\": \"5.15.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.1.175\",\n                            \"lessThanOrEqual\": \"6.1.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.6.140\",\n                            \"lessThanOrEqual\": \"6.6.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.12.90\",\n                            \"lessThanOrEqual\": \"6.12.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.18.32\",\n                            \"lessThanOrEqual\": \"6.18.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.0.9\",\n                            \"lessThanOrEqual\": \"7.0.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.1\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"severity":"HIGH"}],"references":["https://git.kernel.org/stable/c/11427ad6c9f0def5ce567982b785da3191946430","https://git.kernel.org/stable/c/adfc5ba4ef4dd2bca5969f40e8fc7b41fb3902ad","https://git.kernel.org/stable/c/22922f7dae74409fc4bf0f1142710cb6b8ce8cc2","https://git.kernel.org/stable/c/6b992591e04f2cce813bcf239b354f375bbf84d3","https://git.kernel.org/stable/c/1da4ab7189f1064b3b712b388772c008b4d82580","https://git.kernel.org/stable/c/1a17ea9861e89585361caa8bc231bd22dc6dbe7d","https://git.kernel.org/stable/c/c5fc49d8470c5ebf3b41607600f277158f159950","https://git.kernel.org/stable/c/3d4c2268bd7243c3780fe32bf24ff876da272acf"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-46209","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-46209","identifiers":["CVE-2026-46209"]},"retained":false,"historicalAffected":[]}],"coverage":[]}