⚠️

سلب مسئولیت و اخلاق حرفه‌ای

این مطالب صرفاً برای اهداف آموزشی، پژوهشی و افزایش آگاهی امنیتی ارائه شده‌اند. هرگونه استفاده غیرمجاز، غیرقانونی یا سوءاستفاده از اطلاعات، ابزارها و روش‌های مطرح‌شده، کاملاً بر عهده مخاطب است. نویسنده و منتشرکننده هیچ مسئولیتی در قبال خسارات، آسیب‌ها یا پیامدهای ناشی از استفاده نادرست از این مطالب نخواهند داشت.

CVE-2026-143183: Linux Kernel KEYS Subsystem Closes Description Length Bypass | Alireza Bolbolabadi - Red Team Security
LOADING

CVE-2026-143183: Linux Kernel KEYS Subsystem Closes Description Length Bypass

Executive summary

CVE-2026-143183 describes a bounds-check omission in the Linux kernel's KEYS (keyring) subsystem. The subsystem defines KEY_MAX_DESC_SIZE as the maximum allowed length of a key's free-form description, and the constant is documented to include the terminating NULL byte. The advisory's narrative is that strings arriving through in-kernel construction paths were not subjected to this same check, which left quota accounting, indexing, and lookup preparsers exposed to descriptions larger than the design budget.

The associated upstream fix tightens this gap. It introduces a single-pass size comparison at five well-defined call sites and rejects off-size descriptions with -EINVAL before any further work is performed.

Affected systems

  • Linux kernel, KEYS subsystem. Specifically the routines key_alloc(), __key_create_or_update(), keyring_search(), request_key_and_link(), and request_key_rcu(), where descriptions sourced from in-kernel payloads historically entered quota, indexing, or matching logic without the userspace-size guard.

The provided sources do not enumerate a specific kernel version range, downstream distribution advisories, or container base-image manifests. The precise set of builds that carry the defect therefore cannot be reconstructed from the supplied context alone and must be cross-referenced against the upstream stable release notes for the commit described in the NVD entry.

Technical details

The root cause is straightforward: a length bound exists, but it is applied inconsistently across the entry surface of the subsystem. Userspace-supplied descriptions are filtered against KEY_MAX_DESC_SIZE upstream of the call sites listed above. Descriptions built from in-kernel data — for example request-key payloads synthesized inside the kernel or RCU-context key requests — were not subjected to the equivalent check, so the cap could be exceeded before the code reached:

  • key_alloc() — prior to quota calculation.

  • __key_create_or_update() — prior to key_set_index_key().

  • keyring_search() — prior to match_preparse.

  • request_key_and_link() — prior to match_preparse.

  • request_key_rcu() — prior to check_cached_key().

The patch resolves this by enforcing the document size limit at each of these points and returning -EINVAL for any description whose length is at or above the cap. The cap continues to include the trailing NULL byte in the budget.

The supplied record does not characterize a downstream consequence such as an out-of-bounds write, a quota-exhaustion denial-of-service, or a parser-stage memory disclosure. Describing a worst-case impact on that basis would be speculation, and this article does not do so.

Exploitation context

The publicly visible record contains:

  • No CVSS score or vector.

  • No entry on the CISA Known Exploited Vulnerabilities catalog.

  • No PoC, in-the-wild report, or functional exploit code.

  • No vendor-specific impact statement from the Microsoft update-guide mirror beyond the URL itself.

The bundled risk model places the technical score at 25/100 and labels the editorial severity as low, with a floor applied because a confirmed vulnerability record exists. That assessment aligns with the visible shape of the change, which reads as a defensive hardening patch rather than the close-out of an active exploitation avenue.

Mitigation

The advisory identifies an upstream-level remediation that operations teams can adopt once it lands in their distribution of choice:

  • Patch path. Apply the upstream kernel change that introduces the explicit length comparison at the five call sites listed above. The exact commit SHA, stable tag, and distro backport identifiers are not contained in the provided sources and must be sourced from upstream release notes and vendor security feeds.

  • Distribution updates. Track and install the security update published by the Linux distribution vendor once it packages the corrected kernel. The provided sources do not list downstream advisories by name.

  • Verification behavior. After the fix is applied, in-kernel construction paths or RCU-context requests that produce descriptions at or beyond the cap will surface as -EINVAL returns from the named entry points. The advisory does not describe a telemetry signature, audit hook, or sysctl knob tied to this CVE, so any defender-side correlation for unpatched systems would have to be derived locally and is not characterized here.

No workaround is described in the supplied context, and none is recommended in this article on that basis.

منابع

·
← اخبار