CVE-2026-143015: dm-crypt: reject integrity_key_size with non-authenc AEAD ciphers
In the Linux kernel, the following vulnerability has been resolved:
dm-crypt: reject integritykeysize with non-authenc AEAD ciphers
When integritykeysize parameter is paired with a pure AEAD cipher that is not an authenc composite, cryptctrauthcipher() returns 0 early without allocating cc->authenckey, but cc->keymacsize remains non-zero because CRYPTKEYMACSIZESET was set during option parsing. As a result cryptcopyauthenckey() dereferences NULL crashes the kernel.
Reject the contradictory configuration explicitly instead of silently returning 0, so userspace gets a clear -EINVAL.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Avoid pairing integrity_key_size with a pure AEAD cipher that is not an authenc composite.
dm-crypt integrity_key_size = Do not set when using a pure AEAD cipher that is not an authenc composite
Event History
Frequently Asked Questions
What configuration is required to trigger the kernel crash?
The dm-crypt integrity_key_size parameter must be used with a pure AEAD cipher that is not an authenc composite. This contradictory combination leaves the authentication key unallocated while retaining a non-zero MAC key size, leading to a NULL dereference.
What is the impact of exploitation?
Triggering the affected configuration crashes the Linux kernel. The described behavior is a denial of service rather than an indication of data disclosure or privilege escalation.
How does the fix change behavior?
The fix explicitly rejects this invalid cipher and integrity_key_size combination and returns -EINVAL to userspace, rather than accepting it and later crashing the kernel.