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 DDFD82DC339 for ; Fri, 23 Jan 2026 15:25:36 +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=1769181936; cv=none; b=nunIYJENjslON7ly15o0Kcwv251S2hbDQnUoxXD0TGVKRMU9rK5un6+Dfp/G9jiZ34XUryD2KM4Lqk1Vi+5Li/ma7y8NL5xcBfa5s/wZH+m+sCPFBoxJAiGIEEQ3zimfUKAJ/VdsHLSmAjlZ9C67yziia8PRbaM0XkBwpvDFkK0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769181936; c=relaxed/simple; bh=RjucivVTJPsGKw0JjzwFQC7vs1ZlFWkg/HIwC17GAzs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=X8ZxC2+zzsdVrl4DixBI4hKcJnvv0khRuUwVPXP3cKLlMLkgxtLZzIwAVQRR/w8p/KDOzC9tkLcfZV+aCXXfdfuJYKad07ca7dIUM8x/tQT+ck+7D24T2wTYIqI85T0m/JhPiV6yskzrt6gEK+HQzLSP2BKekc1DR6W/UjvAI4A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=n2azeDyO; 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="n2azeDyO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0773C4CEF1; Fri, 23 Jan 2026 15:25:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1769181936; bh=RjucivVTJPsGKw0JjzwFQC7vs1ZlFWkg/HIwC17GAzs=; h=From:To:Cc:Subject:Date:Reply-To:From; b=n2azeDyOZxmln61EXMwRMcshgPAdOkiNL5uJxDSGp/Hy+7S3z7+J8Yb3l2aBz2Hk9 lvOTcU+ku0F5rNqbnfKy9qa9kMDwC9ZDcb1WgxLmGSOggccuCPFYf8BXOTQU7S0XWg 72GrqJI7xQXE+TjPzjDsgwP34UOrA4m1a7lTpbQ4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-22991: libceph: make free_choose_arg_map() resilient to partial allocation Date: Fri, 23 Jan 2026 16:25:02 +0100 Message-ID: <2026012351-CVE-2026-22991-e4a2@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=2908; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xq6fiuyyaHylU1N3JhMgSObfr5zeRZN3lnUr5Rc62zI=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnFkw6nNXJHnF7JtXB3r7bkX51dpo9Kli09y6AkyvxW5 eXi2I+pHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARBTuGmYweOzO2fDpwI+hA 5h/5yHkPk9jWX2dYsCfmbZqpi6hVyta9B9ZN+LLx6OGfSQA= 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: libceph: make free_choose_arg_map() resilient to partial allocation free_choose_arg_map() may dereference a NULL pointer if its caller fails after a partial allocation. For example, in decode_choose_args(), if allocation of arg_map->args fails, execution jumps to the fail label and free_choose_arg_map() is called. Since arg_map->size is updated to a non-zero value before memory allocation, free_choose_arg_map() will iterate over arg_map->args and dereference a NULL pointer. To prevent this potential NULL pointer dereference and make free_choose_arg_map() more resilient, add checks for pointers before iterating. The Linux kernel CVE team has assigned CVE-2026-22991 to this issue. Affected and fixed versions =========================== Fixed in 5.10.248 with commit 9b3730dabcf3764bfe3ff07caf55e641a0b45234 Fixed in 5.15.198 with commit 851241d3f78a5505224dc21c03d8692f530256b4 Fixed in 6.1.161 with commit ec1850f663da64842614c86b20fe734be070c2ba Fixed in 6.6.121 with commit 8081faaf089db5280c3be820948469f7c58ef8dd Fixed in 6.12.66 with commit c4c2152a858c0ce4d2bff6ca8c1d5b0ef9f2cbdf Fixed in 6.18.6 with commit f21c3fdb96833aac2f533506899fe38c19cf49d5 Fixed in 6.19-rc5 with commit e3fe30e57649c551757a02e1cad073c47e1e075e 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-22991 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: net/ceph/osdmap.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/9b3730dabcf3764bfe3ff07caf55e641a0b45234 https://git.kernel.org/stable/c/851241d3f78a5505224dc21c03d8692f530256b4 https://git.kernel.org/stable/c/ec1850f663da64842614c86b20fe734be070c2ba https://git.kernel.org/stable/c/8081faaf089db5280c3be820948469f7c58ef8dd https://git.kernel.org/stable/c/c4c2152a858c0ce4d2bff6ca8c1d5b0ef9f2cbdf https://git.kernel.org/stable/c/f21c3fdb96833aac2f533506899fe38c19cf49d5 https://git.kernel.org/stable/c/e3fe30e57649c551757a02e1cad073c47e1e075e