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 1E2933E3D8D for ; Wed, 27 May 2026 12:22:53 +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=1779884575; cv=none; b=nS+lgJdIunPv1WdRr20+tghKSU8jXiBSno5Y7cHXmohHz1EAkJDqc+Xw9AnFAI8IdmgIFyyeZl3z/cN5Dn5veh41OekfRf1QKzRqjiZfkm1poWHOLyEgAQBlUsNDu6CEveAzCor2/bBEzhi7IMWh5rA1WTsNg+ZotqsUUu+dyQ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884575; c=relaxed/simple; bh=DVndBBZGfhKCs17ZtNNx5USKFsMUTJk/whXwhOV/edk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OrLldLDQ0g6KQJ3jBUox46o9IFz172UUL8vqY4TWHAAIXyh3DN2hnyLvfGt/kGJ3v6s6J1V7G2lTKpSxeV33MnesYF77f5esnKDF8ap1p/GvjJTW6YRuHB9heRyvCgs+bNSil49NRVoMKShlFbeAxK24ZC/3X/gTdUDATcAc5dM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kJ/U1Uvg; 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="kJ/U1Uvg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE4CE1F000E9; Wed, 27 May 2026 12:22:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779884573; bh=kRH7lOMiwTBc5Bwl864Jrp9/0nzoiCL4AW82/owZuxQ=; h=From:To:Cc:Subject:Date:Reply-To; b=kJ/U1UvgiFsOa8jHNFVKU6cYoeraJLlxw5LHORl3WbCVwqJ8cIa6Ngi7QAYEYapbw 8aqambkDLEszebXKom7ya+fVPNovSiWEz8cuHACxXB/V9xegKAU8oq0t4Qp9iz1x/Z /NPRhSdb55rJVV9vdfjGZSvtjvxoRfl7/JnWVAYY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45903: bpf: Fix memory access flags in helper prototypes Date: Wed, 27 May 2026 14:19:05 +0200 Message-ID: <2026052720-CVE-2026-45903-dac2@gregkh> X-Mailer: git-send-email 2.54.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=3152; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=QdI+AKGDotTuc6g5Obr7QlJZtskc9Vuc9Wye1Y3rdJY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFliD3k+TD5X4WA5kUHsacK/t4uuLmHYrihiunJDSNmzO YVu8f9edMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBELlQzzGZR4r/FzTtRftUq 9e4f39c8CI2bspBhQcvbGDO9kznBqxP43qstOpvgfK+THQA= 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: Fix memory access flags in helper prototypes After commit 37cce22dbd51 ("bpf: verifier: Refactor helper access type tracking"), the verifier started relying on the access type flags in helper function prototypes to perform memory access optimizations. Currently, several helper functions utilizing ARG_PTR_TO_MEM lack the corresponding MEM_RDONLY or MEM_WRITE flags. This omission causes the verifier to incorrectly assume that the buffer contents are unchanged across the helper call. Consequently, the verifier may optimize away subsequent reads based on this wrong assumption, leading to correctness issues. For bpf_get_stack_proto_raw_tp, the original MEM_RDONLY was incorrect since the helper writes to the buffer. Change it to ARG_PTR_TO_UNINIT_MEM which correctly indicates write access to potentially uninitialized memory. Similar issues were recently addressed for specific helpers in commit ac44dcc788b9 ("bpf: Fix verifier assumptions of bpf_d_path's output buffer") and commit 2eb7648558a7 ("bpf: Specify access type of bpf_sysctl_get_name args"). Fix these prototypes by adding the correct memory access flags. The Linux kernel CVE team has assigned CVE-2026-45903 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit 37cce22dbd51a3ef7f6c08c3fb5f1c5075a17fbb and fixed in 6.18.14 with commit fdfe75161f6e8c41a7d3023fbb815b537107b806 Issue introduced in 6.14 with commit 37cce22dbd51a3ef7f6c08c3fb5f1c5075a17fbb and fixed in 6.19.4 with commit aa319592892068bd960c1a1c07bd621085b0c63d Issue introduced in 6.14 with commit 37cce22dbd51a3ef7f6c08c3fb5f1c5075a17fbb and fixed in 7.0 with commit 802eef5afb1865bc5536a5302c068ba2215a1f72 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-45903 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/helpers.c kernel/bpf/syscall.c kernel/trace/bpf_trace.c net/core/filter.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/fdfe75161f6e8c41a7d3023fbb815b537107b806 https://git.kernel.org/stable/c/aa319592892068bd960c1a1c07bd621085b0c63d https://git.kernel.org/stable/c/802eef5afb1865bc5536a5302c068ba2215a1f72