{"id":"CVE-2026-43169","published":"2026-05-06T11:27:45Z","modified":"2026-11-06T15:32:35Z","title":"drm/buddy: Prevent BUG_ON by validating rounded allocation","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/buddy: Prevent BUG_ON by validating rounded allocation\n\nWhen DRM_BUDDY_CONTIGUOUS_ALLOCATION is set, the requested size is\nrounded up to the next power-of-two via roundup_pow_of_two().\nSimilarly, for non-contiguous allocations with large min_block_size,\nthe size is aligned up via round_up(). Both operations can produce a\nrounded size that exceeds mm->size, which later triggers\nBUG_ON(order > mm->max_order).\n\nExample scenarios:\n- 9G CONTIGUOUS allocation on 10G VRAM memory:\n  roundup_pow_of_two(9G) = 16G > 10G\n- 9G allocation with 8G min_block_size on 10G VRAM memory:\n  round_up(9G, 8G) = 16G > 10G\n\nFix this by checking the rounded size against mm->size. For\nnon-contiguous or range allocations where size > mm->size is invalid,\nreturn -EINVAL immediately. For contiguous allocations without range\nrestrictions, allow the request to fall through to the existing\n__alloc_contig_try_harder() fallback.\n\nThis ensures invalid user input returns an error or uses the fallback\npath instead of hitting BUG_ON.\n\nv2: (Matt A)\n- Add Fixes, Cc stable, and Closes tags for context","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00162,"percentile":0.02857,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/d764b8dd420098a4d253b8a5b27568c897edb2cf","tags":[]},{"url":"https://git.kernel.org/stable/c/6236c1cd9fdf433d39ed28b2491ccdfe7ae95061","tags":[]},{"url":"https://git.kernel.org/stable/c/ecb32c60d8cbed2ee9ce9f343b6aa2f32babc727","tags":[]},{"url":"https://git.kernel.org/stable/c/5488a29596cdba93a60a79398dc9b69d5bdadf92","tags":[]}],"priority":{"score":0.6,"factors":[{"name":"EPSS percentile","points":0.57}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 0a1844bf0b532d84324453374ad6845f64066c28, < d764b8dd420098a4d253b8a5b27568c897edb2cf",">= 0a1844bf0b532d84324453374ad6845f64066c28, < 6236c1cd9fdf433d39ed28b2491ccdfe7ae95061",">= 0a1844bf0b532d84324453374ad6845f64066c28, < ecb32c60d8cbed2ee9ce9f343b6aa2f32babc727",">= 0a1844bf0b532d84324453374ad6845f64066c28, < 5488a29596cdba93a60a79398dc9b69d5bdadf92"]},{"vendor":"Linux","product":"Linux","versions":["6.7"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-06T15:30:18.564338Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-27732","exploited":false,"provenance":"source"}}