linux/drivers/xen/xenbus
Yousef Alhouseen cbbef43bdc xenbus: reject unterminated directory replies
split_strings() walks each directory entry with strlen(). Although the
transport adds a terminator after the reply buffer, a malformed reply
without a final NUL inside its advertised length would let that walk
cross the protocol payload boundary.

Reject such replies before counting the strings. Report the protocol
violation once and return -EIO to the caller.

Signed-off-by: Yousef Alhouseen <alhouseenyousef@gmail.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Message-ID: <20260626223738.43742-1-alhouseenyousef@gmail.com>
2026-07-01 10:01:14 +02:00
..
Makefile xen/xenbus: Use *-y instead of *-objs in Makefile 2024-05-17 12:14:13 +02:00
xenbus_client.c xen: branch for v7.0-rc3 2026-03-07 07:44:32 -08:00
xenbus_comms.c xenbus: Use kref to track req lifetime 2025-05-07 16:21:41 +02:00
xenbus_dev_backend.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
xenbus_dev_frontend.c Convert 'alloc_flex' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
xenbus_probe_backend.c xenbus/backend: dynamically allocate the xen-backend shrinker 2023-10-04 10:32:23 -07:00
xenbus_probe_frontend.c xenbus: add xenbus_device parameter to xenbus_read_driver_state() 2026-03-04 15:31:40 +01:00
xenbus_probe.c xen/xenbus: Replace strcpy() with memcpy() 2026-06-09 16:23:41 +02:00
xenbus_xs.c xenbus: reject unterminated directory replies 2026-07-01 10:01:14 +02:00
xenbus.h xenbus: Rename helpers to freeze/thaw/restore 2026-02-02 07:45:37 +01:00