{"id":"CVE-2026-64299","summary":"tracing: Prevent out-of-bounds read in glob matching","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ntracing: Prevent out-of-bounds read in glob matching\n\nString event fields are not necessarily NUL-terminated, so the filter\npredicate functions (filter_pred_string(), filter_pred_strloc() and\nfilter_pred_strrelloc()) pass the field length to the regex match\ncallbacks, and the length-aware matchers honour it.\n\nregex_match_glob() was the exception: it ignored the length and called\nglob_match(), which scans the string until it hits a NUL byte. Some\nstring fields are not NUL-terminated. One example is the dynamic char\narray of the xfs_* namespace tracepoints, which is copied without a\ntrailing NUL. For such a field, glob matching reads past the end of\nthe event field, causing a KASAN slab-out-of-bounds read in\nglob_match(), reached via regex_match_glob() and filter_match_preds()\nfrom the xfs_lookup tracepoint.\n\nAdd a length-bounded glob_match_len() and use it from regex_match_glob()\nso glob matching always stops at the field boundary. The matching loop\nis factored into a shared helper so glob_match() keeps its behaviour.","modified":"2026-07-28T04:02:14.981393124Z","published":"2026-07-25T08:49:35.742Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64299.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0a6070839b1ef276d5b05bedfb787743e140fb17"},{"type":"WEB","url":"https://git.kernel.org/stable/c/265f3a690f6c7d69ef7d2ca50b04b4853a211df3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2dad64a97e1df47f5d9ccb17fa319aa348617226"},{"type":"WEB","url":"https://git.kernel.org/stable/c/35ae19764eabfe9c29029d3b5713c86e6855acdf"},{"type":"WEB","url":"https://git.kernel.org/stable/c/56d4c9ab84714eebb285a2fee68aaedf81e3ef15"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e5d5f3bd053a5f14787526c9f0f55ef900d43ac6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ebb55902856973906c8bb339a3a34824ed4a5086"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ee5b8888d3248618251fb69a2fad92afcb81557e"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64299.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64299"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"60f1d5e3bac44b598f67d36062da96c095d2b700"},{"fixed":"265f3a690f6c7d69ef7d2ca50b04b4853a211df3"},{"fixed":"ee5b8888d3248618251fb69a2fad92afcb81557e"},{"fixed":"56d4c9ab84714eebb285a2fee68aaedf81e3ef15"},{"fixed":"35ae19764eabfe9c29029d3b5713c86e6855acdf"},{"fixed":"ebb55902856973906c8bb339a3a34824ed4a5086"},{"fixed":"2dad64a97e1df47f5d9ccb17fa319aa348617226"},{"fixed":"e5d5f3bd053a5f14787526c9f0f55ef900d43ac6"},{"fixed":"0a6070839b1ef276d5b05bedfb787743e140fb17"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64299.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.10.0"},{"fixed":"5.10.261"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.212"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.178"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.145"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.96"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.39"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.1.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64299.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H"}]}