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
Oct 7, 2026
Data Sourced
via Microsoft·08:18 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What condition is required to trigger the overflow?

The combined lengths used to calculate datablob_len must exceed U16_MAX. Because the value is stored in a u16, the allocation size is truncated while later initialization can copy data based on the larger original length.

2

What is the impact of a successful trigger?

The undersized allocation can lead to a slab out-of-bounds write when __ekey_init() copies the master key description. The reported KASAN observation was a 32,760-byte out-of-bounds write.

3

How can I tell whether the fix is present?

Check whether the kernel includes overflow validation using check_add_overflow() for values stored in datablob_len and key->datalen, along with the kzalloc_flex() flexible-array allocation change. The listed stable-kernel references identify commits containing the resolution.

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