{"id":"CVE-2026-43169","aliases":["CVE-2026-43169"],"related":[],"kind":"vulnerability","state":"published","title":"drm/buddy: Prevent BUG_ON by validating rounded allocation","summary":"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","summarySource":"cvelist","descriptions":[{"lang":"en","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","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: drm/buddy: Prevenir BUG_ON validando la asignación redondeada Cuando DRM_BUDDY_CONTIGUOUS_ALLOCATION está configurado, el tamaño solicitado se redondea hacia arriba a la siguiente potencia de dos a través de roundup_pow_of_two(). De manera similar, para asignaciones no contiguas con un min_block_size grande, el tamaño se alinea hacia arriba a través de round_up(). Ambas operaciones pueden producir un tamaño redondeado que excede mm  ->  size, lo que posteriormente activa BUG_ON(order > mm  ->  max_order). Escenarios de ejemplo:\n- Asignación CONTIGUA de 9G en memoria VRAM de 10G: roundup_pow_of_two(9G) = 16G mayor que 10G\n- Asignación de 9G con un min_block_size de 8G en memoria VRAM de 10G: round_up(9G, 8G) = 16G mayor que 10G Solucione esto comprobando el tamaño redondeado contra mm  ->  size. Para asignaciones no contiguas o de rango donde size > mm  ->  size es inválido, devolver -EINVAL inmediatamente. Para asignaciones contiguas sin restricciones de rango, permitir que la solicitud pase al mecanismo de reserva (fallback) existente __alloc_contig_try_harder(). Esto asegura que la entrada de usuario inválida devuelva un error o use la ruta de reserva en lugar de activar BUG_ON. v2: (Matt A)\n- Añadir las etiquetas Fixes, Cc stable y Closes para el contexto","source":"nvd"}],"published":"2026-05-06T11:27:45.356Z","modified":"2026-11-11T20:10:00.273Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"0a1844bf0b532d84324453374ad6845f64066c28","fixed":"d764b8dd420098a4d253b8a5b27568c897edb2cf","status":"affected"},{"type":"git","introduced":"0a1844bf0b532d84324453374ad6845f64066c28","fixed":"6236c1cd9fdf433d39ed28b2491ccdfe7ae95061","status":"affected"},{"type":"git","introduced":"0a1844bf0b532d84324453374ad6845f64066c28","fixed":"ecb32c60d8cbed2ee9ce9f343b6aa2f32babc727","status":"affected"},{"type":"git","introduced":"0a1844bf0b532d84324453374ad6845f64066c28","fixed":"5488a29596cdba93a60a79398dc9b69d5bdadf92","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.7","status":"unaffected"},{"type":"semver","introduced":"6.12.75","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.16","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.6","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.7","fixed":"6.12.75"},{"status":"affected","introduced":"6.13","fixed":"6.18.16"},{"status":"affected","introduced":"6.19","fixed":"6.19.6"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/d764b8dd420098a4d253b8a5b27568c897edb2cf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6236c1cd9fdf433d39ed28b2491ccdfe7ae95061","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ecb32c60d8cbed2ee9ce9f343b6aa2f32babc727","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5488a29596cdba93a60a79398dc9b69d5bdadf92","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-06T15:30:18.564Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43169","url":"https://www.cve.org/CVERecord?id=CVE-2026-43169","licence":"CVE Terms of Use","modified":"2026-11-06T15:32:35.218Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43169","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43169","licence":"Public domain","modified":"2026-11-11T20:10:00.273Z"}],"updatedAt":"2026-11-25T22:59:20.711Z","epss":{"score":0.00128,"percentile":0.02636,"date":"2026-12-01T12:00:22.000Z"}}