anolis-cloud-kernel/drivers/uio
Saurabh Sengar 6df2dad93a uio_hv_generic: Fix kernel NULL pointer dereference in hv_uio_rescind
ANBZ: #11150

commit 1d8e020e51ab07e40f9dd00b52f1da7d96fec04c stable.

commit fb1adbd7e5 upstream.

For primary VM Bus channels, primary_channel pointer is always NULL. This
pointer is valid only for the secondary channels. Also, rescind callback
is meant for primary channels only.

Fix NULL pointer dereference by retrieving the device_obj from the parent
for the primary channel.

Cc: stable@vger.kernel.org
Fixes: ca3cda6fcf ("uio_hv_generic: add rescind support")
Signed-off-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Signed-off-by: Naman Jain <namjain@linux.microsoft.com>
Link: https://lore.kernel.org/r/20240829071312.1595-2-namjain@linux.microsoft.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Fixes: CVE-2024-46739
Signed-off-by: Xiao Long <xiaolong@openanolis.org>
Signed-off-by: Ferry Meng <mengferry@linux.alibaba.com>
Reviewed-by: Guixin Liu <kanie@linux.alibaba.com>
Link: https://gitee.com/anolis/cloud-kernel/pulls/3890
2024-09-29 02:11:03 +00:00
..
Kconfig
Makefile
uio.c uio: Fix use-after-free in uio_open 2024-08-16 09:48:22 +00:00
uio_aec.c
uio_cif.c
uio_dmem_genirq.c uio: uio_dmem_genirq: Fix deadlock between irq config and handling 2024-08-16 09:48:22 +00:00
uio_fsl_elbc_gpcm.c
uio_hv_generic.c uio_hv_generic: Fix kernel NULL pointer dereference in hv_uio_rescind 2024-09-29 02:11:03 +00:00
uio_mf624.c
uio_netx.c
uio_pci_generic.c
uio_pdrv_genirq.c
uio_pruss.c
uio_sercos3.c