CVE-2026-98222

KEYS: encrypted: fix integer overflow of datablob_len

Published Oct 6, 2026 CVSS 3.1 · 7.0 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The Linux kernel KEYS module contains an integer overflow when computing the size of a data blob for an encrypted key. The datablob_len value is truncated to a 16‑bit unsigned integer, leading to an undersized buffer allocation. Subsequent copying of the master key description into the truncated buffer causes a kernel heap overflow, potentially corrupting arbitrary memory and enabling privilege escalation or denial of service. The flaw arises from improper handling of combined string and payload lengths during key initialization.

Affected Systems

The flaw exists in the Linux kernel, specifically in the encrypted key subsystem of the KEYS module. All Linux kernel versions that have not yet applied the integer overflow fix are affected. The vulnerability applies to any kernel that uses the KEYS module and the /dev/keys interface.

Risk and Exploitability

The EPSS score is below 1% and the vulnerability is not yet listed in CISA’s KEV catalog, indicating low but non‑zero exploitation probability. The flaw is a local kernel vulnerability; an attacker needs write access to /dev/keys or the ability to create a KEYS entry. Once triggered, the buffer overflow can overwrite arbitrary heap memory, potentially allowing execution of arbitrary code with kernel privileges. Given the absence of public exploit code and the limited attack surface, the risk is high for systems that allow local or privileged access to the kernel.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that incorporates the integer overflow fix in the KEYS module.
  • If an immediate kernel update is not possible, disable or remove the encrypted key feature of the KEYS module or restrict access to /dev/keys.
  • If encrypted keys must remain, validate payload lengths before creating keys to avoid overflowing datablob_len.

Generated by OpenCVE AI on October 10, 2026 at 01:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4850-1 linux-6.12 security update
Debian DSA Debian DSA DSA-6568-1 linux security update
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9022-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9023-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9024-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9025-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9026-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9039-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-9040-1 Linux kernel (Low Latency NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9066-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-9091-1 Linux kernel (NVIDIA Tegra) vulnerabilities
Ubuntu USN Ubuntu USN USN-9160-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9183-1 Linux kernel (FIPS) vulnerabilities
Ubuntu USN Ubuntu USN USN-9192-1 Linux kernel (NVIDIA) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-787
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Important

Type Values Removed Values Added
Weaknesses CWE-122
CWE-680
Type Values Removed Values Added
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.
Title KEYS: encrypted: fix integer overflow of datablob_len
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-122

    Heap-based Buffer Overflow

  • CWE-680

    Integer Overflow to Buffer Overflow

  • CWE-787

    Out-of-bounds Write

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 23, 2026, 7:59 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Oct 6, 2026, 9:18 AM
Modified
Nov 23, 2026, 8:17 AM
Severity
Important
Public date
Oct 6, 2026, 12:00 AM