crypto: caam - Prevent crash on suspend with iMX8QM / iMX8ULP
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.12.446.16.46.17In the Linux kernel, the following vulnerability has been resolved:
crypto: caam - Prevent crash on suspend with iMX8QM / iMX8ULP
Since the CAAM on these SoCs is managed by another ARM core, called the SECO (Security Controller) on iMX8QM and Secure Enclave on iMX8ULP, which also reserves access to register page 0 suspend operations cannot touch this page.
This is similar to when running OPTEE, where OPTEE will reserve page 0.
Track this situation using a new state variable no_page0, reflecting if page 0 is reserved elsewhere, either by other management cores in SoC or by OPTEE.
Replace the optee_en check in suspend/resume with the new check.
optee_en cannot go away as it's needed elsewhere to gate OPTEE specific situations.
Fixes the following splat at suspend:
From the CVE record · Linux
The Linux kernel’s CAAM driver can crash during suspend on affected i.MX8 systems when it accesses a register page reserved by another core or OP-TEE. The reported crash occurs during a local suspend operation; the input does not establish whether authentication is required or whether an attacker can trigger it remotely.
Engineers running the Linux kernel on i.MX8QM or i.MX8ULP systems using CAAM should check their builds; affected versions are not specified.