CVE-2026-100046
published high CVSS 3.1 · 8.4virtiofs: validate fixed-output response length
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxa62a8ef9d97da23762a588592c8b8eb50a8deb6a to < 892a5d212afe2e645157272f645e0d6443f226c5 · a62a8ef9d97da23762a588592c8b8eb50a8deb6a to < 0c16df0169b9781b1c404c2cbf921210f98c14f8 · a62a8ef9d97da23762a588592c8b8eb50a8deb6a to < 5b6dc6c2fe2013e96fb7d3bb7452db5dd2ef27e7 · a62a8ef9d97da23762a588592c8b8eb50a8deb6a to < ac87235dd0355ea25ccdd66c21a82db2fc951b16 · a62a8ef9d97da23762a588592c8b8eb50a8deb6a to < d187f259ddeb8b9ad4c713b5871c0eb774879002 · a62a8ef9d97da23762a588592c8b8eb50a8deb6a to < 9aade9e78aa3ba0d083e7304a4db28fc14743fa5 · a62a8ef9d97da23762a588592c8b8eb50a8deb6a to < 0602ba498ff402df87f51f779885b8590a1deae9 · a62a8ef9d97da23762a588592c8b8eb50a8deb6a to < 5364d081125a34e90851fbb46ecc93f79339ce78 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.4 (affected) · 0 to < 5.4 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.118 through 6.12.* (unaffected · semver) · 6.18.64 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
Description
In the Linux kernel, the following vulnerability has been resolved: virtiofs: validate fixed-output response length A short successful virtiofs response can leave the fixed-output portion of the request argument buffer unwritten. The completion path nevertheless copies the full declared output to the request destination, allowing stale allocator contents to reach callers such as fuse_statfs(). Require successful fixed-output responses to contain their complete declared output. Continue to permit a shorter final argument only for out_argvar requests. Reject positive and internal restart error values and require valid error replies to be header-only. The error already stored in the FUSE output header is returned by fuse_request_end(), so do not copy output arguments from an error reply. This was found by source review with AI assistance. A header-only successful FUSE_STATFS reply returned stale fields in nine of nine calls across three boots. The fixed kernel rejected the short response and preserved complete replies, valid negative-error replies, and variable-output replies.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.4 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The malformed input is a FUSE reply placed on the virtqueue by the virtio-fs device backend (host virtiofsd/VMM or emulated device), collected in virtio_fs_requests_done_work() and checked only for oh->len/unique by virtio_fs_verify_response(). It arrives over a local paravirtual device, not a routable protocol; the VDUSE VIRTIO_ID_FS alternative needs init-ns CAP_NET_ADMIN. AC:L - The backend alone chooses each reply's used length, oh.len and oh.error, so short fixed-output replies, oversized lengths and out-of-range error values are delivered deterministically to whatever request the guest sends (FUSE_LOOKUP, FUSE_GETXATTR, FUSE_STATFS); no race or outside state is involved. PR:N - The malicious device backend needs no account or capability inside the guest whose kernel it attacks. Pre-fix virtiofs never range-checked oh->error, unlike fuse_dev_do_write() and the io_uring path, which reject error <= -512 or > 0. UI:N - No guest user action is required beyond normal use of the configured virtiofs mount; the backend simply answers the lookup, getxattr and statfs requests the guest kernel itself issues during ordinary path walks and syscalls. S:U - The vulnerable code in fs/fuse/virtio_fs.c and the memory it discloses or corrupts both belong to the same guest kernel; no separate security authority is affected. C:H - An oversized used length (stored as the out_argvar size) or a positive oh->error is returned by fuse_chan_send() as a byte count; fuse_getxattr() passes it up and do_getxattr() copy_to_user()s that many bytes from the smaller kvzalloc(size) buffer, an unbounded guest heap over-read. Short fixed replies also leak stale argbuf slab bytes via fuse_statfs(). I:H - A header-only FUSE_LOOKUP reply with oh->error <= -4096 flows from fuse_lookup_name() into ERR_PTR(err) in fuse_lookup(), which IS_ERR() misses, so __lookup_slow() returns a device-chosen top-2GiB kernel address as a struct dentry that the VFS then reads and later dput()s, a forged-pointer type confusion. A:H - The same paths crash the guest kernel: the oversized copy_to_user trips hardened-usercopy usercopy_abort(), a positive error becomes a small ERR_PTR() pointer dereferenced as a dentry, and the forged dentry faults in step_into()/dput().
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | a62a8ef9d97da23762a588592c8b8eb50a8deb6a to < 892a5d212afe2e645157272f645e0d6443f226c5 (affected · git)a62a8ef9d97da23762a588592c8b8eb50a8deb6a to < 0c16df0169b9781b1c404c2cbf921210f98c14f8 (affected · git)a62a8ef9d97da23762a588592c8b8eb50a8deb6a to < 5b6dc6c2fe2013e96fb7d3bb7452db5dd2ef27e7 (affected · git)a62a8ef9d97da23762a588592c8b8eb50a8deb6a to < ac87235dd0355ea25ccdd66c21a82db2fc951b16 (affected · git)a62a8ef9d97da23762a588592c8b8eb50a8deb6a to < d187f259ddeb8b9ad4c713b5871c0eb774879002 (affected · git)a62a8ef9d97da23762a588592c8b8eb50a8deb6a to < 9aade9e78aa3ba0d083e7304a4db28fc14743fa5 (affected · git)a62a8ef9d97da23762a588592c8b8eb50a8deb6a to < 0602ba498ff402df87f51f779885b8590a1deae9 (affected · git)a62a8ef9d97da23762a588592c8b8eb50a8deb6a to < 5364d081125a34e90851fbb46ecc93f79339ce78 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.4 (affected)0 to < 5.4 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.118 through 6.12.* (unaffected · semver)6.18.64 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/0602ba498ff402df87f51f779885b8590a1deae9
- https://git.kernel.org/stable/c/0c16df0169b9781b1c404c2cbf921210f98c14f8
- https://git.kernel.org/stable/c/5364d081125a34e90851fbb46ecc93f79339ce78
- https://git.kernel.org/stable/c/5b6dc6c2fe2013e96fb7d3bb7452db5dd2ef27e7
- https://git.kernel.org/stable/c/892a5d212afe2e645157272f645e0d6443f226c5
- https://git.kernel.org/stable/c/9aade9e78aa3ba0d083e7304a4db28fc14743fa5
- https://git.kernel.org/stable/c/ac87235dd0355ea25ccdd66c21a82db2fc951b16
- https://git.kernel.org/stable/c/d187f259ddeb8b9ad4c713b5871c0eb774879002
Provider assertions
1Linux · cna
virtiofs: validate fixed-output response length
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 90a46a5e380481b0d9105137e88a00fb7d386714e9e7a51e0c07488f67b66842
- Ingested
- 01 Dec 2026, 05:47:22 UTC
- Source record
- Official CVE record