tracing: Prevent out-of-bounds read in glob matching (Linux Linux)

CVE-2026-64299
HIGH 7.1

At a glance

Source
NVD
EPSS
EPSS 0.17 % · percentile 6 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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.

Weaknesses (CWE)

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HLinux
CVSS 3.1HIGH 7.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 60f1d5e3bac44b598f67d36062da96c095d2b700 < 265f3a690f6c7d69ef7d2ca50b04b4853a211df3 ; affected 60f1d5e3bac44b598f67d36062da96c095d2b700 < ee5b8888d3248618251fb69a2fad92afcb81557e ; affected 60f1d5e3bac44b598f67d36062da96c095d2b700 < 56d4c9ab84714eebb285a2fee68aaedf81e3ef15 ; affected 60f1d5e3bac44b598f67d36062da96c095d2b700 < 35ae19764eabfe9c29029d3b5713c86e6855acdf ; affected 60f1d5e3bac44b598f67d36062da96c095d2b700 < ebb55902856973906c8bb339a3a34824ed4a5086 ; affected 60f1d5e3bac44b598f67d36062da96c095d2b700 < 2dad64a97e1df47f5d9ccb17fa319aa348617226
Linux · Linuxaffected 4.10 ; unaffected 0 < 4.10 ; unaffected 5.10.261 ≤ 5.10.* ; unaffected 5.15.212 ≤ 5.15.* ; unaffected 6.1.178 ≤ 6.1.* ; unaffected 6.6.145 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD