]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: iscsi: Restrict sessions and handles to admin capabilities
authorLee Duncan <lduncan@suse.com>
Tue, 23 Feb 2021 21:06:24 +0000 (13:06 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Mar 2021 10:27:45 +0000 (11:27 +0100)
commit6c6711c1a0cd2675f9c537c96bd70ecdd84c5d3e
tree18036366104afc0d77547d803c5ec4ad25f89cbe
parent9f683fd7d2bb01b8f8346e3039cc5d063ebe83fd
scsi: iscsi: Restrict sessions and handles to admin capabilities

commit 688e8128b7a92df982709a4137ea4588d16f24aa upstream.

Protect the iSCSI transport handle, available in sysfs, by requiring
CAP_SYS_ADMIN to read it. Also protect the netlink socket by restricting
reception of messages to ones sent with CAP_SYS_ADMIN. This disables
normal users from being able to end arbitrary iSCSI sessions.

Cc: stable@vger.kernel.org
Reported-by: Adam Nichols <adam@grimm-co.com>
Reviewed-by: Chris Leech <cleech@redhat.com>
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Lee Duncan <lduncan@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/scsi_transport_iscsi.c