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
- arch/
- block/
- certs/
- crypto/
- Documentation/
- drivers/
- fs/
- include/
- init/
- ipc/
- kernel/
- lib/
- LICENSES/
- mm/
- net/
- samples/
- scripts/
- security/
- sound/
- tools/
- usr/
- virt/
- .clang-format
- .cocciconfig
- .get_maintainer.ignore
- .gitattributes
- .gitignore
- .mailmap
- COPYING
- CREDITS
- Kbuild
- Kconfig
- MAINTAINERS
- Makefile
- README