From patchwork Thu May 2 20:08:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos O'Donell X-Patchwork-Id: 1930826 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=JgH7spiP; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VVlXX4qbHz1ymc for ; Fri, 3 May 2024 06:14:52 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6E92D384AB58 for ; Thu, 2 May 2024 20:14:50 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 7F47C3858D20 for ; Thu, 2 May 2024 20:14:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7F47C3858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7F47C3858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1714680875; cv=none; b=sq3kkilwsRiUsGzAtqLp0PYieGML6tCIVdIa9hvlXpFI+AX52l/Vr6AO+jpIDhBl03teOGmMe0DrdU40s5J5+utaHI+HsQP/OP1DeubHmWC/fBYMksNMfHsRScnjzAiG3sZK0dEctFWVfscl6gobJrLf6OpK3FOSwW7ct6Wao+A= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1714680875; c=relaxed/simple; bh=lB3/YlFhEQMZNoDYtmzulkksLFqgQxMW0/TeyUneR/M=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=jf7W815od45Ss063rcZTAng3PsgGuHx3m9nk/uGLiKSwFA0MktM91af6NX1PqKOze8aMHWKAUy6wZH8U1NOJokg06/aqPQ+GoUHp+T/pdvPlhkR6IemI+EQU1mkKrlzQtQ1BtaKiJn8eOP4bUrmnOUgiNtaLQKhWxBrZBbBxOP8= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1714680873; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZuvBSIxntg0TGF69Q7jBH6RDttLvfRt8VYNtHU8EvMc=; b=JgH7spiPJy8J2L9uTGIwmtlV5sMkMFDmEV8Zpl0mAXjxMD+qEUkjgBjEKD745Pchu3lZhi A3piiakxX49YbYqJWfd3rzuaIdruRr6JtJrtb2mOyej3v5BKRq/XtxIznHPpgI8//YoAQ6 lzAyldCFJUG38CPIWPBMbEZdW+0nZAI= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-20-pK4tmCp6Pmm6ZqjN19nYHA-1; Thu, 02 May 2024 16:14:32 -0400 X-MC-Unique: pK4tmCp6Pmm6ZqjN19nYHA-1 Received: by mail-qv1-f69.google.com with SMTP id 6a1803df08f44-6a0e8859d2bso35038846d6.3 for ; Thu, 02 May 2024 13:14:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714680871; x=1715285671; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZuvBSIxntg0TGF69Q7jBH6RDttLvfRt8VYNtHU8EvMc=; b=vFPkBaQ/boCuGRJFbB92taulZ9BWeQSA0Vm86hgT4AbQkrvq9Hs/TbTjj9RUHgbKNF kE5vMENNSEcYLGEx8RIfvXqFgdIzc+HTT14I7LC6W9x0aFKJEbX4ycBObxqJjEXZ/a9W 2Sj9P58x1WXxgGW2zrThRfR+b/5nUciFalN8aAk4K9ilUVjJlJ1WdA7yqX4DFsUGLHmq P9VT8aPhivQ+/IszHnESE3XEhzgYkmZzzFm15QuEJ9e6Pp2ZFiKvdbEqkPULgoV6vgVs E2Rc4Gvag0ap2Q/4qeHQzSh9zxnfWWbHQ7aiNsk4a0fxn0YmdYjM80+vcY+tYjfdWRBU MtQg== X-Gm-Message-State: AOJu0Yz8yhldMXhYKsFsU/8a31NpnhRdy9vVhHQRKMrPHu7OHNIJM+yY XY8EgGnKBFICFqixFrbCHt+/39R3SSNqCMsiWISKYXIW6v2XoIKYq5HwzH4ey9avxjPb0X5D/iN n60xUcX21aaqJBAWp/k1QU+eJ43i5yQxvyIp76u4aY+/ior54ewCHoR7t9VQO1VosAucU5loseO 819X8MSZcJvQd3Eqlwrvsbz7NI+OKDUq7lP5+BHAI= X-Received: by 2002:a05:6214:224f:b0:6a0:cd69:375e with SMTP id c15-20020a056214224f00b006a0cd69375emr726904qvc.41.1714680870829; Thu, 02 May 2024 13:14:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFJGE0453UPWOGRET7cMyz+9GgNHVXR8tFCQVpjK5YtyxvKlsxTP80Gf4Kt6BMslgB7CDoaYA== X-Received: by 2002:a05:6214:224f:b0:6a0:cd69:375e with SMTP id c15-20020a056214224f00b006a0cd69375emr726876qvc.41.1714680870328; Thu, 02 May 2024 13:14:30 -0700 (PDT) Received: from athas.redhat.com ([198.48.244.52]) by smtp.gmail.com with ESMTPSA id t10-20020a0cef0a000000b006a0f7d872ccsm611535qvr.59.2024.05.02.13.14.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 13:14:29 -0700 (PDT) From: Carlos O'Donell To: libc-alpha@sourceware.org, Adhemerval Zanella , Siddhesh Poyarekar Cc: Carlos O'Donell Subject: [PATCH v2 1/2] Document CVE-2024-33599, CVE-2024-33600, CVE-2024-33601, CVE-2024-33602 Date: Thu, 2 May 2024 16:08:07 -0400 Message-ID: <20240502201423.3413078-1-carlos@redhat.com> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-type: text/plain; charset=UTF-8 X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_LOTSOFHASH, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org This commit adds advisory data for the above CVE(s). Reviewed-by: Siddhesh Poyarekar --- advisories/GLIBC-SA-2024-0005 | 22 ++++++++++++++++++++++ advisories/GLIBC-SA-2024-0006 | 32 ++++++++++++++++++++++++++++++++ advisories/GLIBC-SA-2024-0007 | 28 ++++++++++++++++++++++++++++ advisories/GLIBC-SA-2024-0008 | 26 ++++++++++++++++++++++++++ 4 files changed, 108 insertions(+) create mode 100644 advisories/GLIBC-SA-2024-0005 create mode 100644 advisories/GLIBC-SA-2024-0006 create mode 100644 advisories/GLIBC-SA-2024-0007 create mode 100644 advisories/GLIBC-SA-2024-0008 diff --git a/advisories/GLIBC-SA-2024-0005 b/advisories/GLIBC-SA-2024-0005 new file mode 100644 index 0000000000..9dc3ff8cf9 --- /dev/null +++ b/advisories/GLIBC-SA-2024-0005 @@ -0,0 +1,22 @@ +nscd: Stack-based buffer overflow in netgroup cache + +If the Name Service Cache Daemon's (nscd) fixed size cache is exhausted +by client requests then a subsequent client request for netgroup data +may result in a stack-based buffer overflow. This flaw was introduced +in glibc 2.15 when the cache was added to nscd. + +This vulnerability is only present the nscd binary. + +CVE-Id: CVE-2024-33599 +Public-Date: 2024-04-23 +Vulnerable-Commit: 684ae515993269277448150a1ca70db3b94aa5bd (2.15) +Fix-Commit: 69c58d5ef9f584ea198bd00f7964d364d0e6b921 (2.31-155) +Fix-Commit: a77064893bfe8a701770e2f53a4d33805bc47a5a (2.32-141) +Fix-Commit: 5c75001a96abcd50cbdb74df24c3f013188d076e (2.33-264) +Fix-Commit: 52f73e5c4e29b14e79167272297977f360ae1e97 (2.34-460) +Fix-Commit: 7a95873543ce225376faf13bb71c43dea6d24f86 (2.35-316) +Fix-Commit: caa3151ca460bdd9330adeedd68c3112d97bffe4 (2.36-165) +Fix-Commit: f75c298e747b2b8b41b1c2f551c011a52c41bfd1 (2.37-91) +Fix-Commit: 5968aebb86164034b8f8421b4abab2f837a5bdaf (2.38-72) +Fix-Commit: 1263d583d2e28afb8be53f8d6922f0842036f35d (2.39-35) +Fix-Commit: 87801a8fd06db1d654eea3e4f7626ff476a9bdaa (2.40) diff --git a/advisories/GLIBC-SA-2024-0006 b/advisories/GLIBC-SA-2024-0006 new file mode 100644 index 0000000000..2f42ab876d --- /dev/null +++ b/advisories/GLIBC-SA-2024-0006 @@ -0,0 +1,32 @@ +nscd: Avoid null pointer crashes after notfound response + +If the Name Service Cache Daemon's (nscd) cache fails to add a not-found +netgroup response to the cache, the client request can result in a null +pointer dereference. This flaw was introduced in glibc 2.15 when the +cache was added to nscd. + +This vulnerability is only present in the nscd binary. + +CVE-Id: CVE-2024-33600 +Public-Date: 2024-04-24 +Vulnerable-Commit: 684ae515993269277448150a1ca70db3b94aa5bd (2.15) +Fix-Commit: b048a482f088e53144d26a61c390bed0210f49f2 (2.40) +Fix-Commit: 7835b00dbce53c3c87bbbb1754a95fb5e58187aa (2.40) +Fix-Commit: c99f886de54446cd4447db6b44be93dabbdc2f8b (2.39-37) +Fix-Commit: 5a508e0b508c8ad53bd0d2fb48fd71b242626341 (2.39-36) +Fix-Commit: 2ae9446c1b7a3064743b4a51c0bbae668ee43e4c (2.38-74) +Fix-Commit: 541ea5172aa658c4bd5c6c6d6fd13903c3d5bb0a (2.38-73) +Fix-Commit: a8070b31043c7585c36ba68a74298c4f7af075c3 (2.37-93) +Fix-Commit: 5eea50c4402e39588de98aa1d4469a79774703d4 (2.37-92) +Fix-Commit: f205b3af56740e3b014915b1bd3b162afe3407ef (2.36-167) +Fix-Commit: c34f470a615b136170abd16142da5dd0c024f7d1 (2.36-166) +Fix-Commit: bafadc589fbe21ae330e8c2af74db9da44a17660 (2.35-318) +Fix-Commit: 4370bef52b0f3f3652c6aa13d7a9bb3ac079746d (2.35-317) +Fix-Commit: 1f94122289a9bf7dba573f5d60327aaa2b85cf2e (2.34-462) +Fix-Commit: 966d6ac9e40222b84bb21674cc4f83c8d72a5a26 (2.34-461) +Fix-Commit: e3eef1b8fbdd3a7917af466ca9c4b7477251ca79 (2.33-266) +Fix-Commit: f20a8d696b13c6261b52a6434899121f8b19d5a7 (2.33-265) +Fix-Commit: be602180146de37582a3da3a0caa4b719645de9c (2.32-143) +Fix-Commit: 394eae338199078b7961b051c191539870742d7b (2.32-142) +Fix-Commit: 8d7949183760170c61e55def723c1d8050187874 (2.31-157) +Fix-Commit: 304ce5fe466c4762b21b36c26926a4657b59b53e (2.31-156) diff --git a/advisories/GLIBC-SA-2024-0007 b/advisories/GLIBC-SA-2024-0007 new file mode 100644 index 0000000000..d4f5d4298c --- /dev/null +++ b/advisories/GLIBC-SA-2024-0007 @@ -0,0 +1,28 @@ +nscd: netgroup cache may terminate daemon on memory allocation failure + +The Name Service Cache Daemon's (nscd) netgroup cache uses xmalloc or +xrealloc and these functions may terminate the process due to a memory +allocation failure resulting in a denial of service to the clients. The +flaw was introduced in glibc 2.15 when the cache was added to nscd. + +This vulnerability is only present the nscd binary. + +Subsequent refactoring of the netgroup cache only added more uses of +xmalloc and xrealloc. Uses of xmalloc and xrealloc in other parts of +nscd only occur during startup of the daemon and so are not affected by +client requests that could trigger an out of memory followed by +termination. + +CVE-Id: CVE-2024-33601 +Public-Date: 2024-04-24 +Vulnerable-Commit: 684ae515993269277448150a1ca70db3b94aa5bd (2.15) +Fix-Commit: c04a21e050d64a1193a6daab872bca2528bda44b (2.40) +Fix-Commit: a9a8d3eebb145779a18d90e3966009a1daa63cd8 (2.39-38) +Fix-Commit: 71af8ca864345d39b746d5cee84b94b430fad5db (2.38-75) +Fix-Commit: 6e106dc214d6a033a4e945d1c6cf58061f1c5f1f (2.37-94) +Fix-Commit: b6742463694b1dfdd5120b91ee21cf05d15ec2e2 (2.36-168) +Fix-Commit: 7a5864cac60e06000394128a5a2817b03542f5a3 (2.35-319) +Fix-Commit: 86f1d5f4129c373ac6fb6df5bcf38273838843cb (2.34-463) +Fix-Commit: 4d27d4b9a188786fc6a56745506cec2acfc51f83 (2.33-267) +Fix-Commit: 3ed195a8ec89da281e3c4bf887a13d281b72d8f4 (2.32-144) +Fix-Commit: bbf5a58ccb55679217f94de706164d15372fbbc0 (2.31-158) diff --git a/advisories/GLIBC-SA-2024-0008 b/advisories/GLIBC-SA-2024-0008 new file mode 100644 index 0000000000..60c0187b76 --- /dev/null +++ b/advisories/GLIBC-SA-2024-0008 @@ -0,0 +1,26 @@ +nscd: netgroup cache assumes NSS callback uses in-buffer strings + +The Name Service Cache Daemon's (nscd) netgroup cache can corrupt memory +when the NSS callback does not store all strings in the provided buffer. +The flaw was introduced in glibc 2.15 when the cache was added to nscd. + +This vulnerability is only present the nscd binary. + +There is no guarantee from the NSS callback API that the returned +strings are all within the buffer. However, the netgroup cache code +assumes that the NSS callback uses in-buffer strings and if it doesn't +the buffer resizing logic could lead to potential memory corruption. + +CVE-Id: CVE-2024-33602 +Public-Date: 2024-04-24 +Vulnerable-Commit: 684ae515993269277448150a1ca70db3b94aa5bd (2.15) +Fix-Commit: c04a21e050d64a1193a6daab872bca2528bda44b (2.40) +Fix-Commit: a9a8d3eebb145779a18d90e3966009a1daa63cd8 (2.39-38) +Fix-Commit: 71af8ca864345d39b746d5cee84b94b430fad5db (2.38-75) +Fix-Commit: 6e106dc214d6a033a4e945d1c6cf58061f1c5f1f (2.37-94) +Fix-Commit: b6742463694b1dfdd5120b91ee21cf05d15ec2e2 (2.36-168) +Fix-Commit: 7a5864cac60e06000394128a5a2817b03542f5a3 (2.35-319) +Fix-Commit: 86f1d5f4129c373ac6fb6df5bcf38273838843cb (2.34-463) +Fix-Commit: 4d27d4b9a188786fc6a56745506cec2acfc51f83 (2.33-267) +Fix-Commit: 3ed195a8ec89da281e3c4bf887a13d281b72d8f4 (2.32-144) +Fix-Commit: bbf5a58ccb55679217f94de706164d15372fbbc0 (2.31-158)