# CVE-2026-98918: mm/damon/ops-common: use a page-aligned address in damon\_ptep\_mkold()

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.20% (percentile 5, 2026-11-26)
- **Published:** 2026-10-23T12:01:50.803Z
- **Modified:** 2026-10-23T13:17:12.360Z

## Who should check

- Anyone running Linux \>= 6f0e1142173a54b8a18c59fc3cbae3b31ee423d9, \< d5208de0799c506d3315b6f96d034c38e4509dbb; \>= 6f0e1142173a54b8a18c59fc3cbae3b31ee423d9, \< f166586f74dd5d9cbadaabf86ef81c8ddf6cafa7
- Anyone running Linux 7.0

## Description

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

mm/damon/ops-common: use a page-aligned address in damon\_ptep\_mkold()

\_\_damon\_va\_prepare\_access\_check() picks a random byte address within the
region and stores it in r-\>sampling\_addr.  damon\_va\_mkold() passes it into
a page table walk, which hands it to damon\_ptep\_mkold() as the address of
the page to sample:

  damon\_va\_mkold(mm, r-\>sampling\_addr)
    damon\_va\_walk\_page\_range(mm, addr, addr + 1)
      damon\_mkold\_pmd\_entry()
        damon\_ptep\_mkold(pte, vma, addr)
          ptep\_test\_and\_clear\_young(vma, addr, pte)
          mmu\_notifier\_clear\_young(mm, addr, addr + PAGE\_SIZE)

For arm64, before commit 6f0e1142173a ("arm64: mm: support batch clearing
of the young flag for large folios"), the contpte helper walked exactly
CONT\_PTES entries from the aligned-down page table pointer and used @addr
only to pass down to each entry, so an unaligned value was harmless:

        ptep = contpte\_align\_down(ptep);
        addr = ALIGN\_DOWN(addr, CONT\_PTE\_SIZE);
        for (i = 0; i \< CONT\_PTES; i++, ptep++, addr += PAGE\_SIZE)

Now the range to walk is derived from @addr instead: end = addr + nr \*
PAGE\_SIZE, rounded up to CONT\_PTE\_SIZE.  For a sample in the last page of
a contpte block, the sub-page offset puts end just past the block
boundary, so the round-up lands a whole block further and the walk clears
PTE\_AF in CONT\_PTES entries beyond the sampled block.  For the last block
in a page table page, those entries are past the end of that page, so the
walk writes into the page that follows.

Triggered by the full 7.1/7.2 kernel selftest suite on arm64 (EC2
c/m6g.4xlarge).  The kernel sometimes crashes at or shortly after the
DAMON test.

What the overrun does depends on the page that happens to follow the page
table, so there is no single signature.  If that page is read-only, the
write faults in the sampling path itself:

  Unable to handle kernel write to read-only memory at virtual address ffff0003c5d2d000
    FSC = 0x0f: level 3 permission fault
    CM = 0, WnR = 1, TnD = 0, TagAccess = 0
  CPU: 10 UID: 0 PID: 3487 Comm: kdamond.2
  pc : contpte\_test\_and\_clear\_young\_ptes+0x70/0xc0
  lr : damon\_ptep\_mkold+0x1e8/0x1f8
  Call trace:
   contpte\_test\_and\_clear\_young\_ptes+0x70/0xc0 (P)
   damon\_mkold\_pmd\_entry+0x150/0x170
   walk\_pmd\_range+0x110/0x2b0
   walk\_pud\_range+0x10c/0x208
   walk\_pgd\_range+0x134/0x258
   \_\_walk\_page\_range+0x98/0x1b0
   walk\_page\_range\_vma\_unsafe+0x90/0x148
   walk\_page\_range\_vma+0x28/0x40
   damon\_va\_walk\_page\_range+0x114/0x2b8
   damon\_va\_prepare\_access\_checks+0xec/0x1a8
   kdamond\_fn+0x534/0x770
   kthread+0x128/0x138
   ret\_from\_fork+0x10/0x20

Otherwise the page is writable, the PTE\_AF clearing succeeds silently and
the damage only surfaces later, in whatever happened to own the page, so
the backtrace is unrelated to DAMON and differs between runs.

Pass a page-aligned address to the ptep\_test\_and\_clear\_young() call in
damon\_ptep\_mkold(), which is the only place DAMON can reach
contpte\_test\_and\_clear\_young\_ptes() from.  Nothing else sees the aligned
address, and r-\>sampling\_addr itself is left as is, so the sampling and
region bookkeeping semantics are unchanged.

## Affected and fixed versions

- Linux: \>= 6f0e1142173a54b8a18c59fc3cbae3b31ee423d9, \< d5208de0799c506d3315b6f96d034c38e4509dbb; \>= 6f0e1142173a54b8a18c59fc3cbae3b31ee423d9, \< f166586f74dd5d9cbadaabf86ef81c8ddf6cafa7 (cvelist)
- Linux: 7.0 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-98918.md
Affected: Linux >= 6f0e1142173a54b8a18c59fc3cbae3b31ee423d9, < d5208de0799c506d3315b6f96d034c38e4509dbb; >= 6f0e1142173a54b8a18c59fc3cbae3b31ee423d9, < f166586f74dd5d9cbadaabf86ef81c8ddf6cafa7; Linux 7.0
Fixed in: no fixed version listed yet

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-98918 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 6f0e1142173a54b8a18c59fc3cbae3b31ee423d9, \< d5208de0799c506d3315b6f96d034c38e4509dbb; \>= 6f0e1142173a54b8a18c59fc3cbae3b31ee423d9, \< f166586f74dd5d9cbadaabf86ef81c8ddf6cafa7; Linux 7.0.

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

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

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

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/d5208de0799c506d3315b6f96d034c38e4509dbb>
- other: <https://git.kernel.org/stable/c/f166586f74dd5d9cbadaabf86ef81c8ddf6cafa7>

## 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-98918>

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