Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: cee9d1b16bdcd7fe8bad6b39fe18af0a15941ca4
      
https://github.com/tianocore/edk2/commit/cee9d1b16bdcd7fe8bad6b39fe18af0a15941ca4
  Author: Kun Qin <[email protected]>
  Date:   2024-07-17 (Wed, 17 Jul 2024)

  Changed paths:
    M MdeModulePkg/Core/Dxe/Mem/HeapGuard.c

  Log Message:
  -----------
  MdeModulePkg: DxeCore: Fix Use-After-Free guard causing page fault

REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2411

With Use-After-Free heap guard feature enabled, the DxeCore would blindly
attempt to "level-up" when the `GuardAllFreedPages` inspect a non-max
level table entry from the last loop. This could cause the next round of
inspection to dereference a potentially null pointer and as such causing
a page fault.

This change adds a null pointer check to prevent such case from happening.

Cc: Liming Gao <[email protected]>

Signed-off-by: Kun Qin <[email protected]>



To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to