fdd64084e4055 - kernel/common - Git at Google (original) (raw)

android / kernel / common / fdd64084e4055

commit fdd64084e405544c5c11841ca9261785c988e2a1 [log] [tgz]
author Hangyu Hua hbh25y@gmail.com Sat Jan 01 01:21:38 2022 +0800
committer Greg Kroah-Hartman gregkh@linuxfoundation.org Tue Mar 08 19:09:30 2022 +0100
tree 725e26dfd8d511406db549dbbd02cd6ac806c6a4
parent c13159a588818a1d2cd6519f4d3b6f7e17a9ffbd [diff]

usb: gadget: clear related members when goto fail

commit 501e38a5531efbd77d5c73c0ba838a889bfc1d74 upstream.

dev->config and dev->hs_config and dev->dev need to be cleaned if dev_config fails to avoid UAF.

Acked-by: Alan Stern stern@rowland.harvard.edu Signed-off-by: Hangyu Hua hbh25y@gmail.com Link: https://lore.kernel.org/r/20211231172138.7993-3-hbh25y@gmail.com Signed-off-by: Greg Kroah-Hartman gregkh@linuxfoundation.org

1 file changed

tree: 725e26dfd8d511406db549dbbd02cd6ac806c6a4

  1. arch/
  2. block/
  3. certs/
  4. crypto/
  5. Documentation/
  6. drivers/
  7. fs/
  8. include/
  9. init/
  10. ipc/
  11. kernel/
  12. lib/
  13. LICENSES/
  14. mm/
  15. net/
  16. samples/
  17. scripts/
  18. security/
  19. sound/
  20. tools/
  21. usr/
  22. virt/
  23. .clang-format
  24. .cocciconfig
  25. .get_maintainer.ignore
  26. .gitattributes
  27. .gitignore
  28. .mailmap
  29. COPYING
  30. CREDITS
  31. Kbuild
  32. Kconfig
  33. MAINTAINERS
  34. Makefile
  35. README