CVE-2023-52576

x86/mm, kexec, ima: Use memblock_free_late() from ima_free_kexec_buffer()

Medium · published March 2, 2024

CVSS v3.1
5.5
EPSS
0%
Percentile
11.9
In the wild
Unconfirmed
What it is

In the Linux kernel, the following vulnerability has been resolved:

x86/mm, kexec, ima: Use memblock_free_late() from ima_free_kexec_buffer()

The code calling ima_free_kexec_buffer() runs long after the memblock

allocator has already been torn down, potentially resulting in a use

after free in memblock_isolate_range().

With KASAN or KFENCE, this use after free will result in a BUG

from the idle task, and a subsequent kernel panic.

Switch ima_free_kexec_buffer() over to memblock_free_late() to avoid

that bug.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00221 · 11.9th percentile
Published
2024-03-02T21:59Z
EPSS history
Timeline
  • 02 MAR 21:59Z
    x86/mm, kexec, ima: Use memblock_free_late() from ima_free_kexec_buffer()
    cvelistv5