https://github.com/torvalds/linux
Revision e208a1d795a08d1ac0398c79ad9c58106531bcc5 authored by Yuan Can on 17 November 2022, 08:44:21 UTC, committed by Martin K. Petersen on 17 November 2022, 17:48:32 UTC
If device_register() fails in sdebug_add_host_helper(), it will goto clean
and sdbg_host will be freed, but sdbg_host->host_list will not be removed
from sdebug_host_list, then list traversal may cause UAF. Fix it.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Yuan Can <yuancan@huawei.com>
Link: https://lore.kernel.org/r/20221117084421.58918-1-yuancan@huawei.com
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent bc68e42
Raw File
Tip revision: e208a1d795a08d1ac0398c79ad9c58106531bcc5 authored by Yuan Can on 17 November 2022, 08:44:21 UTC
scsi: scsi_debug: Fix possible UAF in sdebug_add_host_helper()
Tip revision: e208a1d
Kconfig
# SPDX-License-Identifier: GPL-2.0
#
# For a description of the syntax of this configuration file,
# see Documentation/kbuild/kconfig-language.rst.
#
mainmenu "Linux/$(ARCH) $(KERNELVERSION) Kernel Configuration"

source "scripts/Kconfig.include"

source "init/Kconfig"

source "kernel/Kconfig.freezer"

source "fs/Kconfig.binfmt"

source "mm/Kconfig"

source "net/Kconfig"

source "drivers/Kconfig"

source "fs/Kconfig"

source "security/Kconfig"

source "crypto/Kconfig"

source "lib/Kconfig"

source "lib/Kconfig.debug"

source "Documentation/Kconfig"
back to top