tracing: Prevent out-of-bounds read in glob matching
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.
CVE-2026-64299
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-64299
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "60f1d5e3bac44b598f67d36062da96c095d2b700",
"lessThan": "265f3a690f6c7d69ef7d2ca50b04b4853a211df3",
"versionType": "git"
},
{
"status": "affected",
"version": "60f1d5e3bac44b598f67d36062da96c095d2b700",
"lessThan": "ee5b8888d3248618251fb69a2fad92afcb81557e",
"versionType": "git"
},
{
"status": "affected",
"version": "60f1d5e3bac44b598f67d36062da96c095d2b700",
"lessThan": "56d4c9ab84714eebb285a2fee68aaedf81e3ef15",
"versionType": "git"
},
{
"status": "affected",
"version": "60f1d5e3bac44b598f67d36062da96c095d2b700",
"lessThan": "35ae19764eabfe9c29029d3b5713c86e6855acdf",
"versionType": "git"
},
{
"status": "affected",
"version": "60f1d5e3bac44b598f67d36062da96c095d2b700",
"lessThan": "ebb55902856973906c8bb339a3a34824ed4a5086",
"versionType": "git"
},
{
"status": "affected",
"version": "60f1d5e3bac44b598f67d36062da96c095d2b700",
"lessThan": "2dad64a97e1df47f5d9ccb17fa319aa348617226",
"versionType": "git"
},
{
"status": "affected",
"version": "60f1d5e3bac44b598f67d36062da96c095d2b700",
"lessThan": "e5d5f3bd053a5f14787526c9f0f55ef900d43ac6",
"versionType": "git"
},
{
"status": "affected",
"version": "60f1d5e3bac44b598f67d36062da96c095d2b700",
"lessThan": "0a6070839b1ef276d5b05bedfb787743e140fb17",
"versionType": "git"
}
],
"programFiles": [
"include/linux/glob.h",
"kernel/trace/trace_events_filter.c",
"lib/glob.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "4.10"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "4.10",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "5.10.261",
"versionType": "semver",
"lessThanOrEqual": "5.10.*"
},
{
"status": "unaffected",
"version": "5.15.212",
"versionType": "semver",
"lessThanOrEqual": "5.15.*"
},
{
"status": "unaffected",
"version": "6.1.178",
"versionType": "semver",
"lessThanOrEqual": "6.1.*"
},
{
"status": "unaffected",
"version": "6.6.145",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.96",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.39",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.1.4",
"versionType": "semver",
"lessThanOrEqual": "7.1.*"
},
{
"status": "unaffected",
"version": "7.2",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"include/linux/glob.h",
"kernel/trace/trace_events_filter.c",
"lib/glob.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-64299
Source reference:
/cveMetadata/cveId
Publisher severity
high
Source reference: /containers/cna/metrics
- Event
- #41002 · Revision 1
- Added to Heist Feed
- Publisher date