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 05D8F31B83B for ; Wed, 24 Dec 2025 10:59:32 +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=1766573972; cv=none; b=HCPxBTW0CedLSq+/RtBwAZULYJZeXrvkUdD7Zcwi2xGtERTYt+UQWEirZ2J5mYFd4z9b/8Qwhf05p0NLtzn4HPNl+vuq3OWqVdOOT/1xGxP2JqJxWqDuh2yTDtkRQBBA2dhT3/9bZIYyLXXUbhxUMntscGceSUyJkqa8ChcZx6Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766573972; c=relaxed/simple; bh=PxcA19Bu3MkK7IZ4Lp5OU63a9TFf2l47V9eIkRgI2ig=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IJu37zTPAZcMCeS+HoTevGMN/HSKMvE4jDZBURmHthENQ/nArMD9p8AMDPwfv61QsA0qkt+/uXg0oFaiS/c0amhbawNf0nD6yHlDOC93yBE79GLMI6thjGFbnFaRlhgJ5Wv8+Anv0EoKLtg+uBFqg8Qpb0HXixlAFUxGTVYx2tI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oNRHJDek; 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="oNRHJDek" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 528ADC4CEFB; Wed, 24 Dec 2025 10:59:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766573971; bh=PxcA19Bu3MkK7IZ4Lp5OU63a9TFf2l47V9eIkRgI2ig=; h=From:To:Cc:Subject:Date:Reply-To:From; b=oNRHJDek3A+gDmDfTXDmrWvgcHpGkPgdLl28GLDvzyvnVtL3diekxicGmmq3yERkB 5jWAQT+IxySH/ExKNMLQ+7K6Kef8JB9Mn0wm5INVbeN5Li7n1ePEDd5gIIvKzx+kPa 1x1mY717E8Iriw9e4mgnlNOq6Pn6DUIkAO4Een6E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54033: bpf: fix a memory leak in the LRU and LRU_PERCPU hash maps Date: Wed, 24 Dec 2025 11:57:17 +0100 Message-ID: <2025122437-CVE-2023-54033-ad11@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=2783; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tgcu6ERER9hmiEX/rbdfuoLZ7hBrlDXKsL5jCwobuiM=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnex55Oir3a0NAlqOpv98tOwF0m8ZqvRMZVi6y3JwqEN 9vKxbJ3xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwESW5DLMlc6c4Mt15Jz4xEB1 /fttk7/yzrvoxrBg64ED8VJr52opV1w6V/tO85C9uK8qAA== 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 a memory leak in the LRU and LRU_PERCPU hash maps The LRU and LRU_PERCPU maps allocate a new element on update before locking the target hash table bucket. Right after that the maps try to lock the bucket. If this fails, then maps return -EBUSY to the caller without releasing the allocated element. This makes the element untracked: it doesn't belong to either of free lists, and it doesn't belong to the hash table, so can't be re-used; this eventually leads to the permanent -ENOMEM on LRU map updates, which is unexpected. Fix this by returning the element to the local free list if bucket locking fails. The Linux kernel CVE team has assigned CVE-2023-54033 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit 20b6cc34ea74b6a84599c1f8a70f3315b56a1883 and fixed in 5.15.115 with commit 79ea1a12fb9a8275b6e19d4ca625dd872dedcbb9 Issue introduced in 5.11 with commit 20b6cc34ea74b6a84599c1f8a70f3315b56a1883 and fixed in 6.1.31 with commit 1a9e80f757bbb1562d82e350afce2bb2f712cc3d Issue introduced in 5.11 with commit 20b6cc34ea74b6a84599c1f8a70f3315b56a1883 and fixed in 6.3.5 with commit 965e9cccbe6b9c7b379908cebcb5e3a47f20dd5e Issue introduced in 5.11 with commit 20b6cc34ea74b6a84599c1f8a70f3315b56a1883 and fixed in 6.4 with commit b34ffb0c6d23583830f9327864b9c1f486003305 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-54033 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/hashtab.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/79ea1a12fb9a8275b6e19d4ca625dd872dedcbb9 https://git.kernel.org/stable/c/1a9e80f757bbb1562d82e350afce2bb2f712cc3d https://git.kernel.org/stable/c/965e9cccbe6b9c7b379908cebcb5e3a47f20dd5e https://git.kernel.org/stable/c/b34ffb0c6d23583830f9327864b9c1f486003305