CVE-2026-98540

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

Published Oct 18, 2026 CVSS 3.1 · 4.4 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The issue is in the Linux kernel’s fprobe instrumentation. fprobe_fgraph_entry() allocates shadow stack space for each fprobe that has an exit handler, but it only populates that space when the entry handler returns 0. Because fgraph_reserve_data() does not zero the memory, a later call to fprobe_return() interprets the leftover uninitialized data as header information from a prior call. This misinterpretation can cause an exit handler to execute twice or be skipped, altering the intended control flow. The weakness is identified as a misuse of uninitialized data (CWE‑908).

Affected Systems

All Linux kernel builds that include fprobe instrumentation are affected. Any kernel that has not incorporated the repository commits that patch this flaw is vulnerable, regardless of release version.

Risk and Exploitability

The CVSS score of 4.4 indicates a moderate severity, and the EPSS score of <1% shows a very low likelihood of exploitation in the wild. The vulnerability is not listed in the CISA KEV catalog. The flaw is local to the kernel and would require an attacker with local or elevated privileges to trigger misuse of fprobe headers, potentially leading to altered kernel behavior, but no public exploit is documented.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that includes the patch, such as the commits referenced in the advisory
  • If an immediate update is infeasible, disable fprobe instrumentation by setting kernel.fprobe_enable=0 via sysctl or a boot parameter
  • Keep the system’s kernel logs enabled and review them regularly for signs of abnormal fprobe handler execution or kernel panics

Generated by OpenCVE AI on October 23, 2026 at 07:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-457
Type Values Removed Values Added
Weaknesses CWE-908
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-457
Type Values Removed Values Added
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.
Title fprobe: Terminate the fgraph_data list when the reservation is not filled
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-908

    Use of Uninitialized Resource

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 19, 2026, 9:21 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Oct 18, 2026, 4:17 PM
Modified
Oct 19, 2026, 10:19 AM
Severity
Moderate
Public date
Oct 18, 2026, 12:00 AM