Description
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]
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
f368aed4827bd4276c0e3664fb2cb815a8d7caf3 to < 027797595a108726f4a0a45d225f603b0ffbd22baffectedd38e051ec6fd8650b139d9bc4b0b8b261953b263 to < 1737d37ae1d2814e6cf0a1af87af3d41f0812b95affected013027918a4efa807409fcb356009c117e4d181a to < f736032c638a33a243e9126e617788f763d648f9affected8652d44f466ad5772e7d1756e9457046189b0dfc to < cfccd3b8c51bc57a8a6fcb2fd30453afae5bc0d2affected8652d44f466ad5772e7d1756e9457046189b0dfc to < 875355152b33436907c2a6d2ffad1431fa86c62baffected8652d44f466ad5772e7d1756e9457046189b0dfc to < 36eb314184a0ae74dd42914b47d2b9fc43be8034affected8652d44f466ad5772e7d1756e9457046189b0dfc to < 5226570bd252cea2e805a161cb0f75c204c3108aaffected8652d44f466ad5772e7d1756e9457046189b0dfc to < 480e1d5c64bb14441f79f2eb9421d5e26f91ea3daffected4947a0eb7d642b6048559857964966016ef3aa8baffectedb16bf76b382810257e3fb6278663a9d131b70197affectedcb1638618545182a01444b2b20a4ed6b9d2a8c8faffected5.10.185 to < 5.10.252affected5.15.118 to < 5.15.202affected6.1.35 to < 6.1.165affected4.19.287 to < 4.20affected5.4.248 to < 5.5affected6.3.9 to < 6.4affected
Linux Linux
Default version status: affected
6.4affected0 to < 6.4unaffected5.10.252 to ≤ 5.10.*unaffected5.15.202 to ≤ 5.15.*unaffected6.1.165 to ≤ 6.1.*unaffected6.6.128 to ≤ 6.6.*unaffected6.12.75 to ≤ 6.12.*unaffected6.18.16 to ≤ 6.18.*unaffected6.19.6 to ≤ 6.19.*unaffected7.0 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/027797595a108726f4a0a45d225f603b0ffbd22b ↗
- https://git.kernel.org/stable/c/1737d37ae1d2814e6cf0a1af87af3d41f0812b95 ↗
- https://git.kernel.org/stable/c/f736032c638a33a243e9126e617788f763d648f9 ↗
- https://git.kernel.org/stable/c/cfccd3b8c51bc57a8a6fcb2fd30453afae5bc0d2 ↗
- https://git.kernel.org/stable/c/875355152b33436907c2a6d2ffad1431fa86c62b ↗
- https://git.kernel.org/stable/c/36eb314184a0ae74dd42914b47d2b9fc43be8034 ↗
- https://git.kernel.org/stable/c/5226570bd252cea2e805a161cb0f75c204c3108a ↗
- https://git.kernel.org/stable/c/480e1d5c64bb14441f79f2eb9421d5e26f91ea3d ↗