# CVE-2026-98540: fprobe: Terminate the fgraph_data list when the reservation is not filled

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2026-10-18T15:18:08.352Z
- Modified: 2026-10-19T10:19:09.837Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

fprobe: Terminate the fgraph_data list when the reservation is not filled

fprobe_fgraph_entry() reserves shadow stack space for every fprobe with
an exit handler, but only fills it for those whose entry handler returns
0. fgraph_reserve_data() does not clear the area, so fprobe_return()
parses the unused tail as headers left over from an earlier call, and an
exit handler can run twice or despite its entry handler asking to skip
it.

Write a zero word after the last entry to terminate the walk. A zeroed
slot does not decode to a NULL fprobe on the arches that encode the
header into one unsigned long, since arch_decode_fprobe_header_fp() ORs
in FPROBE_HEADER_MSB_PATTERN, so make read_fprobe_header() return NULL
for a zeroed slot.

(As written by CVE List.)

## Affected

- Linux Linux: from e0a384434ae1bdfb03954c46c464e3dbd3223ad6 before b7459fddcb27a4b7d01067678172afa362cf660d; from e0a384434ae1bdfb03954c46c464e3dbd3223ad6 before 1d653a183973f5283a3db5a38cd5e195eb152244; 7.1 (not affected: before 7.1; from 7.2.9 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/b7459fddcb27a4b7d01067678172afa362cf660d>
- <https://git.kernel.org/stable/c/1d653a183973f5283a3db5a38cd5e195eb152244>

## Sources

- CVE List: [CVE-2026-98540](https://www.cve.org/CVERecord?id=CVE-2026-98540), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-98540](https://nvd.nist.gov/vuln/detail/CVE-2026-98540), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-98540 · Whole record: https://cve.day/CVE-2026-98540.json · Rebuilt by cve.day 2026-11-25T22:59:45.220Z
