public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Fix two sunrpc buffer overflows
@ 2022-01-12 17:00 Florian Weimer
  2022-01-12 17:00 ` [PATCH 1/4] socket: Add the __sockaddr_un_set function Florian Weimer
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Florian Weimer @ 2022-01-12 17:00 UTC (permalink / raw)
  To: libc-alpha; +Cc: Martin Sebor

The first one was reported by Martin Sebor in 2017, but we didn't fix
it.  Grepping for sun_path I found another similar one.

Tested on i686-linux-gnu, x86_64-linux-gnu.  Built with
build-many-glibcs.py.

Thanks,
Florian

Florian Weimer (3):
  socket: Add the __sockaddr_un_set function
  sunrpc: Fix buffer overflow in clnt_create for "unix" (bug 22542)
  sunrpc: Fix path buffer overflow in svcunix_create (bug 28768)

Martin Sebor (1):
  sunrpc: Test case for clnt_create "unix" buffer overflow (bug 22542)

 NEWS                         |  7 +++-
 include/sys/un.h             | 12 +++++++
 socket/Makefile              |  6 +++-
 socket/sockaddr_un_set.c     | 41 ++++++++++++++++++++++++
 socket/tst-sockaddr_un_set.c | 62 ++++++++++++++++++++++++++++++++++++
 sunrpc/Makefile              |  5 ++-
 sunrpc/clnt_gen.c            | 10 ++++--
 sunrpc/svc_unix.c            | 11 +++----
 sunrpc/tst-bug22542.c        | 44 +++++++++++++++++++++++++
 sunrpc/tst-bug28768.c        | 42 ++++++++++++++++++++++++
 10 files changed, 227 insertions(+), 13 deletions(-)
 create mode 100644 socket/sockaddr_un_set.c
 create mode 100644 socket/tst-sockaddr_un_set.c
 create mode 100644 sunrpc/tst-bug22542.c
 create mode 100644 sunrpc/tst-bug28768.c


base-commit: 0005e54f762b2ec65cee2c4ecf1e9d42612030f0
-- 
2.34.1


^ permalink raw reply	[flat|nested] 12+ messages in thread
* [PATCH v2 0/4] CVE-2022-23218, CVE-2022-23219: sunrpc buffer overflows
@ 2022-01-14  8:23 Florian Weimer
  2022-01-14  8:24 ` [PATCH 3/4] sunrpc: Test case for clnt_create "unix" buffer overflow (bug 22542) Florian Weimer
  0 siblings, 1 reply; 12+ messages in thread
From: Florian Weimer @ 2022-01-14  8:23 UTC (permalink / raw)
  To: libc-alpha

The first one was reported by Martin Sebor in 2017, but we didn't fix
it.  Grepping for sun_path I found another similar one.

v2: Add CVE IDs.

Thanks,
Florian

Florian Weimer (3):
  socket: Add the __sockaddr_un_set function
  CVE-2022-23219: Buffer overflow in sunrpc clnt_create for "unix" (bug
    22542)
  CVE-2022-23218: Buffer overflow in sunrpc svcunix_create (bug 28768)

Martin Sebor (1):
  sunrpc: Test case for clnt_create "unix" buffer overflow (bug 22542)

 NEWS                         |  7 +++-
 include/sys/un.h             | 12 +++++++
 socket/Makefile              |  6 +++-
 socket/sockaddr_un_set.c     | 41 ++++++++++++++++++++++++
 socket/tst-sockaddr_un_set.c | 62 ++++++++++++++++++++++++++++++++++++
 sunrpc/Makefile              |  5 ++-
 sunrpc/clnt_gen.c            | 10 ++++--
 sunrpc/svc_unix.c            | 11 +++----
 sunrpc/tst-bug22542.c        | 44 +++++++++++++++++++++++++
 sunrpc/tst-bug28768.c        | 42 ++++++++++++++++++++++++
 10 files changed, 227 insertions(+), 13 deletions(-)
 create mode 100644 socket/sockaddr_un_set.c
 create mode 100644 socket/tst-sockaddr_un_set.c
 create mode 100644 sunrpc/tst-bug22542.c
 create mode 100644 sunrpc/tst-bug28768.c


base-commit: a78e6a10d0b50d0ca80309775980fc99944b1727
-- 
2.34.1


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

end of thread, other threads:[~2022-01-17  9:42 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-12 17:00 [PATCH 0/4] Fix two sunrpc buffer overflows Florian Weimer
2022-01-12 17:00 ` [PATCH 1/4] socket: Add the __sockaddr_un_set function Florian Weimer
2022-01-12 17:01 ` [PATCH 2/4] sunrpc: Fix buffer overflow in clnt_create for "unix" (bug 22542) Florian Weimer
2022-01-12 17:01 ` [PATCH 3/4] sunrpc: Test case for clnt_create "unix" buffer overflow " Florian Weimer
2022-01-12 17:01 ` [PATCH 4/4] sunrpc: Fix path buffer overflow in svcunix_create (bug 28768) Florian Weimer
2022-01-14  8:23 [PATCH v2 0/4] CVE-2022-23218, CVE-2022-23219: sunrpc buffer overflows Florian Weimer
2022-01-14  8:24 ` [PATCH 3/4] sunrpc: Test case for clnt_create "unix" buffer overflow (bug 22542) Florian Weimer
2022-01-17  3:31   ` Siddhesh Poyarekar
2022-01-17  3:35     ` Siddhesh Poyarekar
2022-01-17  9:15       ` Florian Weimer
2022-01-17  9:30         ` Siddhesh Poyarekar
2022-01-17  9:32           ` Florian Weimer
2022-01-17  9:42             ` Siddhesh Poyarekar

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).