"NULL Pointer Derefrence" in subr_bus.c

MGY mgyxl0320 at qq.com
Wed Oct 14 08:22:21 UTC 2020


Hello,

 

There is a “NULL Pointer Dereference” risk to report:

Abstract:

sys/kern/subr_bus.c:1013 Access to filed ‘flags’ results in a derefernce of a null pointer (loaded from field ‘parent’).

Code segment:

In function “devclass_find_internal”,

1013  dc->parent = devclass_find_internal(parentname, NULL, TRUE);

1014  dc->parent->flags |= DC_HAS_CHILDREN;

Triggering conditions:

Once line 1013 failed in finding the ‘parent’, in line 1014(->flags) where a null point dereference occurred.


More information about the freebsd-bugs mailing list