# CVE-2026-80682: riscv/mm: use physical alignment for vmemmap\_start\_pfn

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 5, 2026-11-26)
- **Published:** 2026-08-28T06:52:49.498Z
- **Modified:** 2026-08-29T07:16:50.703Z

## Who should check

- Anyone running Linux \>= 476849b0fba4450f5adf22196bcff9c24c673bc4, \< 11ad86830a78ea4e1942afc73c10e4ca8e69e03f; \>= 476849b0fba4450f5adf22196bcff9c24c673bc4, \< 45ebe4540817cb540a59e4dc04014ac5dddc9990
- Anyone running Linux 7.1

## Description

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

riscv/mm: use physical alignment for vmemmap\_start\_pfn

RISC-V computes vmemmap\_start\_pfn by rounding phys\_ram\_base down to
VMEMMAP\_ADDR\_ALIGN.  That alignment must therefore be expressed in the
physical-address domain.

Commit 476849b0fba4 ("riscv/mm: align vmemmap to maximal folio size")
attempted to account for the maximal folio alignment by feeding
MAX\_FOLIO\_VMEMMAP\_ALIGN directly into VMEMMAP\_ADDR\_ALIGN.  However,
MAX\_FOLIO\_VMEMMAP\_ALIGN is measured in bytes of struct page storage,
whereas VMEMMAP\_ADDR\_ALIGN is used to align a physical address.

The mask-based compound\_info encoding requires pfn\_to\_page(0) to be
naturally aligned to MAX\_FOLIO\_VMEMMAP\_ALIGN.  Commit 9f94db4c7eaa
("mm/sparse: check memmap alignment for compound\_info\_has\_mask()") added a
check for that requirement and exposed the unit mismatch on systems such
as QEMU virt, where the DRAM base is not aligned to MAX\_FOLIO\_NR\_PAGES \*
PAGE\_SIZE.

Here is the log:
\[    0.000000\]\[    C0\] ------------\[ cut here \]------------
\[    0.000000\]\[    C0\] WARNING: mm/sparse.c:365 at sparse\_init+0x58a/0x6fe, CPU\#0: swapper/0
\[    0.000000\]\[    C0\] Modules linked in:
\[    0.000000\]\[    C0\] CPU: 0 UID: 0 PID: 0 Comm: swapper Not tainted 7.2.0-rc3-g1d8304bdd65f \#2 PREEMPT 
\[    0.000000\]\[    C0\] Hardware name: riscv-virtio,qemu (DT)
\[    0.000000\]\[    C0\] epc : sparse\_init+0x58a/0x6fe
\[    0.000000\]\[    C0\]  ra : sparse\_init+0x58a/0x6fe
\[    0.000000\]\[    C0\] epc : ffffffff86851c88 ra : ffffffff86851c88 sp : ffffffff88807a30
\[    0.000000\]\[    C0\]  gp : ffffffff8a3bf240 tp : ffffffff88842080 t0 : ff600000ffab6000
\[    0.000000\]\[    C0\]  t1 : 000000017fab6000 t2 : 65203a6573726363 s0 : ffffffff88807bc0
\[    0.000000\]\[    C0\]  s1 : 000000000e000000 a0 : 0000000000000007 a1 : 0000000000000000
\[    0.000000\]\[    C0\]  a2 : 0000000000000002 a3 : ffffffff86851c88 a4 : 0000000000000000
\[    0.000000\]\[    C0\]  a5 : ffffffff88843080 a6 : 0000000000000003 a7 : 0000000000000000
\[    0.000000\]\[    C0\]  s2 : ff60000000000000 s3 : 0040000000000000 s4 : 0004000000000000
\[    0.000000\]\[    C0\]  s5 : ffffffff8a4d92e0 s6 : ff600000ffab55e0 s7 : ffffffff88384d00
\[    0.000000\]\[    C0\]  s8 : 0000000000000003 s9 : ffffffff88384cc1 s10: ffffffff88384cc0
\[    0.000000\]\[    C0\]  s11: ffffffff8a4daae0 t3 : ffffffff915e8b20 t4 : ffffffff915e8b20
\[    0.000000\]\[    C0\]  t5 : ffffffff915e8b20 t6 : ffffffff915e8bc8 ssp : 0000000000000000
\[    0.000000\]\[    C0\] status: 0000000200000100 badaddr: ffffffff86851c88 cause: 0000000000000003
\[    0.000000\]\[    C0\] \[\<ffffffff86851c88\>\] sparse\_init+0x58a/0x6fe
\[    0.000000\]\[    C0\] \[\<ffffffff8683d396\>\] mm\_core\_init\_early+0x116/0x1e30
\[    0.000000\]\[    C0\] \[\<ffffffff86801edc\>\] start\_kernel+0xd2/0x848

Convert MAX\_FOLIO\_VMEMMAP\_ALIGN to the equivalent physical alignment
before using it in VMEMMAP\_ADDR\_ALIGN.  This keeps the existing
round\_down() logic while making the resulting vmemmap base satisfy the
mask-alignment requirement.

## Affected and fixed versions

- Linux: \>= 476849b0fba4450f5adf22196bcff9c24c673bc4, \< 11ad86830a78ea4e1942afc73c10e4ca8e69e03f; \>= 476849b0fba4450f5adf22196bcff9c24c673bc4, \< 45ebe4540817cb540a59e4dc04014ac5dddc9990 (cvelist)
- Linux: 7.1 (cvelist)

## Mitigation

- Upgrade Linux to 45ebe4540817cb540a59e4dc04014ac5dddc9990 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-80682. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-80682.md
Affected: Linux >= 476849b0fba4450f5adf22196bcff9c24c673bc4, < 11ad86830a78ea4e1942afc73c10e4ca8e69e03f; >= 476849b0fba4450f5adf22196bcff9c24c673bc4, < 45ebe4540817cb540a59e4dc04014ac5dddc9990; Linux 7.1
Fixed in: Linux 11ad86830a78ea4e1942afc73c10e4ca8e69e03f, Linux 45ebe4540817cb540a59e4dc04014ac5dddc9990

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-80682 being exploited?

There is no confirmed exploitation: CVE-2026-80682 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-80682?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-80682?

Linux \>= 476849b0fba4450f5adf22196bcff9c24c673bc4, \< 11ad86830a78ea4e1942afc73c10e4ca8e69e03f; \>= 476849b0fba4450f5adf22196bcff9c24c673bc4, \< 45ebe4540817cb540a59e4dc04014ac5dddc9990; Linux 7.1.

### Is there a fix for CVE-2026-80682?

Yes. Fixed in Linux 11ad86830a78ea4e1942afc73c10e4ca8e69e03f, Linux 45ebe4540817cb540a59e4dc04014ac5dddc9990. Upgrade Linux to 45ebe4540817cb540a59e4dc04014ac5dddc9990 or later.

### How do I check if I'm affected by CVE-2026-80682?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/11ad86830a78ea4e1942afc73c10e4ca8e69e03f>
- other: <https://git.kernel.org/stable/c/45ebe4540817cb540a59e4dc04014ac5dddc9990>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-80682>

HTML: <https://flawdb.com/CVE-2026-80682> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-80682>
