Skip to content

vsock: fix use-after free and null-ptr-deref

Luigi Leonardi stable 1 version In review

Get series with b4
b4 am [email protected] change-id 20250214-linux-rolling-stable-d73f0bed815d

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2vsock: Keep the binding until socket destructionnet/vmw_vsock/af_vsock.c+6 -20 replies
2/2vsock: Orphan socket after transport releasenet/vmw_vsock/af_vsock.c+7 -10 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchLuigi LeonardiStefano Garzarella
1/2R-b
2/2T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] vsock: fix use-after free and null-ptr-deref

Hi all,

This series contains two patches that are already available upstream:

- The first commit fixes a use-after-free[1], but introduced a null-ptr-deref[2].
- The second commit fixes it. [3]

I suggested waiting for both of them to be merged upstream and then applying them togheter to stable[4].

It should be applied to:
- 6.13.y
- 6.12.y
- 6.6.y

I will send another series for
- 6.1.y
- 5.15.y
- 5.10.y

because of conflicts.

[1]https://lore.kernel.org/all/[email protected]/ [2]https://lore.kernel.org/all/[email protected]/ [3]https://lore.kernel.org/all/[email protected]/ [4]https://lore.kernel.org/all/2025020644-unwitting-scary-3c0d@gregkh/

Thanks,
Luigi

---
Michal Luczaj (2):
vsock: Keep the binding until socket destruction
vsock: Orphan socket after transport release

 net/vmw_vsock/af_vsock.c | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

---
base-commit: a1856aaa2ca74c88751f7d255dfa0c8c50fcc1ca
change-id: 20250214-linux-rolling-stable-d73f0bed815d

Best regards,

Signature · 1 line
Luigi Leonardi <[email protected]>