CVE-2026-143413: crypto: zynqmp-sha - fix NULL pointer dereference in init_tfm
In the Linux kernel, the following vulnerability has been resolved:
crypto: zynqmp-sha - fix NULL pointer dereference in inittfm
zynqmpshainittfm() checks cryptoshashstatesize(tfmctx->fbktfm) before assigning the fallback transform to it, which dereferences a NULL pointer since the transform context is zero-initialized. Use the local fallbacktfm pointer for the size check instead.
Affected Software
Event History
Frequently Asked Questions
What systems are exposed to this issue?
Systems using the Linux kernel's zynqmp-sha crypto driver are exposed when the affected transform initialization path is reached. The provided information does not identify specific kernel versions or configurations.
What is required to trigger the failure?
The failure occurs during zynqmp_sha_init_tfm() when it checks the fallback transform's state size before assigning the fallback transform pointer. Because the transform context is zero-initialized, that check dereferences a NULL pointer.
How can I determine whether my kernel contains the fix?
Check whether zynqmp_sha_init_tfm() uses the local fallback_tfm pointer when calling crypto_shash_statesize() before assigning it to the transform context. The references provide the stable kernel commits containing the correction.