# CVE-2026-64283: KVM: guest\_memfd: Treat memslot binding offset+size as unsigned values

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.0
- **CVSS:** 7.0 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.15% (percentile 2, 2026-11-28)
- **CWE:** CWE-190
- **Published:** 2026-07-25T08:49:25.642Z
- **Modified:** 2026-11-06T17:18:45.297Z

## Who should check

- Anyone running Linux \>= a7800aa80ea4d5356b8474c2302812e9d4926fa6, \< e4683654881f3303ab286e45df6f91c0675d867c; \>= a7800aa80ea4d5356b8474c2302812e9d4926fa6, \< 3f9c0fdefa0431ad7a5528d76b9cdad912500bdf; \>= a7800aa80ea4d5356b8474c2302812e9d4926fa6, \< f3a98d5881b9bd4807f49156143565f6aabcef1e; \>= a7800aa80ea4d5356b8474c2302812e9d4926fa6, \< eba85fee7fc6cf28fec38a5bf3c378bef9a79ca6
- Anyone running Linux 6.8

## Description

In the Linux kernel, the following vulnerability has been resolved:

KVM: guest\_memfd: Treat memslot binding offset+size as unsigned values

When binding a memslot to a guest\_memfd file, treat the offset and size as
unsigned values to fix a bug where the sum of the two can result in a false
negative when checking for overflow against the size of the file.  Passing
unsigned values also avoids relying on somewhat obscure checks in other
flows for safety, and tracks the offset and size as they are intended to be
tracked, as unsigned values.

On 64-bit kernels, the number of pages a memslot contains and thus the size
(and offset) of its guest\_memfd binding are unsigned 64-bit values.  Taking
the offset+size as an loff\_t instead of a uoff\_t inadvertently converts
the unsigned value to a signed value if the offset and/or size is massive.

Locally storing the offset and size as signed values is benign in and of
itself (though even that is \*extremely\* difficult to discern), but
operating on their sum is not.

For the offset, KVM explicitly checks against a negative value, which might
seem like a bug as KVM could incorrectly reject a legitimate binding, but
that's not actually the case as KVM\_CREATE\_GUEST\_MEMFD takes a signed value
for its size, i.e. a would-be-negative offset is also greater than the
maximum possible size of any guest\_memfd file.

Regarding the size, while KVM lacks an explicit check for a negative value,
i.e. seemingly has a flawed overflow check, KVM restricts the number of
pages in a single memslot to the largest positive signed 32-bit value:

        if (id \< KVM\_USER\_MEM\_SLOTS &&
            (mem-\>memory\_size \>\> PAGE\_SHIFT) \> KVM\_MEM\_MAX\_NR\_PAGES)
                return -EINVAL;

and so that maximum "size" will ever be is 0x7fffffff000.

The sum of the two is, however, problematic.  While the size is restricted
by KVM's memslot logic, the offset is not, i.e. the offset is completely
unchecked until the "offset + size \> i\_size\_read(inode)" check.  If the
offset is the (nearly) largest possible \_positive\_ value, then adding size
to the offset can result in a signed, negative 64-bit value.  When compared
against the size of the file (guaranteed to be positive), the negative sum
is always smaller, and KVM incorrectly allows the absurd offset.

Opportunistically add missing includes in kvm\_mm.h (instead of relying on
its parents).

## Affected and fixed versions

- Linux: \>= a7800aa80ea4d5356b8474c2302812e9d4926fa6, \< e4683654881f3303ab286e45df6f91c0675d867c; \>= a7800aa80ea4d5356b8474c2302812e9d4926fa6, \< 3f9c0fdefa0431ad7a5528d76b9cdad912500bdf; \>= a7800aa80ea4d5356b8474c2302812e9d4926fa6, \< f3a98d5881b9bd4807f49156143565f6aabcef1e; \>= a7800aa80ea4d5356b8474c2302812e9d4926fa6, \< eba85fee7fc6cf28fec38a5bf3c378bef9a79ca6 (cvelist)
- Linux: 6.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-64283. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-64283.md
Affected: Linux >= a7800aa80ea4d5356b8474c2302812e9d4926fa6, < e4683654881f3303ab286e45df6f91c0675d867c; >= a7800aa80ea4d5356b8474c2302812e9d4926fa6, < 3f9c0fdefa0431ad7a5528d76b9cdad912500bdf; >= a7800aa80ea4d5356b8474c2302812e9d4926fa6, < f3a98d5881b9bd4807f49156143565f6aabcef1e; >= a7800aa80ea4d5356b8474c…
Fixed in: Linux 3f9c0fdefa0431ad7a5528d76b9cdad912500bdf

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-64283 being exploited?

There is no confirmed exploitation: CVE-2026-64283 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.15% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-64283?

High: CVSS 7.0 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-64283?

Linux \>= a7800aa80ea4d5356b8474c2302812e9d4926fa6, \< e4683654881f3303ab286e45df6f91c0675d867c; \>= a7800aa80ea4d5356b8474c2302812e9d4926fa6, \< 3f9c0fdefa0431ad7a5528d76b9cdad912500bdf; \>= a7800aa80ea4d5356b8474c2302812e9d4926fa6, \< f3a98d5881b9bd4807f49156143565f6aabcef1e; \>= a7800aa80ea4d5356b8474c2302812e9d4926fa6, \< eba85fee7fc6cf28fec38a5bf3c378bef9a79ca6; Linux 6.8.

### Is there a fix for CVE-2026-64283?

Yes. Fixed in Linux 3f9c0fdefa0431ad7a5528d76b9cdad912500bdf. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-64283?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/f3a98d5881b9bd4807f49156143565f6aabcef1e>
- patch: <https://git.kernel.org/stable/c/eba85fee7fc6cf28fec38a5bf3c378bef9a79ca6>
- other: <https://git.kernel.org/stable/c/e4683654881f3303ab286e45df6f91c0675d867c>
- other: <https://git.kernel.org/stable/c/3f9c0fdefa0431ad7a5528d76b9cdad912500bdf>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-64283>

HTML: <https://flawdb.com/CVE-2026-64283> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-64283>
