From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D570A38460B4; Thu, 25 Apr 2024 13:42:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D570A38460B4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1714052564; bh=/I7EJB22BHv2QpuKMnmSKoCNQfxhIiPhwOcf46+ovxE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=lQsMEonzS20ya/hbQi4uDlRL/r2xUNhndokEmB7FvZwEcrGzdzJEeaNLTzKP/1bIE SC+dxD1BrMe4hdpFr8aCaYtkmUXMO2uEkmhnZJGXSPbmgKWv54V4nyRiLVUD3lIRW6 Dh2nXeSkEpsni1LAN4d58io5QPJnEQ0u9oCDa5Jo= From: "cvs-commit at gcc dot gnu.org" To: glibc-bugs@sourceware.org Subject: [Bug nscd/31679] nscd: netgroup cache may terminate daemon on memory allocation failure Date: Thu, 25 Apr 2024 13:42:44 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: nscd X-Bugzilla-Version: 2.40 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: fweimer at redhat dot com X-Bugzilla-Target-Milestone: 2.40 X-Bugzilla-Flags: security+ X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31679 --- Comment #8 from Sourceware Commits --- The release/2.37/master branch has been updated by Florian Weimer : https://sourceware.org/git/gitweb.cgi?p=3Dglibc.git;h=3D6e106dc214d6a033a4e= 945d1c6cf58061f1c5f1f commit 6e106dc214d6a033a4e945d1c6cf58061f1c5f1f Author: Florian Weimer Date: Thu Apr 25 15:01:07 2024 +0200 CVE-2024-33601, CVE-2024-33602: nscd: netgroup: Use two buffers in addgetnetgrentX (bug 31680) This avoids potential memory corruption when the underlying NSS callback function does not use the buffer space to store all strings (e.g., for constant strings). Instead of custom buffer management, two scratch buffers are used. This increases stack usage somewhat. Scratch buffer allocation failure is handled by return -1 (an invalid timeout value) instead of terminating the process. This fixes bug 31679. Reviewed-by: Siddhesh Poyarekar (cherry picked from commit c04a21e050d64a1193a6daab872bca2528bda44b) --=20 You are receiving this mail because: You are on the CC list for the bug.=