CVE-2026-143183: KEYS: Reject descriptions larger than KEY_MAX_DESC_SIZE
In the Linux kernel, the following vulnerability has been resolved:
KEYS: Reject descriptions larger than KEYMAXDESCSIZE
KEYMAXDESCSIZE includes the trailing NULL character. Descriptions generated from payloads and in-kernel paths bypass the userspace limit.
Reject descriptions at or above KEYMAXDESCSIZE with -EINVAL at the following sites:
- keyalloc(): before quota calculation - keycreateorupdate(): before keysetindexkey() - keyringsearch(): before matchpreparse - requestkeyandlink(): before matchpreparse - requestkeyrcu(): before checkcachedkey()
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.276 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.227 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.120 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7
Event History
Frequently Asked Questions
Which key-description sources can reach the affected paths?
Descriptions generated from payloads and from in-kernel paths can bypass the userspace length limit. The affected handling points include allocation, create-or-update, keyring search, and request-key operations.
How does the fix handle an oversized description?
Descriptions whose length is at or above KEY_MAX_DESC_SIZE are rejected with -EINVAL. The checks occur before quota calculation, index-key setup, match preparation, or cached-key checking, depending on the operation.