Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 537CC2D4B40 for ; Tue, 30 Dec 2025 12:12:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096737; cv=none; b=J+Zx9SDS6nXJhd9ac3W9/3VlW5oOD+oK/nKtNevKyTE8YCn1R2L1HSrX4vCkINWQ9rF3Jri7PI9QAjg3oprb0se2xQ13RwdfWfg3wmKqkW/aKmaz9oS/6hZaCgRTTal32i3QW53m3nhlxYjidZQoVs8Yx9M4JwLIhO0g8zGwgH0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096737; c=relaxed/simple; bh=3izz/c7Vd+2kxJcBzA3u/KVOHqMolEec7VAtZXVkNHM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QNtRL2qWQFvXXso82fW7yZ3epS5/ehSvH8iE+jRC27T/BfIaTj71zKz2AkTlFTiMUf2Q9cwtoIgii7Cm7PU4/ubXtnIb56HPq3xnQzm87HNXFiyETnNGgnW4tojd85BrPtcYizwKlSMEHeVOp7uzCaOnZZFCoMlgqes5ZQxxWRs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=A7keZnev; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="A7keZnev" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49D6AC113D0; Tue, 30 Dec 2025 12:12:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767096735; bh=3izz/c7Vd+2kxJcBzA3u/KVOHqMolEec7VAtZXVkNHM=; h=From:To:Cc:Subject:Date:Reply-To:From; b=A7keZnevWQi6W8hFkFJJY4WMxzO4/6YP+8V15V65J9PxSlzMlXUCe5M3bM/kVYytJ 38cMQGWfY1cS+vz4sfKTmCPByt3zN+48lwWqlSlPqIBTHAbz+55afsFUawcTwjZrHT dVs5ezxET7f5ELtuBzLO4gTx49ReWwaOmFz8VGP8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54181: bpf: Fix issue in verifying allow_ptr_leaks Date: Tue, 30 Dec 2025 13:09:49 +0100 Message-ID: <2025123024-CVE-2023-54181-ef94@gregkh> X-Mailer: git-send-email 2.52.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=2716; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fAOlD103OgItZxBodxb5qAtAW8QJgnHd+HkLkJDaEzo=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBB77w5t+OWbHx3B6DnpxzhQdu1WTNy3wh6m56ac69X zdr3uWLdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE4o8wzPdj/djb+V2w6erH 3k/P5lZ/DJiw2ZRhnjHH7Xk2ryaF3e+1SH8RIZP469gRFwA= 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 issue in verifying allow_ptr_leaks After we converted the capabilities of our networking-bpf program from cap_sys_admin to cap_net_admin+cap_bpf, our networking-bpf program failed to start. Because it failed the bpf verifier, and the error log is "R3 pointer comparison prohibited". A simple reproducer as follows, SEC("cls-ingress") int ingress(struct __sk_buff *skb) { struct iphdr *iph = (void *)(long)skb->data + sizeof(struct ethhdr); if ((long)(iph + 1) > (long)skb->data_end) return TC_ACT_STOLEN; return TC_ACT_OK; } Per discussion with Yonghong and Alexei [1], comparison of two packet pointers is not a pointer leak. This patch fixes it. Our local kernel is 6.1.y and we expect this fix to be backported to 6.1.y, so stable is CCed. [1]. https://lore.kernel.org/bpf/CAADnVQ+Nmspr7Si+pxWn8zkE7hX-7s93ugwC+94aXSy4uQ9vBg@mail.gmail.com/ The Linux kernel CVE team has assigned CVE-2023-54181 to this issue. Affected and fixed versions =========================== Fixed in 6.1.53 with commit c96c67991aac6401b4c6996093bccb704bb2ea4b Fixed in 6.4.16 with commit 5927f0172d2809d8fc09c1ba667280b0387e9f73 Fixed in 6.5.3 with commit acfdc8b77016c8e648aadc283177546c88083dd3 Fixed in 6.6 with commit d75e30dddf73449bc2d10bb8e2f1a2c446bc67a2 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-2023-54181 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/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/c96c67991aac6401b4c6996093bccb704bb2ea4b https://git.kernel.org/stable/c/5927f0172d2809d8fc09c1ba667280b0387e9f73 https://git.kernel.org/stable/c/acfdc8b77016c8e648aadc283177546c88083dd3 https://git.kernel.org/stable/c/d75e30dddf73449bc2d10bb8e2f1a2c446bc67a2