Date: Tue, 25 Jan 2022 04:18:40 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 261454] Fix a possible Null pointer dereference about svc_xprt_alloc() Message-ID: <bug-261454-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261454 Bug ID: 261454 Summary: Fix a possible Null pointer dereference about svc_xprt_alloc() 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 231294 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D231294&action= =3Dedit A simple fix for this bugs In sys/rpc/svc_vc.c() file, the return value of svc_xprt_alloc() is not che= cked before the dereference in svc_vc_create_conn() function, svc_vc_create_backchannel() function and svc_vc_create(). svc_xprt_alloc() could return NULL on failure of allocation, which could lead to NULL pointer dereference. Fix this bugs by adding checks of svc_xprt_alloc() in all three functions. 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-261454-227>