{"id":"CVE-2026-143102","state":"PUBLISHED","title":"arm64: kexec_file: Do not use CMA for images with a non-zero text_offset","description":"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->mem and subtracts it\nfrom kernel_segment->memsz.  For CMA backed segments this breaks the\nload path: the payload is copied to page_address(cma), which is the CMA\nbase, while image->start 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->memsz >> 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->mem.  The normal load path uses\nsegment->mem, so the text_offset adjustment stays consistent there.\nKeep honoring text_offset, but load such images from regular memory by\nsetting image->no_cma: they lose the CMA contiguous allocation, but\nkeep working.","publishedAt":"2026-12-03T09:19:20.564Z","updatedAt":"2026-12-03T09:19:20.564Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"07d24902977e4704fab8472981e73a0ad6dfa1fd","status":"affected","lessThan":"c4480730dd2c0555b4bd4845a1d5c98c70ced9ad","versionType":"git"},{"version":"07d24902977e4704fab8472981e73a0ad6dfa1fd","status":"affected","lessThan":"055b78143cb8d2cd4132dc7f8fd2563495b6f55e","versionType":"git"},{"version":"07d24902977e4704fab8472981e73a0ad6dfa1fd","status":"affected","lessThan":"18f2d01bfce99a885511c451cba95234eea190bc","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/arm64/kernel/kexec_image.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.17","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/arm64/kernel/kexec_image.c"]}],"references":["https://git.kernel.org/stable/c/c4480730dd2c0555b4bd4845a1d5c98c70ced9ad","https://git.kernel.org/stable/c/055b78143cb8d2cd4132dc7f8fd2563495b6f55e","https://git.kernel.org/stable/c/18f2d01bfce99a885511c451cba95234eea190bc"],"weaknesses":[],"ingestedAt":"2026-12-03T09:28:04.553Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143102.json","commit":"9fd484e43f2e14021809e195d28c1172759faad0","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143102","state":"PUBLISHED","datePublished":"2026-12-03T09:19:20.564Z","dateUpdated":"2026-12-03T09:19:20.564Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.349Z"},"containers":{"cna":{"title":"arm64: kexec_file: Do not use CMA for images with a non-zero text_offset","descriptions":[{"lang":"en","value":"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->mem and subtracts it\nfrom kernel_segment->memsz.  For CMA backed segments this breaks the\nload path: the payload is copied to page_address(cma), which is the CMA\nbase, while image->start 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->memsz >> 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->mem.  The normal load path uses\nsegment->mem, so the text_offset adjustment stays consistent there.\nKeep honoring text_offset, but load such images from regular memory by\nsetting image->no_cma: they lose the CMA contiguous allocation, but\nkeep working."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"07d24902977e4704fab8472981e73a0ad6dfa1fd","status":"affected","lessThan":"c4480730dd2c0555b4bd4845a1d5c98c70ced9ad","versionType":"git"},{"version":"07d24902977e4704fab8472981e73a0ad6dfa1fd","status":"affected","lessThan":"055b78143cb8d2cd4132dc7f8fd2563495b6f55e","versionType":"git"},{"version":"07d24902977e4704fab8472981e73a0ad6dfa1fd","status":"affected","lessThan":"18f2d01bfce99a885511c451cba95234eea190bc","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/arm64/kernel/kexec_image.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.17","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/arm64/kernel/kexec_image.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/c4480730dd2c0555b4bd4845a1d5c98c70ced9ad"},{"url":"https://git.kernel.org/stable/c/055b78143cb8d2cd4132dc7f8fd2563495b6f55e"},{"url":"https://git.kernel.org/stable/c/18f2d01bfce99a885511c451cba95234eea190bc"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:19:20.564Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"7.4-rc3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}