CVE-2026-64299

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

State
Published
Severity
7.1 High
Published
Jul 25, 2026
Updated
Oct 19, 2026
Reserved
Jul 19, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.1 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HLinux

Weaknesses

Affected Products

ProductVersions
LinuxLinux
  • 60f1d5e3bac44b598f67d36062da96c095d2b700 to before 265f3a690f6c7d69ef7d2ca50b04b4853a211df3Affected
  • 60f1d5e3bac44b598f67d36062da96c095d2b700 to before ee5b8888d3248618251fb69a2fad92afcb81557eAffected
  • 60f1d5e3bac44b598f67d36062da96c095d2b700 to before 56d4c9ab84714eebb285a2fee68aaedf81e3ef15Affected
  • 60f1d5e3bac44b598f67d36062da96c095d2b700 to before 35ae19764eabfe9c29029d3b5713c86e6855acdfAffected
  • 60f1d5e3bac44b598f67d36062da96c095d2b700 to before ebb55902856973906c8bb339a3a34824ed4a5086Affected
  • 60f1d5e3bac44b598f67d36062da96c095d2b700 to before 2dad64a97e1df47f5d9ccb17fa319aa348617226Affected
  • 60f1d5e3bac44b598f67d36062da96c095d2b700 to before e5d5f3bd053a5f14787526c9f0f55ef900d43ac6Affected
  • 60f1d5e3bac44b598f67d36062da96c095d2b700 to before 0a6070839b1ef276d5b05bedfb787743e140fb17Affected
LinuxLinux
  • 4.10Affected
  • before 4.10Not affected
  • 5.10.261 through 5.10.*Not affected
  • 5.15.212 through 5.15.*Not affected
  • 6.1.178 through 6.1.*Not affected
  • 6.6.145 through 6.6.*Not affected
  • 6.12.96 through 6.12.*Not affected
  • 6.18.39 through 6.18.*Not affected
  • 7.1.4 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.