# CVE-2026-99140: tracing: Fix hist trigger timestamps for buffered events

> 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.21% (percentile 7, 2026-11-26)
- **Published:** 2026-10-28T10:34:51.421Z
- **Modified:** 2026-10-30T13:21:48.270Z

## Who should check

- Anyone running Linux \>= b94bc80df64823e676b506f8de7dcf6a688d681e, \< b3a94a79047d3fc9385b3709cb2b86f4a26ed0c3; \>= b94bc80df64823e676b506f8de7dcf6a688d681e, \< 71c5c7420478d94d6eb0b427f66fa41bbda651e3; \>= b94bc80df64823e676b506f8de7dcf6a688d681e, \< ab320f6aa3769480f735ed0ad026c4a61799b7bc; \>= b94bc80df64823e676b506f8de7dcf6a688d681e, \< af192a356e9830a0df231b590ad6fb1fc28c9315; \>= b94bc80df64823e676b506f8de7dcf6a688d681e, \< 09c7cce2e59e6b3b1807520bcb1980c561f15d1e; \>= b94bc80df64823e676b506f8de7dcf6a688d681e, \< 89e90b16aadd6e66bd0323bc8dfc76a62e756b57; \>= b94bc80df64823e676b506f8de7dcf6a688d681e, \< 9414ca3b99e5a7f1f3bf51c2a01b383e1b355dd0
- Anyone running Linux 5.13

## Description

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

tracing: Fix hist trigger timestamps for buffered events

Syzkaller triggered a WARN\_ON\_ONCE(!nest) warning:

  WARNING: kernel/trace/ring\_buffer.c:821 at ring\_buffer\_event\_time\_stamp
  Call trace:
    ring\_buffer\_event\_time\_stamp
    hist\_field\_timestamp
    hist\_fn\_call
    event\_hist\_trigger
    event\_triggers\_call
    \_\_event\_trigger\_test\_discard
    trace\_event\_buffer\_commit
    do\_trace\_event\_raw\_event\_sched\_switch
    trace\_event\_raw\_event\_sched\_switch

The warning is probabilistically reproducible and is related to syzkaller
executing the following commands:

  echo 'prev\_pid == 999999' \> events/sched/sched\_switch/filter
  echo 'hist:keys=common\_timestamp' \> events/sched/sched\_switch/trigger

The specific triggering process is as follows:

CPU 0                                           CPU 1
(context switching)                             (echo 'hist:keys=common\_timestamp' \> \\
                                                        events/sched/sched\_switch/trigger)
do\_trace\_event\_raw\_event\_\#\#call
  trace\_event\_buffer\_lock\_reserve
    if (!tr-\>no\_filter\_buffering\_ref &&
        trace\_file-\>flags & EVENT\_FILE\_FL\_FILTERED)
        return entry;  // return directly
                                                event\_hist\_trigger\_parse
                                                  hist\_register\_trigger
                                                    tracing\_set\_filter\_buffering(file-\>tr, true);
                                                      tr-\>no\_filter\_buffering\_ref++;
    \_\_trace\_buffer\_lock\_reserve
      rb\_start\_commit
        local\_inc(&cpu\_buffer-\>committing);  // skipped and not executed
  trace\_event\_buffer\_commit
    \_\_event\_trigger\_test\_discard
      event\_triggers\_call
        event\_hist\_trigger
          hist\_fn\_call
            hist\_field\_timestamp
              ring\_buffer\_event\_time\_stamp
                nest = local\_read(&cpu\_buffer-\>committing);
                WARN\_ON\_ONCE(!nest)  // trigger warning

The root cause is that when an event file has a filter attached and the
hist trigger has not yet been attached, trace\_event\_buffer\_lock\_reserve()
writes the event into the per-CPU trace\_buffered\_event temp buffer instead
of reserving it in the ring buffer, so cpu\_buffer-\>committing is not
incremented. When the event is later processed at commit time by a hist
trigger, hist\_field\_timestamp() -\> ring\_buffer\_event\_time\_stamp() sees a
zero committing count, triggering WARN\_ON\_ONCE(!nest).

