kexec: derive purgatory entry from symbol
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 8652d44f466ad5772e7d1756e9457046189b0dfc · < 36eb314184a0ae74dd42914b47d2b9fc43be8034| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
kexec: derive purgatory entry from symbol
kexec_load_purgatory() derives image->start by locating e_entry inside an SHF_EXECINSTR section. If the purgatory object contains multiple executable sections with overlapping sh_addr, the entrypoint check can match more than once and trigger a WARN.
Derive the entry section from the purgatory_start symbol when present and compute image->start from its final placement. Keep the existing e_entry fallback for purgatories that do not expose the symbol.
WARNING: kernel/kexec_file.c:1009 at kexec_load_purgatory+0x395/0x3c0, CPU#10: kexec/1784 Call Trace: <TASK> bzImage64_load+0x133/0xa00 __do_sys_kexec_file_load+0x2b3/0x5c0 do_syscall_64+0x81/0x610 entry_SYSCALL_64_after_hwframe+0x76/0x7e
[me@linux.beauty: move helper to avoid forward declaration, per Baoquan]
From the CVE record · Linux
The Linux kernel can trigger a warning while loading a kexec purgatory object with overlapping executable section addresses. The warning occurs when the entry-point check matches more than once during kexec loading; the input does not establish whether an attacker can trigger it or what access would be required.
Engineers running Linux kernels that load kexec purgatory objects should check whether their kernel includes the fix; affected versions were not specified.