⚠️

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

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

CVE-2026-100046: Linux Kernel virtiofs Fixed-Output Validation Flaw Exposes Stale Memory | Alireza Bolbolabadi - Red Team Security
LOADING

CVE-2026-100046: Linux Kernel virtiofs Fixed-Output Validation Flaw Exposes Stale Memory

Background

The Linux kernel's virtiofs driver implements a virtio transport for FUSE, letting guest and container environments forward filesystem operations to a host-side FUSE server. Each FUSE request declares an output buffer size, and the kernel completion logic copies data from the server reply back to the caller when the operation finishes.

The vulnerability

CVE-2026-100046 concerns the validation of fixed-output response lengths under virtiofs. According to the upstream advisory, a successful response may carry fewer bytes than the request declared. The completion path nevertheless copies the full declared output to the request destination, exposing stale allocator contents to userspace callers. The advisory demonstrates the effect through FUSE_STATFS: a header-only successful reply returned stale fields in nine of nine calls across three test boots.

The pre-patch logic also failed to reject positive and internal restart error values from the server, and did not require valid error replies to be header-only. The corrected logic enforces these invariants, continues to permit a shorter final argument only for out_argvar requests where variable output length is legitimate, and lets fuse_request_end() return the error stored in the FUSE output header rather than copying arguments from an error reply.

Attack surface

Exploitation requires that an adversary control or compromise the virtiofs server-side response stream. In practice, that points to untrusted guest-to-host FUSE configurations, sandboxes with a controllable responder, or a compromised server process. A local userspace actor without influence over server replies is unlikely to trigger the malformed-response condition. The advisory does not establish that the disclosed bytes regularly contain kernel pointers or other specifically sensitive objects; the disclosure reflects whatever prior allocations happen to occupy the destination region.

Affected systems

  • Product: Linux kernel

  • Component: virtiofs (FUSE virtio transport), with impact observable through fixed-output operations such as FUSE_STATFS

  • Affected versions: The provided advisory does not enumerate specific kernel releases, branches, or commit ranges

  • Fix status: The advisory states the issue "has been resolved" but does not include a patch identifier, release tag, or distribution package status; kernel maintainers or distribution vendors should be consulted to identify patched builds

Mitigation

  1. Patch up

- Update to a Linux kernel build that incorporates the virtiofs validation fix for CVE-2026-100046.

- Verify the applicable upstream fix or backport with the Linux kernel or relevant distribution vendor, since the supplied advisory includes no commit identifier or affected version list.

- Reboot into the patched kernel and confirm the active runtime image is the intended fixed build.

  1. Operational hardening

- Restrict which tenants, containers, or guests are permitted to supply FUSE or virtiofs server responses.

- Audit existing virtiofs endpoints and confirm that FUSE servers are trusted, code-reviewed implementations.

- Recognize that these controls do not eliminate server compromise as a trigger; an authenticated but malicious responder can still emit a short successful reply.

- No runtime sysctl or module parameter for safely disabling the affected path is documented in the provided context.

  1. Detection and validation

- Monitor fixed-output FUSE requests, particularly FUSE_STATFS, that complete successfully with response lengths shorter than the declared output size.

- Where tracing infrastructure exists, correlate short successful server replies with unexpected or changing values in caller-visible output.

- Reproduce testing should compare repeated FUSE_STATFS calls for stale fields and confirm that patched kernels reject the short response while preserving complete replies, valid negative-error replies, and variable-output replies.

- Treat suspicious values as potential kernel-memory disclosure and capture relevant logs before restarting or rotating affected systems.

Discovery

The advisory notes that the issue was found by source review with AI assistance.

Closing assessment

CVE-2026-100046 is a confirmed information-disclosure flaw in virtiofs request handling, with practical evidence limited to stale allocator data surfacing in fuse_statfs() results. The realistic attacker path is narrow because it requires influence over server responses, and the supplied intelligence contains no evidence of in-the-wild exploitation. For most deployments, the operational priority is verifying that a fixed kernel is in place and that untrusted parties cannot shape virtiofs responses.

منابع

·
← اخبار