KernelScan.io

HIGH Introduced in 6.16

s390 AsyncCallback UAF

CVE-2026-97589

CVSS 7.0 / 10.0 NVD

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

KernelScan AI7.0HIGH

01

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.

02

Engine v0.6.0

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.

Affectedarch/s390/crypto/paes_s390.c, arch/s390/crypto/phmac_s390.c (s390 protected-key crypto)

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.

03

BranchIntroducedFixed inPatch commit
6.186.166.18.53972e0d9b7d1d
7.26.167.2.75480291aa848
mainline6.167.3ac1481320110