CVE-2026-98222: KEYS: encrypted: fix integer overflow of datablob_len

Published Oct 6, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

KEYS: encrypted: fix integer overflow of databloblen

encryptedkeyalloc() stores databloblen in a u16. It is computed from multiple string and payload lengths. If the result exceeds U16MAX, the assignment truncates the allocation size. KASAN reports a 32760-byte slab-out-of-bounds write when ekeyinit() copies the master key description into the undersized buffer.

The total payload length stored in key->datalen is also a u16. Use checkaddoverflow() to reject values that do not fit either destination, and use kzallocflex() for the flexible-array allocation.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In encrypted_key_alloc(), use check_add_overflow() to reject payload lengths that do not fit the u16 datablob_len and key->datalen destinations, and use kzalloc_flex() for the flexible-array allocation to prevent undersized buffers.

Event History

Oct 6, 2026
CVE Published
via MITRE·08:44 AM
Data Sourced
via MITRE·08:44 AM
Description
Data Sourced
via NVD·09:18 AM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203