HIGH Introduced in 6.16
s390 AsyncCallback UAF
CVE-2026-97589
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
KernelScan AI7.0HIGH
01Description
In the Linux kernel, the following vulnerability has been resolved: s390/crypto: Fix wrong return code to engine in asynch callbacks When crypto_finalize_hash_request() or crypto_finalize_skcipher_request() explicitly completes a request, the do_one_request callback must return 0 to indicate successful handling. Returning a negative error code causes the crypto engine to assume the driver failed to take ownership and triggers a second completion via crypto_request_complete(), resulting in a double completion. This pattern occurs in paes_s390.c 4 times and once in phmac_s390.c. Fixed in phmac_do_one_request() and all four paes do_one_request callbacks (ecb, cbc, ctr, xts) by returning 0 after explicit finalization instead of propagating the error code.
02KernelScan AI Analysis
Risk summary
On s390 systems using protected-key AES (PAES) or HMAC (PHMAC) crypto algorithms, a local unprivileged user can trigger a double completion of a crypto request, leading to kernel memory corruption. The bug is reachable through the kernel crypto API (e.g., AF_ALG sockets) when an asynchronous operation fails, such as during protected-key invalidation events.
Vulnerability analysis
In the s390 protected-key AES and HMAC crypto drivers, the asynchronous request processing callbacks explicitly finalize a crypto request and then incorrectly propagate the operation's error code back to the crypto engine. The engine interprets a negative return as a failure to take ownership and completes the same request a second time, corrupting kernel memory through a double completion of the request structure. The fix changes all five affected callbacks to return zero after explicit finalization, signaling successful handling to the engine and preventing the spurious second completion. The vulnerable code path is reachable on s390 systems with the protected-key AES or HMAC algorithms in use; a local user can trigger it through the kernel crypto API when an asynchronous operation fails, such as during protected-key invalidation following a guest suspend, resume, or migration event.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.18 | 6.16 | 6.18.53 | 972e0d9b7d1d |
| 7.2 | 6.16 | 7.2.7 | 5480291aa848 |
| mainline | 6.16 | 7.3 | ac1481320110 |