From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796047573; b=MR4eKfYYDYCIO29WhDCRrNv0h+ek+4eUfFXUucEpUYjdFm49MajZhMSsF+YHAVn7+r0k 0XP5z7L6dyZyDhgCAGFIrHpMfz1Hrz5JZRsZbnksi3HCCuuXlIV9Qee8e759HtT5gq8/1 B3ItbQNQties9lLJatZDe5SiNmTAlY3n+/1wEjwoqlIc8uXubd3aq2jRBMbzVZzcK+lct X60cctv0/YfKCKhirZwMdkrAp1ogbZSRFt2tC5yY8ge5b+n+fKTnBEGSJ/AcWv9ZPhWZt kclB+AWGojp2jiIt1IZQqxJFWhv9ZBZCHABPzRQLI6QAYbWPYw5lQ0SQlorAnHKYeMQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796047573; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=aGMewnHivQ8EsAz/5J9tPdGCucZsPvS7LeRN4JOypts=; b=cGmVNHpaGgP0J48OO6PLWHKT5O8Z5TeqJ2DLo2ERhfrFlc5/2Pvgi9YZCV7bgM9aiQT1 ZGw+6CyuTzX8G4q+iAXVQsNlZRBiDDDHULUocpySO1viUsaJAOOvigxWXMaWC6L52ITBl /PvZmWse0n1tLc3A6enriZPCmVQDXOfQ5uMJeR9ZLoVQafgdJbdfUygAaA810Muj02GF2 BaXH+2knNpRa1JU73TpBOKRlduzI1mIgWgFaDyxVJkuYwCViTV1oyhrZhAXGgjaIM4cql uXkW6/PSRi8SJp/biD7Rwgt1ZsjkJLuka5ZV2n3L2UqPjXOZfc68IUW+syD0ODfVHlw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=UEMjEWT7; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 10FF4606A334 for ; Mon, 30 Nov 2026 14:06:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=UEMjEWT7 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93F651F00898; Mon, 30 Nov 2026 14:06:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796047572; bh=aGMewnHivQ8EsAz/5J9tPdGCucZsPvS7LeRN4JOypts=; h=From:To:Cc:Subject:Date:Reply-To; b=UEMjEWT7FVSSVfxx/6TJBJL/aFGee7NMjH/kq5hJbDMOIbnu0OShMDyCwdXNJujUr 0B5PNxmULN5BRRvgoYDURZCIlWekARpu5FvLT/iXTjRnzL/xXs6fwUfjaarK7vNrkN MYaapofbZLd8cziOMNo/87nqDOjUkFoXbJk37ubo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-139317: bpf: Don't saturate owner_refcnt on the last unpin Date: Mon, 30 Nov 2026 14:35:26 +0100 Message-ID: <2026113013-CVE-2026-139317-e2ea@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2404; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=EvetypVuUkaUhwDt8WaZYMqf7jEGbqWqsmFYDY7n4BI=; b=owGbwMvMwCRo6H6F97bub03G02pJDNm8VXftnZ32zE87svPKwZ1N+l1N7AcclL0uRCskJPTPM +/xchfuiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIlYTGJYcEH69/6lRV8FxXsf 7rwxY/bOTwlRhxjmO/1gO9nfqz7z0KQz/NN+3qjzE7c9DgA= 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: Don't saturate owner_refcnt on the last unpin bpf_local_storage_map_free() pins the owner with refcount_inc_not_zero() while it uncharges an element. The pin counts when bpf_local_storage_destroy() could not get local_storage->lock: destroy() then goes on, drops the owner's reference and spins until the count is zero. So the pin is the last reference whenever it is needed, and refcount_dec() takes that for a bug: it warns "decrement hit 0; leaking memory" and saturates the count. Unless destroy() happens to read the count between the two stores it spins for ever, under rcu_read_lock(). Drop the pin with refcount_dec_and_test(). The Linux kernel CVE team has assigned CVE-2026-139317 to this issue. Affected and fixed versions =========================== Issue introduced in 7.0 with commit 5d800f87d0a5ea1b156c47a4b9fd128479335153 and fixed in 7.3.6 with commit f2c55a9b936da22525988d9040f528d6feb78359 Issue introduced in 7.0 with commit 5d800f87d0a5ea1b156c47a4b9fd128479335153 and fixed in 7.4-rc1 with commit 30a140c9d479974021f5c3eecb64415c96419c3f 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-139317 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: include/linux/bpf_local_storage.h kernel/bpf/bpf_local_storage.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/f2c55a9b936da22525988d9040f528d6feb78359 https://git.kernel.org/stable/c/30a140c9d479974021f5c3eecb64415c96419c3f