CVE-2025-21778: Linux kernel · tracing: Do not allow mmap() of persistent ring buffer
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 7.8 High.
Data as of 24 Nov 2026, 19:45 UTC
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 27 Feb 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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 23 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 24.04 LTSlinux-raspi-realtimepkg:deb/ubuntu/linux-raspi-realtime?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlinux-allwinner-5.19pkg:deb/ubuntu/linux-allwinner-5.19?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlinux-aws-5.19pkg:deb/ubuntu/linux-aws-5.19?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlinux-aws-6.2pkg:deb/ubuntu/linux-aws-6.2?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlinux-aws-6.5pkg:deb/ubuntu/linux-aws-6.5?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlinux-azure-5.19pkg:deb/ubuntu/linux-azure-5.19?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available that disables mmap() on persistent ring buffers attached to reserved memory, preventing the kernel crash. Systems should apply the official kernel updates that include this fix. Until patched, avoid mmap() operations on tracing ring buffers that use reserve_mem. No additional mitigation is required as the vulnerability is addressed by this change.
Description
CVE-2025-21778 is a vulnerability in the Linux kernel's tracing subsystem where mmap() calls on persistent ring buffers attached to reserved memory can cause a kernel crash due to improper handling of vmap()'d memory. The issue arises because the code uses virt_to_page() on vmap()'d memory, which is unsupported, leading to a page fault and kernel oops. The vulnerability is mitigated by disabling mmap() on such persistent buffers, returning an error instead of crashing.
References
- ubuntu.com/security/CVE-2025-21778 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-21778 (opens in a new tab)
- git.kernel.org/linus/129fe718819cc5e24ea2f489db9ccd4371f0c6f6 (opens in a new tab)
- git.kernel.org/stable/c/129fe718819cc5e24ea2f489db9ccd4371f0c6f6 (opens in a new tab)
- git.kernel.org/stable/c/cf5aa560e5c7628b57c928741d7e6a9a0f6f0e67 (opens in a new tab)
- git.kernel.org/stable/c/e8dff5f73912513fc9b52ab992d861517c9a9975 (opens in a new tab)