Direct naar de inhoud
⚡ Kritieke cyberalerts voor jouw sector & systemen — direct in je inbox. Aanmelden →
cybernieuws.nl Cybersecurity en informatiebeveiling nieuws alerts live · 7 min 149 bronnen 1 kritiek 3 vandaag
CVE's Videos Dagbriefing

← Terug naar CVE-database

CVE-2026-43169

MEDIUM · 5.5 CVSS Gepubliceerd:

Beschrijving NL

In de Linux kernel is de volgende kwetsbaarheid verholpen:

drm/buddy: Voorkom BUG_ON door afgeronde toewijzing te valideren

Wanneer DRM_BUDDY_CONTIGUOUS_ALLOCATION is ingesteld, is de gevraagde grootte
afgerond naar de volgende macht van twee via roundup_pow_of_two(). Evenzo geldt voor niet-aaneengesloten toewijzingen met grote min_block_size,
de grootte is uitgelijnd via round_up(). Beide bewerkingen kunnen een
afgeronde maat die groter is dan mm->maat, wat later
BUG_ON(order > mm->max_order). Voorbeeldscenario's:
- 9G AANEENGESLOTEN toewijzing op 10G VRAM-geheugen:
roundup_pow_of_two(9G) = 16G > 10G
- 9G-allocatie met 8G min_block_size op 10G VRAM-geheugen:
round_up(9G, 8G) = 16G > 10G

Los dit op door de afgeronde maat te vergelijken met de mm->maat. Voor
niet-aaneengesloten of bereiktoewijzingen waarbij de grootte > mm-> ongeldig is,
return -EINVAL onmiddellijk. Voor aaneengesloten toewijzingen zonder bereik
beperkingen, laat het verzoek door naar de bestaande
__alloc_contig_try_harder() terugval. Dit zorgt ervoor dat ongeldige gebruikersinvoer een fout retourneert of de terugval gebruikt
pad in plaats van BUG_on. v2: (Matt A)
- Fixes toevoegen, Cc stabiel en tags sluiten voor context

Origineel (Engels) tonen

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

Vendors

Linux

Affected products

Linux Kernel

References