Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jan 2022 05:16:22 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 261455] Fix a possible Null pointer dereference in svc_dg_create()
Message-ID:  <bug-261455-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261455

            Bug ID: 261455
           Summary: Fix a possible Null pointer dereference in
                    svc_dg_create()
           Product: Base System
           Version: Unspecified
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: zhou1615@umn.edu

Created attachment 231295
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D231295&action=
=3Dedit
A simple fix for this bug

In sys/rpc/svc_dg.c file, the return value of svc_xprt_alloc() is assigned =
to
xprt
and there is a dereference of it right after that, which would lead to NULL
pointer
dereference on failure of allocation.

Fix this bug by adding a NULL check of xprt.

This bug is found by static analyzer, please advise.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-261455-227>