[Bug 261457] Fix a possible Null pointer dereference in mld_is_addr_reported()
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 261457] Fix a possible Null pointer dereference in mld_is_addr_reported()"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 261457] Fix a possible Null pointer dereference in mld_is_addr_reported()"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 261457] Fix a possible Null pointer dereference in mld_is_addr_reported()"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 25 Jan 2022 07:11:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261457 Bug ID: 261457 Summary: Fix a possible Null pointer dereference in mld_is_addr_reported() Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: zhou1615@umn.edu Created attachment 231297 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=231297&action=edit A simple fix for this bug In mld_is_addr_reported(), the return value of mli_alloc_locked() is assigned to mli and there is a dereference of it after that, which could lead to NULL pointer dereference on failure of allocation. Fix this bug by adding a NULL check of mli. This bug is found by a static analyzer, please advise. -- You are receiving this mail because: You are the assignee for the bug.