tracing\_event\_time\_stamp() was added by commit d8279bfc5e959 ("tracing:
Add tracing\_event\_time\_stamp() API") for exactly this case: if the event
is the per-CPU trace\_buffered\_event, it returns the current ring buffer
timestamp. But it never gained a caller. Use it in hist\_field\_timestamp(),
so that a hist trigger that races onto a buffered event records the
current time, which is only marginally later than when the event was
recorded, instead of warning and recording a bogus timestamp.

## Affected and fixed versions

- Linux: \>= b94bc80df64823e676b506f8de7dcf6a688d681e, \< b3a94a79047d3fc9385b3709cb2b86f4a26ed0c3; \>= b94bc80df64823e676b506f8de7dcf6a688d681e, \< 71c5c7420478d94d6eb0b427f66fa41bbda651e3; \>= b94bc80df64823e676b506f8de7dcf6a688d681e, \< ab320f6aa3769480f735ed0ad026c4a61799b7bc; \>= b94bc80df64823e676b506f8de7dcf6a688d681e, \< af192a356e9830a0df231b590ad6fb1fc28c9315; \>= b94bc80df64823e676b506f8de7dcf6a688d681e, \< 09c7cce2e59e6b3b1807520bcb1980c561f15d1e; \>= b94bc80df64823e676b506f8de7dcf6a688d681e, \< 89e90b16aadd6e66bd0323bc8dfc76a62e756b57; \>= b94bc80df64823e676b506f8de7dcf6a688d681e, \< 9414ca3b99e5a7f1f3bf51c2a01b383e1b355dd0 (cvelist)
- Linux: 5.13 (cvelist)

## Mitigation

- Upgrade Linux to 9414ca3b99e5a7f1f3bf51c2a01b383e1b355dd0 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-99140. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99140.md
Affected: Linux >= b94bc80df64823e676b506f8de7dcf6a688d681e, < b3a94a79047d3fc9385b3709cb2b86f4a26ed0c3; >= b94bc80df64823e676b506f8de7dcf6a688d681e, < 71c5c7420478d94d6eb0b427f66fa41bbda651e3; >= b94bc80df64823e676b506f8de7dcf6a688d681e, < ab320f6aa3769480f735ed0ad026c4a61799b7bc; >= b94bc80df64823e676b506f…
Fixed in: Linux 71c5c7420478d94d6eb0b427f66fa41bbda651e3, Linux 09c7cce2e59e6b3b1807520bcb1980c561f15d1e, Linux 89e90b16aadd6e66bd0323bc8dfc76a62e756b57, Linux 9414ca3b99e5a7f1f3bf51c2a01b383e1b355dd0

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= b94bc80df64823e676b506f8de7dcf6a688d681e, \< b3a94a79047d3fc9385b3709cb2b86f4a26ed0c3; \>= b94bc80df64823e676b506f8de7dcf6a688d681e, \< 71c5c7420478d94d6eb0b427f66fa41bbda651e3; \>= b94bc80df64823e676b506f8de7dcf6a688d681e, \< ab320f6aa3769480f735ed0ad026c4a61799b7bc; \>= b94bc80df64823e676b506f8de7dcf6a688d681e, \< af192a356e9830a0df231b590ad6fb1fc28c9315; \>= b94bc80df64823e676b506f8de7dcf6a688d681e, \< 09c7cce2e59e6b3b1807520bcb1980c561f15d1e; \>= b94bc80df64823e676b506f8de7dcf6a688d681e, \< 89e90b16aadd6e66bd0323bc8dfc76a62e756b57; \>= b94bc80df64823e676b506f8de7dcf6a688d681e, \< 9414ca3b99e5a7f1f3bf51c2a01b383e1b355dd0; Linux 5.13.

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

Yes. Fixed in Linux 71c5c7420478d94d6eb0b427f66fa41bbda651e3, Linux 09c7cce2e59e6b3b1807520bcb1980c561f15d1e, Linux 89e90b16aadd6e66bd0323bc8dfc76a62e756b57, Linux 9414ca3b99e5a7f1f3bf51c2a01b383e1b355dd0. Upgrade Linux to 9414ca3b99e5a7f1f3bf51c2a01b383e1b355dd0 or later.

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

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/b3a94a79047d3fc9385b3709cb2b86f4a26ed0c3>
- other: <https://git.kernel.org/stable/c/71c5c7420478d94d6eb0b427f66fa41bbda651e3>
- other: <https://git.kernel.org/stable/c/ab320f6aa3769480f735ed0ad026c4a61799b7bc>
- other: <https://git.kernel.org/stable/c/af192a356e9830a0df231b590ad6fb1fc28c9315>
- other: <https://git.kernel.org/stable/c/09c7cce2e59e6b3b1807520bcb1980c561f15d1e>
- other: <https://git.kernel.org/stable/c/89e90b16aadd6e66bd0323bc8dfc76a62e756b57>
- other: <https://git.kernel.org/stable/c/9414ca3b99e5a7f1f3bf51c2a01b383e1b355dd0>

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

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