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.
Published: 2026-10-06
Score: 7.0 High
EPSS: < 1% Very Low
KEV: No
Impact: Privilege Escalation via Kernel Buffer Overflow
Action: Immediate Patch
AI Analysis

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.

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

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
History

Sat, 10 Oct 2026 00:30:00 +0000

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


Tue, 06 Oct 2026 15:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-122
CWE-680

Tue, 06 Oct 2026 09:00:00 +0000

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

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-19T09:15:54.199Z

Reserved: 2026-09-25T10:25:14.327Z

Link: CVE-2026-98222

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-06T09:18:09.153

Modified: 2026-10-19T10:18:22.967

Link: CVE-2026-98222

cve-icon Redhat

Severity : Important

Publid Date: 2026-10-06T00:00:00Z

Links: CVE-2026-98222 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-10T01:45:15Z

Weaknesses
  • CWE-122

    Heap-based Buffer Overflow

  • CWE-680

    Integer Overflow to Buffer Overflow

  • CWE-787

    Out-of-bounds Write