CVE-2026-43348: mshv_vtl: Fix vmemmap_shift exceeding MAX_FOLIO_ORDER

Published May 8, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

mshvvtl: Fix vmemmapshift exceeding MAXFOLIOORDER

When registering VTL0 memory via MSHVADDVTL0MEMORY, the kernel computes pgmap->vmemmapshift as the number of trailing zeros in the OR of startpfn and lastpfn, intending to use the largest compound page order both endpoints are aligned to.

However, this value is not clamped to MAXFOLIOORDER, so a sufficiently aligned range (e.g. physical range [0x800000000000, 0x800080000000), corresponding to startpfn=0x800000000 with 35 trailing zeros) can produce a shift larger than what memremappages() accepts, triggering a WARN and returning -EINVAL:

WARNING: ... memremappages+0x512/0x650 requested folio size unsupported

The MAXFOLIOORDER check was added by commit 646b67d57589 ("mm/memremap: reject unreasonable folio/compound page sizes in memremappages()").

Fix this by clamping vmemmapshift to MAXFOLIOORDER 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 devmmemremappages() instead of hard-coding -EFAULT, which was masking the real -EINVAL return.

Affected Software

2 affected components
Linux Linux kernel
Linux Linux kernel>=6.19<7.0.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Avoid registering VTL0 memory ranges whose start_pfn and last_pfn produce a vmemmap_shift larger than the kernel's supported MAX_FOLIO_ORDER (i.e., avoid extremely large-alignment physical ranges when invoking MSHV_ADD_VTL0_MEMORY), or validate/normalize PFN ranges in the caller to ensure alignment does not exceed supported folio order.

  2. Operational

    Search kernel logs (dmesg) for warnings like 'requested folio size unsupported' or memremap_pages WARNs and for MSHV_ADD_VTL0_MEMORY failures returning -EINVAL; after applying the kernel fix, verify the WARN no longer appears and VTL0 memory registration succeeds.

Event History

May 8, 2026
CVE Published
via MITRE·01:41 PM
Data Sourced
via MITRE·01:41 PM
Description
Data Sourced
via NVD·02:16 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-43348?

CVE-2026-43348 has been categorized as a medium severity vulnerability in the Linux kernel.

2

How do I fix CVE-2026-43348?

To fix CVE-2026-43348, ensure you update your Linux kernel to version 6.19 or later.

3

What systems are affected by CVE-2026-43348?

CVE-2026-43348 affects the Linux kernel versions between 6.19 and 7.0.2.

4

What type of vulnerability is CVE-2026-43348?

CVE-2026-43348 is a vulnerability related to memory management within the Linux kernel.

5

When was CVE-2026-43348 publicly disclosed?

CVE-2026-43348 was publicly disclosed on the official Linux kernel repository.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203