CVE Catalog

CVE-2026-84270

MediumCVSS 4.3
Published: Updated: Translated: NVD NIST

Summary

A flaw was found in the MTP backend in gvfs. When reading a file from a mounted MTP device, do_read() in gvfsbackendmtp.c trusts the data length returned by the device without limiting it to the original size requested by the client. If a malicious MTP device responds with more bytes than requested, this unrestricted length is passed directly to memcpy(). This causes the operation to read memory outside the intended boundaries. This allows an attacker who plugs in a malicious MTP device to cause a segmentation fault when a file is read and crash the gvfsd-mtp process, resulting in a denial of service.

Risk Assessment

The risk includes crashing the gvfsd-mtp process, which can prevent users from using MTP devices and lead to system instability.

Recommendation

Update gvfs to a patched version that limits data length to the requested size, and avoid connecting untrusted MTP devices.

Other vulnerabilities in gvfs

See all
Original NVD description (English source)

A flaw was found in the MTP backend in gvfs. When reading a file from a mounted MTP device, do_read() in gvfsbackendmtp.c trusts the data length returned by the device without limiting it to the original size requested by the client. If a malicious MTP device responds with more bytes than requested, this unrestricted length is passed directly to memcpy(). This causes the operation to read memory outside the intended boundaries. This allows an attacker who plugs in a malicious MTP device to cause a segmentation fault when a file is read and crash the gvfsd-mtp process, resulting in a denial of service.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS