CVE-2026-143418: crypto: omap-sham - fix crypto engine cleanup
In the Linux kernel, the following vulnerability has been resolved:
crypto: omap-sham - fix crypto engine cleanup
omapshamprobe() allocates and starts a crypto engine, but the remove path does not call the matching cryptoengineexit(). The probe failure path already performs this cleanup.
cryptoengineallocinit() creates a kthread worker for processing requests. Without cryptoengineexit() during driver removal, the worker is left running after the device is removed.
Call cryptoengineexit() after unregistering the algorithms and before tearing down the remaining request handling resources. This stops the engine and destroys its worker.
This issue was found by manual code inspection.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the omap-sham driver removal path, call crypto_engine_exit() after unregistering the algorithms and before tearing down the remaining request-handling resources.
Event History
Frequently Asked Questions
What systems are exposed to this issue?
Systems using the Linux kernel OMAP SHAM crypto driver are exposed when that driver is removed. The issue concerns cleanup of the driver's crypto-engine worker during device or driver removal.
What condition is required to trigger the problem?
The OMAP SHAM driver must first be probed so that it allocates and starts its crypto engine, and then the driver or device must be removed. The vulnerable remove path omits crypto_engine_exit(), leaving the worker running after removal.
What happens if the issue is triggered?
A kthread worker created for processing crypto requests can remain running after the associated device has been removed. The corrected cleanup sequence stops the crypto engine and destroys that worker.
Is there a temporary mitigation if the fix cannot be applied immediately?
The provided information identifies driver or device removal as the triggering condition. Avoiding removal of an active OMAP SHAM driver or its device prevents the described unclean shutdown condition.