There's a use-after-free vulnerability in grub_cmd_chainloader() function; The chainloader command is used to boot up operating systems that doesn't support multiboot and do not have direct support from GRUB2. When executing chainloader more than once a use-after-free vulnerability is triggered. If an attacker can control the GRUB2's memory allocation pattern sensitive data may be exposed and arbitrary code execution can be achieved.
The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.
Link | Tags |
---|---|
https://www.openwall.com/lists/oss-security/2022/06/07/5 | third party advisory mailing list |
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-28736 | third party advisory issue tracking |
https://security.netapp.com/advisory/ntap-20230825-0002/ |