KEYS: encrypted: fix integer overflow of datablob_len
- CVE-2026-98222
- GHSA-8jg9-f732-244h
- EUVD-2026-93150
Description
In the Linux kernel, the following vulnerability has been resolved: KEYS: encrypted: fix integer overflow of datablob_len encrypted_key_alloc() stores datablob_len in a u16. It is computed from multiple string and payload lengths. If the result exceeds U16_MAX, the assignment truncates the allocation size. KASAN reports a 32760-byte slab-out-of-bounds write when __ekey_init() copies the master key description into the undersized buffer. The total payload length stored in key->datalen is also a u16. Use check_add_overflow() to reject values that do not fit either destination, and use kzalloc_flex() for the flexible-array allocation.
Text from the CVE.org record.
Affected
Linux
- 2.6.38
- before 2.6.38: not affected
- from 6.1.193 up to 6.1.*: not affected
- from 6.6.163 up to 6.6.*: not affected
- from 6.12.112 up to 6.12.*: not affected
- from 6.18.54 up to 6.18.*: not affected
- from 7.2.8 up to 7.2.*: not affected
- from 7.3 onwards: not affected
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.