# CVE-2026-64299: tracing: Prevent out-of-bounds read in glob matching

- Severity: High 7.1 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-07-25T08:49:35.742Z
- Modified: 2026-10-19T21:17:30.500Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

tracing: Prevent out-of-bounds read in glob matching

String event fields are not necessarily NUL-terminated, so the filter
predicate functions (filter_pred_string(), filter_pred_strloc() and
filter_pred_strrelloc()) pass the field length to the regex match
callbacks, and the length-aware matchers honour it.

regex_match_glob() was the exception: it ignored the length and called
glob_match(), which scans the string until it hits a NUL byte. Some
string fields are not NUL-terminated. One example is the dynamic char
array of the xfs_* namespace tracepoints, which is copied without a
trailing NUL. For such a field, glob matching reads past the end of
the event field, causing a KASAN slab-out-of-bounds read in
glob_match(), reached via regex_match_glob() and filter_match_preds()
from the xfs_lookup tracepoint.

Add a length-bounded glob_match_len() and use it from regex_match_glob()
so glob matching always stops at the field boundary. The matching loop
is factored into a shared helper so glob_match() keeps its behaviour.

(As written by CVE List.)

## Affected

- Linux Linux: from 60f1d5e3bac44b598f67d36062da96c095d2b700 before 265f3a690f6c7d69ef7d2ca50b04b4853a211df3; from 60f1d5e3bac44b598f67d36062da96c095d2b700 before ee5b8888d3248618251fb69a2fad92afcb81557e; from 60f1d5e3bac44b598f67d36062da96c095d2b700 before 56d4c9ab84714eebb285a2fee68aaedf81e3ef15; from 60f1d5e3bac44b598f67d36062da96c095d2b700 before 35ae19764eabfe9c29029d3b5713c86e6855acdf; from 60f1d5e3bac44b598f67d36062da96c095d2b700 before ebb55902856973906c8bb339a3a34824ed4a5086; from 60f1d5e3bac44b598f67d36062da96c095d2b700 before 2dad64a97e1df47f5d9ccb17fa319aa348617226; from 60f1d5e3bac44b598f67d36062da96c095d2b700 before e5d5f3bd053a5f14787526c9f0f55ef900d43ac6; from 60f1d5e3bac44b598f67d36062da96c095d2b700 before 0a6070839b1ef276d5b05bedfb787743e140fb17; 4.10 (not affected: before 4.10; from 5.10.261 up to 5.10.*; from 5.15.212 up to 5.15.*; from 6.1.178 up to 6.1.*; from 6.6.145 up to 6.6.*; from 6.12.96 up to 6.12.*; from 6.18.39 up to 6.18.*; from 7.1.4 up to 7.1.*; from 7.2 up to *)
- linux linux_kernel: from 4.10 before 5.10.261; from 5.11 before 5.15.212; from 5.16 before 6.1.178; from 6.2 before 6.6.145; from 6.7 before 6.12.96; from 6.13 before 6.18.39; from 6.19 before 7.1.4; 7.2

## References

- <https://git.kernel.org/stable/c/265f3a690f6c7d69ef7d2ca50b04b4853a211df3> (patch)
- <https://git.kernel.org/stable/c/ee5b8888d3248618251fb69a2fad92afcb81557e> (patch)
- <https://git.kernel.org/stable/c/56d4c9ab84714eebb285a2fee68aaedf81e3ef15> (patch)
- <https://git.kernel.org/stable/c/35ae19764eabfe9c29029d3b5713c86e6855acdf> (patch)
- <https://git.kernel.org/stable/c/ebb55902856973906c8bb339a3a34824ed4a5086> (patch)
- <https://git.kernel.org/stable/c/2dad64a97e1df47f5d9ccb17fa319aa348617226> (patch)
- <https://git.kernel.org/stable/c/e5d5f3bd053a5f14787526c9f0f55ef900d43ac6> (patch)
- <https://git.kernel.org/stable/c/0a6070839b1ef276d5b05bedfb787743e140fb17> (patch)

## Sources

- CVE List: [CVE-2026-64299](https://www.cve.org/CVERecord?id=CVE-2026-64299), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-64299](https://nvd.nist.gov/vuln/detail/CVE-2026-64299), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-64299 · Whole record: https://cve.day/CVE-2026-64299.json · Rebuilt by cve.day 2026-11-25T22:59:30.057Z
