Not yet analysed by NVD. Matched on the vendor's record; this may change when NVD has analysed it.
Reach gvfs · 4 builds in 4 of 4 releases
full reviewcross-check✓ a member decided
Description · NVD
A flaw was found in the AFP backend in gvfs. When mounting a share, a malicious AFP server can cause the DSI read path to process a length that exceeds the size requested by the client. The function does not verify the server-provided length against the pre-sized reply buffer, causing the operation to access past the intended boundaries. This issue allows a malicious server to overflow a heap buffer and crash the gvfsd-afp process, resulting in a denial of service.
Published 2026-09-01NVD
CVSS 3.1Network · no privileges · user interaction
How it is reached
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
What it costs
- Confidentiality
- None
- Integrity
- None
- Availability
- High
- Scope
- Unchanged
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
The unfixed AFP DSI read path is compiled into this build and gvfsd-afp is installed in the image, so the build is affected. read_dsi_header_cb() in daemon/gvfsafpconnection.c reads the server-supplied totalDataLength into a caller-provided reply_buf with no size check, and the one applied patch only touches i18n build files.
Nothing in the product starts or uses it. gvfs is only a build dependency of podman (BR2_PACKAGE_PODMAN_DRIVER_VFS). gvfsd is activated only over a D-Bus session bus, and Infix starts only the system bus. I found no finit service, confd code, YANG node or CLI command that references gvfs, gio mount or afp://.
Reaching the code would need a shell on the device: start a session bus, run gio mount afp://<host> and point it at a malicious AFP server (outbound TCP 548). It is not reachable from an inbound network interface.
Evidence 12
`BR2_PACKAGE_GVFS=y`: the package is selected for the target image.
output/.config:1312
`BR2_PACKAGE_PODMAN_DRIVER_VFS` selects `BR2_PACKAGE_GVFS`; `package/podman/podman.mk:69` adds it as a build dependency. This is the only reason `gvfs` is in the image.
package/podman/Config.in:47
`BR2_PACKAGE_PODMAN_DRIVER_VFS=y`; `gvfs` is not named in the defconfig itself.
configs/x86_64_defconfig:183
`-Dafp=true -Dgcrypt=true` is passed when `BR2_PACKAGE_LIBGCRYPT=y`, which is set at `output/.config:2169`.
buildroot/package/gvfs/gvfs.mk:98
The actual meson invocation has `-Dafp=true`; lines 1785 and 1819 of the same log report `afp : true`.
output/build/gvfs-1.48.1/buildroot-build/meson-logs/meson-log.txt:3
`enable_afp` compiles `gvfsafpconnection.c` into `gvfsd-afp` and `gvfsd-afp-browse`.
output/build/gvfs-1.48.1/daemon/meson.build:497
When the request supplied its own `reply_buf`, `read_all_async()` reads the server-controlled `dsi_header->totalDataLength` bytes into it with no check against the buffer's size. This is the flaw the CVE describes, and no fix is present.
output/build/gvfs-1.48.1/daemon/gvfsafpconnection.c:1123-1134 (read_dsi_header_cb)
The only applied patch is `0001-build-Remove-incorrect-i18n.merge_file-argument.patch`, which is unrelated to AFP.
output/build/gvfs-1.48.1/.applied_patches_list
The affected binary is installed in the target rootfs, together with `output/target/usr/share/gvfs/mounts/afp.mount` (`AutoMount=false`, `Scheme=afp`).
output/target/usr/libexec/gvfsd-afp
`gvfsd` is started only by D-Bus session-bus activation (`Exec=/usr/libexec/gvfsd`).
output/target/usr/share/dbus-1/services/org.gtk.vfs.Daemon.service
finit starts only `dbus-daemon --system`. No session bus is started, and nothing under `board/common/rootfs/etc/finit.d/` (`enabled/` or `available/`) references `gvfs`.
board/common/rootfs/etc/finit.d/dbus.conf:3
The only matches are `package/podman/Config.in`, `package/podman/podman.mk` and the `afpovertcp` line in `board/common/rootfs/etc/services:120`. No confd code, YANG model or CLI command invokes gvfs or mounts AFP shares.
src/, board/, package/ (grep for `gvfs`, `gio mount`, `afp://`)
Version and patches
NVD matches gvfs 1.48.1 exactly. The upstream advisory and issue 863 are not in the tree and I had no network access, so I could not confirm the affected range or the fixed version.
The source itself shows the unchecked read in read_dsi_header_cb() at output/build/gvfs-1.48.1/daemon/gvfsafpconnection.c:1123-1134, with no backported fix. The single applied Buildroot patch (0001-build-Remove-incorrect-i18n.merge_file-argument.patch) does not touch AFP code.
Recommendation
Document as not exposed; no urgent upgrade or backport is needed.
As low-cost hardening, remove the AFP backend from the image. Either pass -Dafp=false for gvfs, or drop the select BR2_PACKAGE_GVFS from BR2_PACKAGE_PODMAN_DRIVER_VFS in package/podman/Config.in. Podman's Go "vfs" graph driver appears unrelated to GNOME gvfs, so that dependency looks spurious, but confirm this before removing it.
Otherwise pick up the upstream fix at the next routine gvfs bump.
Open questions
The upstream fix commit and exact affected range could not be checked from the tree.
I did not inspect whether the podman binary or any other installed program links libgvfscommon or GIO's gvfs module in a way that could spawn gvfsd. No source reference suggests it, and there is no session bus for activation in any case.
Containers run by an operator are outside this review; they carry their own userland and would not use the host's gvfsd-afp.
Members of Kernel Kit decide. Sign in if you are one.