{"id":"CVE-2026-64299","revision":"3b8231cd82e84bd693033a0778f52b3c","records":[{"revision":"3b8231cd82e84bd693033a0778f52b3c","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-64299","aliases":[],"title":"tracing: Prevent out-of-bounds read in glob matching","description":"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.","state":0,"publishedAt":"2026-07-25T08:49:35.742+00:00","modifiedAt":"2026-10-19T20:38:22.703+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"include/linux/glob.h\",\n                        \"kernel/trace/trace_events_filter.c\",\n                        \"lib/glob.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"60f1d5e3bac44b598f67d36062da96c095d2b700\",\n                            \"lessThan\": \"265f3a690f6c7d69ef7d2ca50b04b4853a211df3\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"60f1d5e3bac44b598f67d36062da96c095d2b700\",\n                            \"lessThan\": \"ee5b8888d3248618251fb69a2fad92afcb81557e\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"60f1d5e3bac44b598f67d36062da96c095d2b700\",\n                            \"lessThan\": \"56d4c9ab84714eebb285a2fee68aaedf81e3ef15\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"60f1d5e3bac44b598f67d36062da96c095d2b700\",\n                            \"lessThan\": \"35ae19764eabfe9c29029d3b5713c86e6855acdf\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"60f1d5e3bac44b598f67d36062da96c095d2b700\",\n                            \"lessThan\": \"ebb55902856973906c8bb339a3a34824ed4a5086\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"60f1d5e3bac44b598f67d36062da96c095d2b700\",\n                            \"lessThan\": \"2dad64a97e1df47f5d9ccb17fa319aa348617226\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"60f1d5e3bac44b598f67d36062da96c095d2b700\",\n                            \"lessThan\": \"e5d5f3bd053a5f14787526c9f0f55ef900d43ac6\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"60f1d5e3bac44b598f67d36062da96c095d2b700\",\n                            \"lessThan\": \"0a6070839b1ef276d5b05bedfb787743e140fb17\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"include/linux/glob.h\",\n                        \"kernel/trace/trace_events_filter.c\",\n                        \"lib/glob.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"4.10\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"4.10\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"5.10.261\",\n                            \"lessThanOrEqual\": \"5.10.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"5.15.212\",\n                            \"lessThanOrEqual\": \"5.15.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.1.178\",\n                            \"lessThanOrEqual\": \"6.1.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.6.145\",\n                            \"lessThanOrEqual\": \"6.6.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.12.96\",\n                            \"lessThanOrEqual\": \"6.12.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.18.39\",\n                            \"lessThanOrEqual\": \"6.18.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.1.4\",\n                            \"lessThanOrEqual\": \"7.1.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.2\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"severity":"HIGH"}],"references":["https://git.kernel.org/stable/c/265f3a690f6c7d69ef7d2ca50b04b4853a211df3","https://git.kernel.org/stable/c/ee5b8888d3248618251fb69a2fad92afcb81557e","https://git.kernel.org/stable/c/56d4c9ab84714eebb285a2fee68aaedf81e3ef15","https://git.kernel.org/stable/c/35ae19764eabfe9c29029d3b5713c86e6855acdf","https://git.kernel.org/stable/c/ebb55902856973906c8bb339a3a34824ed4a5086","https://git.kernel.org/stable/c/2dad64a97e1df47f5d9ccb17fa319aa348617226","https://git.kernel.org/stable/c/e5d5f3bd053a5f14787526c9f0f55ef900d43ac6","https://git.kernel.org/stable/c/0a6070839b1ef276d5b05bedfb787743e140fb17"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-64299","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-64299","identifiers":["CVE-2026-64299"]},"retained":false,"historicalAffected":[]}],"coverage":[]}