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 D796431A813 for ; Wed, 24 Dec 2025 10:59:58 +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=1766573998; cv=none; b=KRXQHaXQorLcCfg9pSHXhvX+lnu7ChQwDbwsbJ9WVX7EO1q3UC6IOmUX4bl0SZraJeWI7k6cXTn95RFVGvrVuDjqdiMzzOk1gMloImdD7FAob4kcNWql0HgzQDhmfV0C+Y1Go9BC14SoRiX/TDiCiSeJWMhmN4DDUY0TFTOMSJE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766573998; c=relaxed/simple; bh=t+7XhjmT/4ftdO/3lxCVDVFn4C9bLzaePWg9NgpD5T4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=I1Gt6CWOQWG4tE3zdNSRHa1XSK/oB5AvDvNBU2UFo+gSA1BfCQICsyUjVBJKnV7CnZnpAix80j9BXZ6Poe+s3boMoywvkEafShOc8ujMXDUc6yvEjuzOoyvHy8GZH2+5+9Zzxma61VAlOYGV31AHYAJYOGiGHz0JW3+BJh3I1OY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FfSJTaet; 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="FfSJTaet" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EAE0DC4CEFB; Wed, 24 Dec 2025 10:59:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766573998; bh=t+7XhjmT/4ftdO/3lxCVDVFn4C9bLzaePWg9NgpD5T4=; h=From:To:Cc:Subject:Date:Reply-To:From; b=FfSJTaetmu362j6PHnC6LFB++DIWpitG5Gykb5zXh6iEuXo8n63C5vlxA7nqfGhN+ 5o05nk8orI8L+VPrsEEGtjYny7SsJUMGcheYohXz647aAi7QekZsfKPkozV5AAm5Iu lGOjc0F/IaglpxZq6H1IWiMSKUEfEYN9LMxQMtLU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54041: io_uring: fix memory leak when removing provided buffers Date: Wed, 24 Dec 2025 11:57:25 +0100 Message-ID: <2025122440-CVE-2023-54041-57f4@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=2387; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Ql4PDNMzJ8FB4q3seK/7q87YwBddd02gmhleREqn0GY=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnex17I39gT5yjw5pPPz2Yx3ZbDXJ3X3n66rjU7wMGSq zswclVORywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExEzodhnt6kjMt3Lxt8qLLM 7Y9aqJuWaC93m2HBwl9iIv/1z93be+C52VOf2rDjh02VAA== 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: io_uring: fix memory leak when removing provided buffers When removing provided buffers, io_buffer structs are not being disposed of, leading to a memory leak. They can't be freed individually, because they are allocated in page-sized groups. They need to be added to some free list instead, such as io_buffers_cache. All callers already hold the lock protecting it, apart from when destroying buffers, so had to extend the lock there. The Linux kernel CVE team has assigned CVE-2023-54041 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit cc3cec8367cba76a8ae4c271eba8450f3efc1ba3 and fixed in 6.1.24 with commit ac48787f58d1068f4e06d627c1135784d64b4c72 Issue introduced in 5.18 with commit cc3cec8367cba76a8ae4c271eba8450f3efc1ba3 and fixed in 6.2.11 with commit c117c15927772d1624c29c092b6bd3f47c7faa48 Issue introduced in 5.18 with commit cc3cec8367cba76a8ae4c271eba8450f3efc1ba3 and fixed in 6.3 with commit b4a72c0589fdea6259720375426179888969d6a2 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-54041 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: io_uring/io_uring.c io_uring/kbuf.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/ac48787f58d1068f4e06d627c1135784d64b4c72 https://git.kernel.org/stable/c/c117c15927772d1624c29c092b6bd3f47c7faa48 https://git.kernel.org/stable/c/b4a72c0589fdea6259720375426179888969d6a2