CVE-2026-46284: mm/hugetlb: fix early boot crash on parameters without '=' separator
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
mm/hugetlb: fix early boot crash on parameters without '=' separator
If hugepages, hugepagesz, or default_hugepagesz are specified on the kernel command line without the '=' separator, early parameter parsing passes NULL to hugetlb_add_param(), which dereferences it in strlen() and can crash the system during early boot.
Reject NULL values in hugetlb_add_param() and return -EINVAL instead.
The Linux kernel CVE team has assigned CVE-2026-46284 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.15 with commit 5b47c02967ab770aa7661c8863a21b2fd59e35ff and fixed in 6.18.27 with commit 2774bcf714739cc6bb86f8812167bb9fbda70f6a Issue introduced in 6.15 with commit 5b47c02967ab770aa7661c8863a21b2fd59e35ff and fixed in 7.0.4 with commit 357c6d084b6137ae640209c5bfd01180f985c015 Issue introduced in 6.15 with commit 5b47c02967ab770aa7661c8863a21b2fd59e35ff and fixed in 7.1-rc1 with commit c45b354911d01565156e38d7f6bc07edb51fc34c
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-46284
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:
mm/hugetlb.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/2774bcf714739cc6bb86f8812167bb9fbda70f6a https://git.kernel.org/stable/c/357c6d084b6137ae640209c5bfd01180f985c015 https://git.kernel.org/stable/c/c45b354911d01565156e38d7f6bc07edb51fc34c