Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 43F4F423154 for ; Wed, 6 May 2026 11:30:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778067050; cv=none; b=Jn4qk+XpFqcSTI88xfih0ToG4q90EcdHmoFeynHR+O2oWgACBS6A3zt3J5yExZvusOeUNJs0OTCHt+c6WwWcXWwKC5MRHp4GDqZ5LiEYPJB7SaeYOrgmDHkN6ceG88PPjzWRly9uTY9UGZptcLrBcKJsL0aUrnE24DBSL68Q8D4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778067050; c=relaxed/simple; bh=lSi77XHawsgL2PkPoZamePYctgcs1rktvDFQVk/WRS4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ktvXtiixyahc66Nxq2dbmj5NV50OxyUHhVTTUmZAzFLcs6TL6ZQiakTUKyiqLF8u2rvTDjaGTh2bGoZUK5A5Ea5BowWp2Jgg1YBXw+HoudKoZXLTSBX5Zi5/aW5quZbAfm6YBKx/eTcIiHeT871HIqhsbh6PWJxAZcxzlzoqsgo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=chs8LZKz; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="chs8LZKz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CDF49C2BCB8; Wed, 6 May 2026 11:30:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778067050; bh=lSi77XHawsgL2PkPoZamePYctgcs1rktvDFQVk/WRS4=; h=From:To:Cc:Subject:Date:Reply-To:From; b=chs8LZKzlHQe7Z19d5qnR+Z7VxKiUAMk6LxHaK8GbwllQV3rUngKlUAXHu2fY0ulB eiHUhS7RLY5mEdWtLjcn3eMKH7Rsvk2oJAhUulYCI3oco575O6Fao3/ekwsiJzMty8 196bLhXZbzNrzzh0cJmZpvKlh3XXnTEuRUHgLEos= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43169: drm/buddy: Prevent BUG_ON by validating rounded allocation Date: Wed, 6 May 2026 13:28:05 +0200 Message-ID: <2026050634-CVE-2026-43169-0e63@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3264; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=4iAH0ZW2IhwWZ4ayG8u/hY4D6Ip9Kf3k9Hna1rdn7LU=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm/VZcLtKVsZkzp65c4aD2/RXv2yezQaA4L1see52/we tfnXRfuiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgImcsmCYX/Ymd+GmX2oJz/X0 0rcKHCpN05nhxjA/d+6VK7Nf1ytslgpf+/3ijeR2dpFIAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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 The Linux kernel CVE team has assigned CVE-2026-43169 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit 0a1844bf0b532d84324453374ad6845f64066c28 and fixed in 6.12.75 with commit d764b8dd420098a4d253b8a5b27568c897edb2cf Issue introduced in 6.7 with commit 0a1844bf0b532d84324453374ad6845f64066c28 and fixed in 6.18.16 with commit 6236c1cd9fdf433d39ed28b2491ccdfe7ae95061 Issue introduced in 6.7 with commit 0a1844bf0b532d84324453374ad6845f64066c28 and fixed in 6.19.6 with commit ecb32c60d8cbed2ee9ce9f343b6aa2f32babc727 Issue introduced in 6.7 with commit 0a1844bf0b532d84324453374ad6845f64066c28 and fixed in 7.0 with commit 5488a29596cdba93a60a79398dc9b69d5bdadf92 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-43169 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/gpu/drm/drm_buddy.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/d764b8dd420098a4d253b8a5b27568c897edb2cf https://git.kernel.org/stable/c/6236c1cd9fdf433d39ed28b2491ccdfe7ae95061 https://git.kernel.org/stable/c/ecb32c60d8cbed2ee9ce9f343b6aa2f32babc727 https://git.kernel.org/stable/c/5488a29596cdba93a60a79398dc9b69d5bdadf92