CVE-2026-43348
mshv_vtl: Fix vmemmap_shift exceeding MAX_FOLIO_ORDER
Description
In the Linux kernel, the following vulnerability has been resolved: mshv_vtl: Fix vmemmap_shift exceeding MAX_FOLIO_ORDER When registering VTL0 memory via MSHV_ADD_VTL0_MEMORY, the kernel computes pgmap->vmemmap_shift as the number of trailing zeros in the OR of start_pfn and last_pfn, intending to use the largest compound page order both endpoints are aligned to. However, this value is not clamped to MAX_FOLIO_ORDER, so a sufficiently aligned range (e.g. physical range [0x800000000000, 0x800080000000), corresponding to start_pfn=0x800000000 with 35 trailing zeros) can produce a shift larger than what memremap_pages() accepts, triggering a WARN and returning -EINVAL: WARNING: ... memremap_pages+0x512/0x650 requested folio size unsupported The MAX_FOLIO_ORDER check was added by commit 646b67d57589 ("mm/memremap: reject unreasonable folio/compound page sizes in memremap_pages()"). Fix this by clamping vmemmap_shift to MAX_FOLIO_ORDER so we always request the largest order the kernel supports, in those cases, rather than an out-of-range value. Also fix the error path to propagate the actual error code from devm_memremap_pages() instead of hard-coding -EFAULT, which was masking the real -EINVAL return.
INFO
Published Date :
May 8, 2026, 2:16 p.m.
Last Modified :
Nov. 11, 2026, 8:10 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | MEDIUM | [email protected] |
Solution
- Apply the kernel patch that clamps vmemmap_shift.
- Ensure error codes are propagated correctly.
- Update the Linux kernel to the patched version.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-43348.
| URL | Resource |
|---|---|
| https://git.kernel.org/stable/c/404cd6bffe17e25e0f94ed2775ffdd6cd10ac3fd | Patch |
| https://git.kernel.org/stable/c/a142ca4b6481e71498712800b20e0c0fcf02843b | Patch |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-43348 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-43348
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-43348 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-43348 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Nov. 11, 2026
Action Type Old Value New Value Added Translation Title: Linux Kernel, Description: En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: mshv_vtl: Solución para vmemmap_shift excediendo MAX_FOLIO_ORDER Al registrar memoria VTL0 a través de MSHV_ADD_VTL0_MEMORY, el kernel calcula pgmap -> vmemmap_shift como el número de ceros finales en el OR de start_pfn y last_pfn, con la intención de usar el orden de página compuesto más grande al que ambos puntos finales están alineados. Sin embargo, este valor no está limitado a MAX_FOLIO_ORDER, por lo que un rango suficientemente alineado (por ejemplo, rango físico [0x 800000000000, 0x 800080000000), correspondiente a start_pfn=0x 800000000 con 35 ceros finales) puede producir un desplazamiento mayor de lo que acepta memremap_pages(), lo que activa una ADVERTENCIA y devuelve -EINVAL: ADVERTENCIA: ... memremap_pages+0x512/0x650 tamaño de folio solicitado no compatible La verificación de MAX_FOLIO_ORDER fue añadida por el commit 646b67d57589 (’mm/memremap: rechazar tamaños de folio/página compuesta irrazonables en memremap_pages()’). Solucione esto limitando vmemmap_shift a MAX_FOLIO_ORDER para que siempre solicitemos el orden más grande que el kernel soporta, en esos casos, en lugar de un valor fuera de rango. También corrija la ruta de error para propagar el código de error real de devm_memremap_pages() en lugar de codificar -EFAULT, lo que estaba enmascarando el retorno real de -EINVAL. -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '7bfe3b8ea6e30437e01fcb8e4f56ef6e4d986d0f', 'lessThan': 'a142ca4b6481e71498712800b20e0c0fcf02843b', 'versionType': 'git'}, {'status': 'affected', 'version': '7bfe3b8ea6e30437e01fcb8e4f56ef6e4d986d0f', 'lessThan': '404cd6bffe17e25e0f94ed2775ffdd6cd10ac3fd', 'versionType': 'git'}], 'programFiles': ['drivers/hv/mshv_vtl_main.c', 'include/uapi/linux/mshv.h'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.19'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.19', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '7.0.2', 'versionType': 'semver', 'lessThanOrEqual': '7.0.*'}, {'status': 'unaffected', 'version': '7.1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['drivers/hv/mshv_vtl_main.c', 'include/uapi/linux/mshv.h'], 'defaultStatus': 'affected'}] -
Initial Analysis by [email protected]
May. 15, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Added CWE NVD-CWE-noinfo Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.19 up to (excluding) 7.0.2 Added Reference Type kernel.org: https://git.kernel.org/stable/c/404cd6bffe17e25e0f94ed2775ffdd6cd10ac3fd Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/a142ca4b6481e71498712800b20e0c0fcf02843b Types: Patch -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
May. 08, 2026
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: mshv_vtl: Fix vmemmap_shift exceeding MAX_FOLIO_ORDER When registering VTL0 memory via MSHV_ADD_VTL0_MEMORY, the kernel computes pgmap->vmemmap_shift as the number of trailing zeros in the OR of start_pfn and last_pfn, intending to use the largest compound page order both endpoints are aligned to. However, this value is not clamped to MAX_FOLIO_ORDER, so a sufficiently aligned range (e.g. physical range [0x800000000000, 0x800080000000), corresponding to start_pfn=0x800000000 with 35 trailing zeros) can produce a shift larger than what memremap_pages() accepts, triggering a WARN and returning -EINVAL: WARNING: ... memremap_pages+0x512/0x650 requested folio size unsupported The MAX_FOLIO_ORDER check was added by commit 646b67d57589 ("mm/memremap: reject unreasonable folio/compound page sizes in memremap_pages()"). Fix this by clamping vmemmap_shift to MAX_FOLIO_ORDER so we always request the largest order the kernel supports, in those cases, rather than an out-of-range value. Also fix the error path to propagate the actual error code from devm_memremap_pages() instead of hard-coding -EFAULT, which was masking the real -EINVAL return. Added Reference https://git.kernel.org/stable/c/404cd6bffe17e25e0f94ed2775ffdd6cd10ac3fd Added Reference https://git.kernel.org/stable/c/a142ca4b6481e71498712800b20e0c0fcf02843b