public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug network/28091] New: nss_name_skip may return 0 for domain names without terminator
@ 2021-07-15  7:40 fweimer at redhat dot com
  2021-07-15  7:41 ` [Bug network/28091] " fweimer at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: fweimer at redhat dot com @ 2021-07-15  7:40 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=28091

            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 perform
a separate length check for the remaining buffer anyway.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-07-20  9:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-15  7:40 [Bug network/28091] New: nss_name_skip may return 0 for domain names without terminator fweimer at redhat dot com
2021-07-15  7:41 ` [Bug network/28091] " fweimer at redhat dot com
2021-07-19  8:30 ` cvs-commit at gcc dot gnu.org
2021-07-19  8:41 ` fweimer at redhat dot com
2021-07-20  9:52 ` [Bug network/28091] ns_name_skip " fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).