Skip to main content
VulnerabilityPublished Updated

CVE-2025-38207: Linux kernel · mm: fix uprobe pte be overwritten when expanding vma

Affects Linux kernelSource CVE Database V5

0

Not known to be exploited · fixed in 7030046a9b4de8199a3cbc3de20366d95dce2142 : update Linux kernel when convenient.

Data as of 26 Oct 2026, 14:18 UTC

Severity
Unrated

Rated by Threat Radar · No CVSS score from NVD or the CNA

EPSS
0.2% chance of exploitation in 30 days – higher than 11% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 7030046a9b4de8199a3cbc3de20366d95dce2142, 58b83b9a9a929611a2a2e7d88f45cb0d786b7ee0, 2b12d06c37fd3a394376f42f026a7478d826ed63

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 4 Jul 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade Linux kernel to 7030046a9b4de8199a3cbc3de20366d95dce2142, 58b83b9a9a929611a2a2e7d88f45cb0d786b7ee0 or 2b12d06c37fd3a394376f42f026a7478d826ed63.

Affected software

ProductAffectedFixed in
LinuxLinuxAffected
  • ≥ 2b144498350860b6ee9dc57ff27a93ad488de5dc, < 7030046a9b4de8199a3cbc3de20366d95dce2142
Fixed in
  • 7030046a9b4de8199a3cbc3de20366d95dce2142
LinuxLinuxAffected
  • ≥ 2b144498350860b6ee9dc57ff27a93ad488de5dc, < 58b83b9a9a929611a2a2e7d88f45cb0d786b7ee0
Fixed in
  • 58b83b9a9a929611a2a2e7d88f45cb0d786b7ee0
LinuxLinuxAffected
  • ≥ 2b144498350860b6ee9dc57ff27a93ad488de5dc, < 2b12d06c37fd3a394376f42f026a7478d826ed63
Fixed in
  • 2b12d06c37fd3a394376f42f026a7478d826ed63
LinuxLinuxAffected
  • =3.5
Fixed in–

Description

In the Linux kernel, the following vulnerability has been resolved: mm: fix uprobe pte be overwritten when expanding vma Patch series "Fix uprobe pte be overwritten when expanding vma". This patch (of 4): We encountered a BUG alert triggered by Syzkaller as follows: BUG: Bad rss-counter state mm:00000000b4a60fca type:MM_ANONPAGES val:1 And we can reproduce it with the following steps: 1. register uprobe on file at zero offset 2. mmap the file at zero offset: addr1 = mmap(NULL, 2 * 4096, PROT_NONE, MAP_PRIVATE, fd, 0); 3. mremap part of vma1 to new vma2: addr2 = mremap(addr1, 4096, 2 * 4096, MREMAP_MAYMOVE); 4. mremap back to orig addr1: mremap(addr2, 4096, 4096, MREMAP_MAYMOVE | MREMAP_FIXED, addr1); In step 3, the vma1 range [addr1, addr1 + 4096] will be remap to new vma2 with range [addr2, addr2 + 8192], and remap uprobe anon page from the vma1 to vma2, then unmap the vma1 range [addr1, addr1 + 4096]. In step 4, the vma2 range [addr2, addr2 + 4096] will be remap back to the addr range [addr1, addr1 + 4096]. Since the addr range [addr1 + 4096, addr1 + 8192] still maps the file, it will take vma_merge_new_range to expand the range, and then do uprobe_mmap in vma_complete. Since the merged vma pgoff is also zero offset, it will install uprobe anon page to the merged vma. However, the upcomming move_page_tables step, which use set_pte_at to remap the vma2 uprobe pte to the merged vma, will overwrite the newly uprobe pte in the merged vma, and lead that pte to be orphan. Since the uprobe pte will be remapped to the merged vma, we can remove the unnecessary uprobe_mmap upon merged vma. This problem was first found in linux-6.6.y and also exists in the community syzkaller: https://lore.kernel.org/all/000000000000ada39605a5e71711@google.com/T/

References

Community reviews

Loading reviews…