CVE-2026-43169
JSON

5.5medium

drm/buddy: Prevent BUG_ON by validating rounded allocation

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.13% (higher than 2% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: drm/buddy: Prevent BUG_ON by validating rounded allocation When DRM_BUDDY_CONTIGUOUS_ALLOCATION is set, the requested size is rounded up to the next power-of-two via roundup_pow_of_two(). Similarly, for non-contiguous allocations with large min_block_size, the size is aligned up via round_up(). Both operations can produce a rounded size that exceeds mm->size, which later triggers BUG_ON(order > mm->max_order). Example scenarios: - 9G CONTIGUOUS allocation on 10G VRAM memory: roundup_pow_of_two(9G) = 16G > 10G - 9G allocation with 8G min_block_size on 10G VRAM memory: round_up(9G, 8G) = 16G > 10G Fix this by checking the rounded size against mm->size. For non-contiguous or range allocations where size > mm->size is invalid, return -EINVAL immediately. For contiguous allocations without range restrictions, allow the request to fall through to the existing __alloc_contig_try_harder() fallback. This ensures invalid user input returns an error or uses the fallback path instead of hitting BUG_ON. v2: (Matt A) - Add Fixes, Cc stable, and Closes tags for context

Affected

Product or packageVersionsReported by
Linux Linuxfrom 0a1844bf0b532d84324453374ad6845f64066c28 before d764b8dd420098a4d253b8a5b27568c897edb2cf, from 0a1844bf0b532d84324453374ad6845f64066c28 before 6236c1cd9fdf433d39ed28b2491ccdfe7ae95061, from 0a1844bf0b532d84324453374ad6845f64066c28 before ecb32c60d8cbed2ee9ce9f343b6aa2f32babc727, from 0a1844bf0b532d84324453374ad6845f64066c28 before 5488a29596cdba93a60a79398dc9b69d5bdadf92, 6.7
Not affected: before 6.7, from 6.12.75 up to 6.12.*, from 6.18.16 up to 6.18.*, from 6.19.6 up to 6.19.*, from 7.0 up to *
CVE List
linux linux_kernelfrom 6.7 before 6.12.75, from 6.13 before 6.18.16, from 6.19 before 6.19.6NVD

Classification

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: drm/buddy: Prevent BUG_ON by validating rounded allocation When DRM_BUDDY_CONTIGUOUS_ALLOCATION is set, the requested size is rounded up to the next power-of-two via roundup_pow_of_two(). Similarly, for non-contiguous allocations with large min_block_size, the size is aligned up via round_up(). Both operations can produce a rounded size that exceeds mm->size, which later triggers BUG_ON(order > mm->max_order). Example scenarios: - 9G CONTIGUOUS allocation on 10G VRAM memory: roundup_pow_of_two(9G) = 16G > 10G - 9G allocation with 8G min_block_size on 10G VRAM memory: round_up(9G, 8G) = 16G > 10G Fix this by checking the rounded size against mm->size. For non-contiguous or range allocations where size > mm->size is invalid, return -EINVAL immediately. For contiguous allocations without range restrictions, allow the request to fall through to the existing __alloc_contig_try_harder() fallback. This ensures invalid user input returns an error or uses the fallback path instead of hitting BUG_ON. v2: (Matt A) - Add Fixes, Cc stable, and Closes tags for context

NVD (es)

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: - Asignación CONTIGUA de 9G en memoria VRAM de 10G: roundup_pow_of_two(9G) = 16G mayor que 10G - 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) - Añadir las etiquetas Fixes, Cc stable y Closes para el contexto

References

Sources

SourceRecordLicence
CVE ListCVE-2026-43169 changed 2026-11-06CVE Terms of Use
NVDCVE-2026-43169 changed 2026-11-11Public domain