From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4E79F3AA943F; Thu, 15 Jul 2021 07:40:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4E79F3AA943F From: "fweimer at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug network/28091] New: nss_name_skip may return 0 for domain names without terminator Date: Thu, 15 Jul 2021 07:40:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: network X-Bugzilla-Version: 2.34 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fweimer at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jul 2021 07:40:06 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28091 Bug ID: 28091 Summary: nss_name_skip may return 0 for domain names without terminator Product: glibc Version: 2.34 Status: NEW Severity: normal Priority: P2 Component: network Assignee: unassigned at sourceware dot org Reporter: fweimer at redhat dot com Target Milestone: --- ns_name_skip returns 0 (indicating success) for a buffer that contains the = two bytes 1, 1 (no terminating null label or compression indicator). Callers probably expect that the function reports failure because the message is corrupted. I do not think this is a security vulnerability because in typical packet layouts, a two-byte item follows the domain name, so the caller has to perf= orm a separate length check for the remaining buffer anyway. --=20 You are receiving this mail because: You are on the CC list for the bug.=