CVE-2026-43169

drm/buddy: Prevent BUG_ON by validating rounded allocation

State
Published
Severity
Not scored
Published
May 6, 2026
Updated
May 11, 2026
Reserved
May 1, 2026

Read the record on cve.org

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

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 0a1844bf0b532d84324453374ad6845f64066c28 to before d764b8dd420098a4d253b8a5b27568c897edb2cfAffected
  • 0a1844bf0b532d84324453374ad6845f64066c28 to before 6236c1cd9fdf433d39ed28b2491ccdfe7ae95061Affected
  • 0a1844bf0b532d84324453374ad6845f64066c28 to before ecb32c60d8cbed2ee9ce9f343b6aa2f32babc727Affected
  • 0a1844bf0b532d84324453374ad6845f64066c28 to before 5488a29596cdba93a60a79398dc9b69d5bdadf92Affected
LinuxLinux
  • 6.7Affected
  • before 6.7Not affected
  • 6.12.75 through 6.12.*Not affected
  • 6.18.16 through 6.18.*Not affected
  • 6.19.6 through 6.19.*Not affected
  • 7.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.