Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 805B437DAC2 for ; Sun, 18 Oct 2026 15:26:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792337211; cv=none; b=BHRX+nX5Br4GfWUz1R0cL/I/CosZqgJfm3bDYzDCEKYs+JHcPBcrIw9jncaYmSw8hfhz95jXoJn+O9jGcWnBSU6yx5F5da4wZUucLi0QC6rYtegq8mx2+QyDKUusEuUEozv4b8MIEPiYEbLzBWDhRFsp5YTOOAy+BL+XmW1HJlA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792337211; c=relaxed/simple; bh=yEDK3is786SKactKMl0ta2m9M2Rz8uGMSosC87Zaxvk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JDV0a13nnNfgXE5ErLqjtOiiP7a9mDqbBOtJ4H0lFLOLLNzfBc00o2iUQi/3IFjwGOH7kwfV7adIIbXpSSHWTPZHuSDTkAysqaJFORdTzcxRMaRkZJ0NfxCujrC0YzL52toqZdr+oWjY2JX4GTWC/YaW6smb9Vh9qX7LOxvtHnU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=q1SmRfak; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="q1SmRfak" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6E5D11F000C4; Sun, 18 Oct 2026 15:26:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792337205; bh=1ekKOPse5A4hdZ/8g2TWdi7TCainfEhCoN1NerCuTcQ=; h=From:To:Cc:Subject:Date:Reply-To; b=q1SmRfakX+Paq61MCXoWMkHcuA13VBzifcjrIjarmP7jRlFmT4GRYBc8qehCTfEI1 vnR17jxqQmsBqGHs+p9/LfegRX12UA+MuW3J/Mn0GqmqYla2eJkWHBCNa/7SRMtMi+ 7S9U5xxmaDqP2ly3gEaIik7bINNY1yLq6vgQpVfU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98540: fprobe: Terminate the fgraph_data list when the reservation is not filled Date: Sun, 18 Oct 2026 17:16:44 +0200 Message-ID: <2026101826-CVE-2026-98540-f2d1@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2452; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=4ps1SjLwZCQfflhlDmsEtkVW+stoBiOoJgLffM5rttY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXHvWdzqpTeG9+q6f4i8VztfznQiKzQ1a2T5RevShz/ 6Wmggu7OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiEokMC65OsEiefc79pwy/ +n+Vi+t54x8+FmFYMH9+vznzMfUthWvrfO7L7r5zbNY5eQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-98540 to this issue. Affected and fixed versions =========================== Issue introduced in 7.1 with commit e0a384434ae1bdfb03954c46c464e3dbd3223ad6 and fixed in 7.2.9 with commit b7459fddcb27a4b7d01067678172afa362cf660d Issue introduced in 7.1 with commit e0a384434ae1bdfb03954c46c464e3dbd3223ad6 and fixed in 7.3-rc5 with commit 1d653a183973f5283a3db5a38cd5e195eb152244 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-98540 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: kernel/trace/fprobe.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/b7459fddcb27a4b7d01067678172afa362cf660d https://git.kernel.org/stable/c/1d653a183973f5283a3db5a38cd5e195eb152244