Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-97589 Overview
CVE-2026-97589 affects the Linux kernel's s390 cryptographic subsystem. The flaw involves incorrect return codes from asynchronous crypto engine callbacks in paes_s390.c and phmac_s390.c. When crypto_finalize_hash_request() or crypto_finalize_skcipher_request() explicitly completes a request, the do_one_request callback must return 0. Returning a negative error code causes the crypto engine to assume the driver failed to take ownership, triggering a second completion via crypto_request_complete(). This produces a double completion condition that can corrupt kernel state on IBM Z (s390) systems using the Protected AES (PAES) or Protected HMAC (PHMAC) drivers.
Critical Impact
A double completion in kernel crypto callbacks can lead to memory corruption, use-after-free, or kernel instability affecting confidentiality, integrity, and availability on affected s390 systems.
Affected Products
- Linux kernel on s390 architecture with paes_s390 driver (ecb, cbc, ctr, xts modes)
- Linux kernel on s390 architecture with phmac_s390 driver
- IBM Z systems leveraging kernel protected-key crypto acceleration
Discovery Timeline
- 2026-09-25 - CVE-2026-97589 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-97589
Vulnerability Analysis
The Linux kernel crypto engine framework uses an asynchronous request-completion contract. Drivers implement a do_one_request callback that the engine invokes for each queued request. The return value signals ownership semantics to the engine.
When a driver calls crypto_finalize_hash_request() or crypto_finalize_skcipher_request() directly, the request has already been completed. In this case the callback must return 0. Returning a negative error code causes the engine to interpret the result as a failed takeover and invoke crypto_request_complete() on the same request. The result is a double completion, where the same request structure is finalized twice.
Double completion in kernel crypto paths produces undefined behavior. The second completion may dereference freed memory, double-release skcipher or ahash contexts, and leave the engine's internal state inconsistent. On IBM Z systems using protected-key hardware acceleration, workloads performing high volumes of AES or HMAC operations are the most likely to trigger the race.
Root Cause
The root cause is incorrect propagation of error codes from internal helper paths after explicit finalization. The four PAES callbacks (ecb, cbc, ctr, xts) and phmac_do_one_request() returned the error code produced during processing instead of returning 0 after finalizing the request. This violates the crypto engine's documented callback contract and introduces a logic flaw [CWE-separate from memory primitives] that materializes as a double-completion defect.
Attack Vector
Exploitation requires local access with low privileges on an affected s390 host. An attacker with the ability to submit crypto requests through the kernel crypto API, for example via AF_ALG sockets or in-kernel consumers reachable from userspace, can drive the vulnerable code paths. The attack complexity is high because triggering the double-completion race requires specific conditions in the finalize path during protected-key operations. Successful exploitation can impact kernel integrity and availability, with potential for memory corruption primitives on the affected architecture.
No synthetic exploit code is provided. See the upstream fixes referenced below for exact call-site changes.
Detection Methods for CVE-2026-97589
Indicators of Compromise
- Kernel log entries referencing paes_s390 or phmac_s390 with crypto engine errors or warnings around request completion
- Unexpected kernel oops or panic traces originating in crypto_finalize_skcipher_request or crypto_finalize_hash_request call paths
- KASAN reports flagging use-after-free in skcipher or ahash request contexts on s390 kernels
Detection Strategies
- Inventory s390 Linux hosts and identify kernel versions that predate the fix commits 5480291a, 972e0d9b, and ac1481320110
- Monitor dmesg and journald for repeated crypto-engine warnings tied to PAES or PHMAC drivers
- Correlate kernel crash telemetry with workloads using AF_ALG sockets or kernel TLS on IBM Z
Monitoring Recommendations
- Forward kernel logs from s390 hosts to a centralized logging platform and alert on crypto subsystem oops traces
- Track package and kernel versions across the IBM Z fleet to confirm patch coverage
- Enable crash collection (kdump) on s390 systems to capture evidence of double-completion failures for forensic review
How to Mitigate CVE-2026-97589
Immediate Actions Required
- Apply the upstream kernel fixes referenced by commits 5480291a, 972e0d9b, and ac1481320110
- Prioritize patching on IBM Z production systems running cryptographic workloads with protected-key acceleration
- Restrict local user access to crypto interfaces such as AF_ALG where feasible until patches are deployed
Patch Information
The fix updates phmac_do_one_request() and all four PAES do_one_request callbacks (ecb, cbc, ctr, xts) to return 0 after explicit finalization through crypto_finalize_hash_request() or crypto_finalize_skcipher_request(), instead of propagating the error code. Distribution-specific backports should be tracked through vendor security advisories for Red Hat, SUSE, Ubuntu, and Debian s390x kernels.
Workarounds
- Disable or avoid loading the paes_s390 and phmac_s390 modules on systems where protected-key acceleration is not required
- Limit untrusted local workloads on affected IBM Z hosts until patched kernels are deployed
- Enforce least-privilege access controls to reduce the set of local users able to submit crypto requests
# Verify loaded s390 crypto modules and plan removal where unused
lsmod | grep -E 'paes_s390|phmac_s390'
# Prevent the vulnerable modules from loading until patched
echo 'blacklist paes_s390' | sudo tee /etc/modprobe.d/cve-2026-97589.conf
echo 'blacklist phmac_s390' | sudo tee -a /etc/modprobe.d/cve-2026-97589.conf
sudo depmod -a
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

