Skip to content

9pfs: fix illegal names with Twstat rename

Christian Schoenebeck qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3hw/9pfs: fix abort due to illegal name with Twstat renamehw/9pfs/9p.c+5 -00 replies
2/3hw/9pfs: reject . and .. in Twstat renamehw/9pfs/9p.c+4 -00 replies
3/3hw/9pfs: consolidate name validation with check_name()hw/9pfs/9p.c+39 -610 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] 9pfs: fix illegal names with Twstat rename

This series fixes a guest-triggerable assertion fault (DoS) caused by sending an illegal new name with the legacy Twstat rename handler.

- Patch 1: This is the core fix that prevents the DoS vulnerability.

- Patch 2: Additionally rejects "." and ".." as new names with Twstat rename operations (not being a vulnerability though).

- Patch 3: Consolidates the name validation logic spread multiple times over multiple request handlers.

Christian Schoenebeck (3):
hw/9pfs: fix abort due to illegal name with Twstat rename hw/9pfs: reject . and .. in Twstat rename hw/9pfs: consolidate name validation with check_name()

 hw/9pfs/9p.c | 97 +++++++++++++++++++++++-----------------------------
 1 file changed, 42 insertions(+), 55 deletions(-)
Signature · 1 line
2.47.3