{"id":"CVE-2026-143102","summary":"arm64: kexec_file: Do not use CMA for images with a non-zero text_offset","details":"In the Linux kernel, the following vulnerability has been resolved:\n\narm64: kexec_file: Do not use CMA for images with a non-zero text_offset\n\nimage_load() adds text_offset to kernel_segment-\u003emem and subtracts it\nfrom kernel_segment-\u003ememsz.  For CMA backed segments this breaks the\nload path: the payload is copied to page_address(cma), which is the CMA\nbase, while image-\u003estart is set to the adjusted address, so kexec jumps\ninto the middle of the kernel.  kimage_map_segment() has the same\nmismatch when a segment has been moved.\n\nThe adjusted memsz also breaks the release path: the CMA pages are\nfreed using segment-\u003ememsz \u003e\u003e PAGE_SHIFT, which is fewer than were\nallocated, leaking the tail of the allocation.\n\nBoth problems are specific to CMA segments, which are accessed through\npage_address(cma) and ignore segment-\u003emem.  The normal load path uses\nsegment-\u003emem, so the text_offset adjustment stays consistent there.\nKeep honoring text_offset, but load such images from regular memory by\nsetting image-\u003eno_cma: they lose the CMA contiguous allocation, but\nkeep working.","modified":"2026-12-03T11:01:19.505603094Z","published":"2026-12-03T09:19:20.564Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143102.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/055b78143cb8d2cd4132dc7f8fd2563495b6f55e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/18f2d01bfce99a885511c451cba95234eea190bc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c4480730dd2c0555b4bd4845a1d5c98c70ced9ad"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143102.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143102"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"07d24902977e4704fab8472981e73a0ad6dfa1fd"},{"fixed":"c4480730dd2c0555b4bd4845a1d5c98c70ced9ad"},{"fixed":"055b78143cb8d2cd4132dc7f8fd2563495b6f55e"},{"fixed":"18f2d01bfce99a885511c451cba95234eea190bc"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143102.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.17.0"},{"fixed":"6.18.66"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143102.json"}}],"schema_version":"1.9.2"}