CVE-2026-98540

Source
https://cve.org/CVERecord?id=CVE-2026-98540
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98540.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-98540
Downstream
Published
2026-10-18T15:18:08Z
Modified
2026-10-20T02:30:52Z
Summary
fprobe: Terminate the fgraph_data list when the reservation is not filled
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98540.json"
}
References

Affected packages

Git / 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
e0a384434ae1bdfb03954c46c464e3dbd3223ad6
Fixed
b7459fddcb27a4b7d01067678172afa362cf660d
Fixed
1d653a183973f5283a3db5a38cd5e195eb152244

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98540.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
7.1.0
Fixed
7.2.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98540.json"