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 C1D614E73BC for ; Thu, 17 Sep 2026 16:27:37 +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=1789662460; cv=none; b=NWoViIPuYcxxj0pSxkKsENyrm7uLcXwXHf5NSOvte3+GQkJPFdHvQw6FpsL5CC0vM7JPlOHgDLhXte2lyHT36f5vv8EsH5dehhGweNkCfUu1xXf1zwgCfQkJYDmZYQV5+weFlgH04pACVA78LxfxCF9iVlJ5Omoy5vg0JKJy1Uo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789662460; c=relaxed/simple; bh=3/U3w5JrR2NgsZ7FWA6DxAlQG1OM+IBjT97dk2sBAeU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kJK97DUeHz7F+dUeMYNPEPfkhKnIVe/J5LXJpWF0vNR+4KhiMHXG3hlmiZNxPUtwh8zcxETNtIftlsVnxle536DT5UKGiTwmZz3Kfvw4gVPoMPWQ0SprtQp2PkLh0rGTzRlqBs+S14dpOGhkyFTHQXv4HjjvZZAj5+/seAWfyWU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CUO4lef7; 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="CUO4lef7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 065361F000FF; Thu, 17 Sep 2026 16:27:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789662457; bh=wl0PsMlXSjFjgK6NcHKqGkKS3HD+kBL01P/BX7/UTYE=; h=From:To:Cc:Subject:Date:Reply-To; b=CUO4lef7DJBWppPfssOBLxhfBsS2m17BRL5UTlZNXJYPO6vzzk69jTFBXc2CifWFK aPbkNpRiJMfh7CYQDLJaM8qtItttnxFWcyCpI6Yddxm3NSW4hDTMU1jpf5unuxTZRq nU0RG0aWYulTi9bkGiFBgifmuJHneGk0zidG1w60= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90359: bpf: Reject >8 byte return values on return-reading trampoline paths Date: Thu, 17 Sep 2026 17:13:09 +0100 Message-ID: <2026091706-CVE-2026-90359-62e7@gregkh> X-Mailer: git-send-email 2.55.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=2928; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xHieaAY5+eL/RvHrNO/iGyk9/nZfCZcXoORsLqXOvcI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBBZJFfMac1ysVJF9ZumbtUh4WkXa8eoXGk4yprvXe Lkk+Ch0xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwERWBzPM09BIuySx4fGv0ujF Qa5q2+sULhsXMcz3W1/adm9h2Cn+P6Z5ddNlJrKH808AAA== 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: bpf: Reject >8 byte return values on return-reading trampoline paths btf_distill_func_proto() builds the function model used for the fentry/fexit/fmod_ret/fsession trampolines and struct_ops. It has accepted a 16-byte __int128 return value since the trampoline was introduced: __get_type_size() returns the integer's type size, and the return-type check only rejected ret < 0. But the BPF trampoline preserves only 8 bytes of the return value (RAX on x86, i.e. R0). For an attach type that reads the target's return value the second half (RDX / R3) is neither saved nor restored, so a program attached to a function returning a 16-byte value corrupts the value seen by the real caller and itself observes only half of it. struct_ops trampolines have the same limitation. This affects the attach types that read the target's return value: fexit, fmod_ret and fsession (plus the _multi variants of fexit and fsession), and struct_ops. fentry/fentry_multi run before the target returns and are unaffected. Reject a >8 byte return value for these attach types in bpf_check_attach_target() and bpf_check_attach_btf_id_multi(), and for struct_ops in bpf_struct_ops_desc_init(). The Linux kernel CVE team has assigned CVE-2026-90359 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit fec56f5890d93fc2ed74166c397dc186b1c25951 and fixed in 7.2.6 with commit d36ac53fc83baf843c51b7afd6d2471f36b713d8 Issue introduced in 5.5 with commit fec56f5890d93fc2ed74166c397dc186b1c25951 and fixed in 7.3-rc1 with commit c48796aa6c392cde93946e5d5a9a1f1b1cf72feb 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-90359 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/bpf/bpf_struct_ops.c kernel/bpf/verifier.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/d36ac53fc83baf843c51b7afd6d2471f36b713d8 https://git.kernel.org/stable/c/c48796aa6c392cde93946e5d5a9a1f1b1cf72feb