{"id":"CVE-2026-98540","aliases":["CVE-2026-98540"],"related":[],"kind":"vulnerability","state":"published","title":"fprobe: Terminate the fgraph_data list when the reservation is not filled","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nfprobe: Terminate the fgraph_data list when the reservation is not filled\n\nfprobe_fgraph_entry() reserves shadow stack space for every fprobe with\nan exit handler, but only fills it for those whose entry handler returns\n0. fgraph_reserve_data() does not clear the area, so fprobe_return()\nparses the unused tail as headers left over from an earlier call, and an\nexit handler can run twice or despite its entry handler asking to skip\nit.\n\nWrite a zero word after the last entry to terminate the walk. A zeroed\nslot does not decode to a NULL fprobe on the arches that encode the\nheader into one unsigned long, since arch_decode_fprobe_header_fp() ORs\nin FPROBE_HEADER_MSB_PATTERN, so make read_fprobe_header() return NULL\nfor a zeroed slot.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nfprobe: Terminate the fgraph_data list when the reservation is not filled\n\nfprobe_fgraph_entry() reserves shadow stack space for every fprobe with\nan exit handler, but only fills it for those whose entry handler returns\n0. fgraph_reserve_data() does not clear the area, so fprobe_return()\nparses the unused tail as headers left over from an earlier call, and an\nexit handler can run twice or despite its entry handler asking to skip\nit.\n\nWrite a zero word after the last entry to terminate the walk. A zeroed\nslot does not decode to a NULL fprobe on the arches that encode the\nheader into one unsigned long, since arch_decode_fprobe_header_fp() ORs\nin FPROBE_HEADER_MSB_PATTERN, so make read_fprobe_header() return NULL\nfor a zeroed slot.","source":"cvelist"}],"published":"2026-10-18T15:18:08.352Z","modified":"2026-10-19T10:19:09.837Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"e0a384434ae1bdfb03954c46c464e3dbd3223ad6","fixed":"b7459fddcb27a4b7d01067678172afa362cf660d","status":"affected"},{"type":"git","introduced":"e0a384434ae1bdfb03954c46c464e3dbd3223ad6","fixed":"1d653a183973f5283a3db5a38cd5e195eb152244","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"7.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"7.1","status":"unaffected"},{"type":"semver","introduced":"7.2.9","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/b7459fddcb27a4b7d01067678172afa362cf660d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1d653a183973f5283a3db5a38cd5e195eb152244","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98540","url":"https://www.cve.org/CVERecord?id=CVE-2026-98540","licence":"CVE Terms of Use","modified":"2026-10-19T09:21:23.633Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98540","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98540","licence":"Public domain","modified":"2026-10-19T10:19:09.837Z"}],"updatedAt":"2026-11-25T22:59:45.220Z","epss":{"score":0.00189,"percentile":0.08961,"date":"2026-12-01T12:00:22.000Z"}}