# CVE-2025-38267: ring-buffer: Do not trigger WARN\_ON() due to a commit\_overrun

> 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, NVD) `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.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2025-07-10T07:41:50.551Z
- **Modified:** 2026-06-17T09:16:30.957Z

## Who should check

- Anyone running Linux \>= fe832be05a8eee5f1488cbcc2c562dd82d079fd6, \< b8df8cb8f7eef52baa9ac5bf36a405ca67945a91; \>= fe832be05a8eee5f1488cbcc2c562dd82d079fd6, \< e018053632bad8ee0752242c7d2cffb0bbf45404; \>= fe832be05a8eee5f1488cbcc2c562dd82d079fd6, \< 4fc78a7c9ca994e1da5d3940704d4e8f0ea8c5e4
- Anyone running Linux 6.10

## Description

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

ring-buffer: Do not trigger WARN\_ON() due to a commit\_overrun

When reading a memory mapped buffer the reader page is just swapped out
with the last page written in the write buffer. If the reader page is the
same as the commit buffer (the buffer that is currently being written to)
it was assumed that it should never have missed events. If it does, it
triggers a WARN\_ON\_ONCE().

But there just happens to be one scenario where this can legitimately
happen. That is on a commit\_overrun. A commit overrun is when an interrupt
preempts an event being written to the buffer and then the interrupt adds
so many new events that it fills and wraps the buffer back to the commit.
Any new events would then be dropped and be reported as "missed\_events".

In this case, the next page to read is the commit buffer and after the
swap of the reader page, the reader page will be the commit buffer, but
this time there will be missed events and this triggers the following
warning:

 ------------\[ cut here \]------------
 WARNING: CPU: 2 PID: 1127 at kernel/trace/ring\_buffer.c:7357 ring\_buffer\_map\_get\_reader+0x49a/0x780
 Modules linked in: kvm\_intel kvm irqbypass
 CPU: 2 UID: 0 PID: 1127 Comm: trace-cmd Not tainted 6.15.0-rc7-test-00004-g478bc2824b45-dirty \#564 PREEMPT
 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
 RIP: 0010:ring\_buffer\_map\_get\_reader+0x49a/0x780
 Code: 00 00 00 48 89 fe 48 c1 ee 03 80 3c 2e 00 0f 85 ec 01 00 00 4d 3b a6 a8 00 00 00 0f 85 8a fd ff ff 48 85 c0 0f 84 55 fe ff ff \<0f\> 0b e9 4e fe ff ff be 08 00 00 00 4c 89 54 24 58 48 89 54 24 50
 RSP: 0018:ffff888121787dc0 EFLAGS: 00010002
 RAX: 00000000000006a2 RBX: ffff888100062800 RCX: ffffffff8190cb49
 RDX: ffff888126934c00 RSI: 1ffff11020200a15 RDI: ffff8881010050a8
 RBP: dffffc0000000000 R08: 0000000000000000 R09: ffffed1024d26982
 R10: ffff888126934c17 R11: ffff8881010050a8 R12: ffff888126934c00
 R13: ffff8881010050b8 R14: ffff888101005000 R15: ffff888126930008
 FS:  00007f95c8cd7540(0000) GS:ffff8882b576e000(0000) knlGS:0000000000000000
 CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 CR2: 00007f95c8de4dc0 CR3: 0000000128452002 CR4: 0000000000172ef0
 Call Trace:
  \<TASK\>
  ? \_\_pfx\_ring\_buffer\_map\_get\_reader+0x10/0x10
  tracing\_buffers\_ioctl+0x283/0x370
  \_\_x64\_sys\_ioctl+0x134/0x190
  do\_syscall\_64+0x79/0x1c0
  entry\_SYSCALL\_64\_after\_hwframe+0x76/0x7e
 RIP: 0033:0x7f95c8de48db
 Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 \<89\> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00
 RSP: 002b:00007ffe037ba110 EFLAGS: 00000246 ORIG\_RAX: 0000000000000010
 RAX: ffffffffffffffda RBX: 00007ffe037bb2b0 RCX: 00007f95c8de48db
 RDX: 0000000000000000 RSI: 0000000000005220 RDI: 0000000000000006
 RBP: 00007ffe037ba180 R08: 0000000000000000 R09: 0000000000000000
 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
 R13: 00007ffe037bb6f8 R14: 00007f95c9065000 R15: 00005575c7492c90
  \</TASK\>
 irq event stamp: 5080
 hardirqs last  enabled at (5079): \[\<ffffffff83e0adb0\>\] \_raw\_spin\_unlock\_irqrestore+0x50/0x70
 hardirqs last disabled at (5080): \[\<ffffffff83e0aa83\>\] \_raw\_spin\_lock\_irqsave+0x63/0x70
 softirqs last  enabled at (4182): \[\<ffffffff81516122\>\] handle\_softirqs+0x552/0x710
 softirqs last disabled at (4159): \[\<ffffffff815163f7\>\] \_\_irq\_exit\_rcu+0x107/0x210
 ---\[ end trace 0000000000000000 \]---

The above was triggered by running on a kernel with both lockdep and KASAN
as well as kmemleak enabled and executing the following command:

 \# perf record -o perf-test.dat -a -- trace-cmd record --nosplice  -e all -p function hackbench 50

With perf interjecting a lot of interrupts and trace-cmd enabling all
events as well as function tracing, with lockdep, KASAN and kmemleak
enabled, it could cause an interrupt preempting an event being written to
add enough event
---truncated---

## Affected and fixed versions

- Linux: \>= fe832be05a8eee5f1488cbcc2c562dd82d079fd6, \< b8df8cb8f7eef52baa9ac5bf36a405ca67945a91; \>= fe832be05a8eee5f1488cbcc2c562dd82d079fd6, \< e018053632bad8ee0752242c7d2cffb0bbf45404; \>= fe832be05a8eee5f1488cbcc2c562dd82d079fd6, \< 4fc78a7c9ca994e1da5d3940704d4e8f0ea8c5e4 (cvelist)
- Linux: 6.10 (cvelist)

## Mitigation

- Upgrade Linux to 4fc78a7c9ca994e1da5d3940704d4e8f0ea8c5e4 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-38267.md
Affected: Linux >= fe832be05a8eee5f1488cbcc2c562dd82d079fd6, < b8df8cb8f7eef52baa9ac5bf36a405ca67945a91; >= fe832be05a8eee5f1488cbcc2c562dd82d079fd6, < e018053632bad8ee0752242c7d2cffb0bbf45404; >= fe832be05a8eee5f1488cbcc2c562dd82d079fd6, < 4fc78a7c9ca994e1da5d3940704d4e8f0ea8c5e4; Linux 6.10
Fixed in: Linux 4fc78a7c9ca994e1da5d3940704d4e8f0ea8c5e4

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-2025-38267 being exploited?

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

### How serious is CVE-2025-38267?

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

### Which versions are affected by CVE-2025-38267?

Linux \>= fe832be05a8eee5f1488cbcc2c562dd82d079fd6, \< b8df8cb8f7eef52baa9ac5bf36a405ca67945a91; \>= fe832be05a8eee5f1488cbcc2c562dd82d079fd6, \< e018053632bad8ee0752242c7d2cffb0bbf45404; \>= fe832be05a8eee5f1488cbcc2c562dd82d079fd6, \< 4fc78a7c9ca994e1da5d3940704d4e8f0ea8c5e4; Linux 6.10.

### Is there a fix for CVE-2025-38267?

Yes. Fixed in Linux 4fc78a7c9ca994e1da5d3940704d4e8f0ea8c5e4. Upgrade Linux to 4fc78a7c9ca994e1da5d3940704d4e8f0ea8c5e4 or later.

### How do I check if I'm affected by CVE-2025-38267?

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

- patch: <https://git.kernel.org/stable/c/b8df8cb8f7eef52baa9ac5bf36a405ca67945a91>
- patch: <https://git.kernel.org/stable/c/e018053632bad8ee0752242c7d2cffb0bbf45404>
- patch: <https://git.kernel.org/stable/c/4fc78a7c9ca994e1da5d3940704d4e8f0ea8c5e4>

## 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-2025-38267>

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