CVE-2026-74578
Received Received - Intake

Race Condition in Linux Kernel Crypto API skcipher

Vulnerability report for CVE-2026-74578, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-16

Last updated on: 2026-08-16

Assigner: kernel.org

Description

In the Linux kernel, the following vulnerability has been resolved: crypto: algif_skcipher - force synchronous processing on trees without ctx->state The AIO/async path in skcipher_recvmsg() passes the socket-wide ctx->iv directly into the skcipher request. After io_submit() the socket lock is dropped and the request is processed asynchronously, so a concurrent sendmsg(ALG_SET_IV) can overwrite ctx->iv and make the in-flight request run under an attacker-controlled IV. For CTR/stream modes this is IV/keystream reuse and lets an unprivileged user recover the plaintext of a concurrent operation. Snapshotting ctx->iv into per-request storage for the async path is not sufficient. For ciphers with statesize == 0 - which includes cbc and ctr - the MSG_MORE inter-chunk IV chaining is carried solely by the in-place req->iv writeback, which a snapshot redirects into per-request memory that af_alg_free_resources() releases on completion, silently producing wrong output. Writing the IV back from the completion callback instead is not possible either: that would require lock_sock() there, but the callback can run in softirq/atomic context, so it must not sleep. Make the operation synchronous instead, which removes both the IV race and any writeback race. This is equivalent to the upstream resolution, commit fcc77d33a34c ("net: Remove support for AIO on sockets"), which removed the AIO socket path across net/ entirely and so produces the same end state for this file. This patch deviates from that commit deliberately: rather than removing AIO socket support tree-wide, which would be far too invasive for stable, it removes only the AIO branch in crypto/algif_skcipher.c. io_submit() now completes synchronously; AF_ALG async is rarely used in practice. The -EIOCBQUEUED check in skcipher_recvmsg() is now dead but harmless, and is left alone to keep the fix minimal. Tested on 6.6.y: attacker IV injection dropped from 2296/200000 to 0/200000 after the change; MSG_MORE chunked CTR output bit-identical to single-shot.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-16
Last Modified
2026-08-16
Generated
2026-08-16
AI Q&A
2026-08-16
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
linux linux_kernel 6.6
linux linux_kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in the Linux kernel involves a race condition in the crypto subsystem's skcipher_recvmsg() function. It allows an unprivileged user to overwrite the initialization vector (IV) used in encryption operations, leading to IV reuse in certain cipher modes like CTR or stream ciphers. This can enable plaintext recovery of encrypted data from concurrent operations.

Detection Guidance

This vulnerability is specific to the Linux kernel's crypto subsystem and does not have a direct network-based detection method. Detection requires checking the kernel version and configuration. Use commands like 'uname -r' to check the kernel version and verify if it is affected. If your kernel version is below the patched version, the system is likely vulnerable.

Impact Analysis

If exploited, this vulnerability could allow an attacker to decrypt sensitive data being processed by the affected system. This is particularly dangerous for systems handling confidential information, as it could lead to unauthorized data exposure or manipulation of encrypted communications.

Compliance Impact

This vulnerability could potentially impact compliance with GDPR and HIPAA by enabling unauthorized plaintext recovery of encrypted data. Exploitation allows an attacker to decrypt sensitive information processed by the Linux kernel's crypto subsystem, which may include personal or health data subject to strict confidentiality requirements under these regulations.

Mitigation Strategies

Apply the latest kernel security updates from your Linux distribution. If immediate patching is not possible, consider disabling the AF_ALG socket interface or restricting access to the crypto subsystem. Monitor vendor advisories for patches addressing CVE-2026-74578.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-74578. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart