AZL-116845: CVE-2026-139055 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
ARM: imx: Fix suspend/resume crash with Clang CFI
The suspend code that runs from OCRAM is copied there with fncpy(), which does not copy the kCFI type hash preceding the function. With CONFIGCFI=y the indirect call through imx6suspendinocramfn therefore panics.
Keep the call covered by CFI instead of exempting it:
- Add SYMTYPEDFUNCSTARTALIGNED(), a variant of SYMTYPEDFUNCSTART() that aligns the function entry rather than the type hash preceding it, and use it to declare imx6suspend(): fncpy() requires the entry point of the function it copies to be 8-byte aligned. The macro lives in arch/arm/include/asm/linkage.h since the requirement comes from arm's fncpy().
- Add a cfitype member at the end of struct imx6cpupminfo, which directly precedes the OCRAM copy of the function. It fits in the struct's tail padding, so no sizes or offsets change. Fill it using cfigetfunchash(), putting the hash where the caller's CFI check expects it: four bytes before the function entry.
Also mark ccmbase, suspendocrambase and imx6suspendinocramfn as roafterinit: they are only written during init, and the function pointer in particular should not be writable afterwards.
Affected Software
Event History
Frequently Asked Questions
Which systems are exposed to the suspend/resume crash?
The issue affects the ARM i.MX suspend path when the kernel is built with CONFIG_CFI=y. The failure occurs when suspend code copied into OCRAM is invoked through the indirect imx6_suspend_in_ocram_fn call.
What is required to trigger the failure?
A suspend/resume operation must reach the OCRAM-resident suspend function on an affected ARM i.MX system with Clang CFI enabled. The copied function lacks the expected kCFI type hash, causing the indirect-call CFI check to panic.