CVE-2026-139055: ARM: imx: Fix suspend/resume crash with Clang CFI

Published Nov 30, 2026
·
Updated

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

1 affected component
Linux Linux kernel

Event History

Nov 30, 2026
CVE Published
via MITRE·01:27 PM
Data Sourced
via MITRE·01:27 PM
Description

Frequently Asked Questions

1

Which systems are exposed to the crash?

The affected path is in the ARM i.MX suspend implementation, specifically the imx6 suspend function copied into OCRAM. The described failure requires a kernel built with CONFIG_CFI=y.

2

When does the failure occur?

It occurs during suspend or resume when the kernel makes an indirect call through imx6_suspend_in_ocram_fn. The call can panic because the OCRAM copy made with fncpy() lacks the expected kCFI type hash.

3

Does this affect kernels built without Clang CFI?

The reported panic is specifically described for CONFIG_CFI=y. The provided information does not identify an equivalent failure for kernels without that configuration.

4

How can I recognize that a system is affected?

Look for a kernel panic during suspend or resume on an ARM i.MX system using CONFIG_CFI=y, involving the indirect call through imx6_suspend_in_ocram_fn. The failure is associated with the suspend function copied to OCRAM.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203