mm/hugetlb: fix early boot crash on parameters without '=' separator
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.277.0.47.1In 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.
From the CVE record · Linux
The Linux kernel can crash during early boot if hugepages, hugepagesz, or default_hugepagesz appears on the kernel command line without an '=' separator. This requires the malformed parameter to be present on the boot command line; the input does not specify an authentication requirement or user interaction.
Engineers running Linux kernels with these hugepage boot parameters should check their configurations; affected versions are not specified.