CVE-2022-50159 Information
Description
In the Linux kernel the following vulnerability has been resolved:
of: check previous kernel’s ima-kexec-buffer against memory bounds
Presently ima_get_kexec_buffer() doesn’t check if the previous kernel’s ima-kexec-buffer lies outside the addressable memory range. This can result in a kernel panic if the new kernel is booted with ‘mem=X’ arg and the ima-kexec-buffer was allocated beyond that range by the previous kernel. The panic is usually of the form below:
$ sudo kexec –initrd initrd vmlinux –append=‘mem=16G’
Fix this issue by checking returned PFN range of previous kernel’s ima-kexec-buffer with page_is_ram() to ensure correct memory bounds.
Reference
https://git.kernel.org/stable/c/1b2263d6c86fca8f30e18231778393bfc287bb27 https://git.kernel.org/stable/c/beb5bba5dd132650c073f815c685c60c3e5b783b https://git.kernel.org/stable/c/cbf9c4b9617b6767886a913705ca14b7600c77db https://git.kernel.org/stable/c/dc3b8525f83ac6bbc885bb24bbb8a76f4622200e
Related CNNVD
CNNVD-202506-2447 (Published: 2025-06-18)
Share on: