Prasad J Pandit b8d7f1bc59 ide: atapi: check logical block address and read size (CVE-2020-29443)
While processing ATAPI cmd_read/cmd_read_cd commands,
Logical Block Address (LBA) maybe invalid OR closer to the last block,
leading to an OOB access issues. Add range check to avoid it.

Fixes: CVE-2020-29443
Reported-by: Wenxiang Qian <leonwxqian@gmail.com>
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Message-Id: <20210118115130.457044-1-ppandit@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2021-01-23 09:26:40 -05:00
..
2021-01-17 06:42:54 -05:00
2021-01-12 21:19:02 +00:00
2020-12-10 12:15:18 -05:00
2020-12-10 12:15:18 -05:00
2021-01-21 10:44:28 +00:00
2021-01-08 15:13:38 +00:00
2020-12-10 12:15:07 -05:00
2021-01-17 06:42:54 -05:00
2021-01-08 15:13:38 +00:00
2020-12-10 12:15:18 -05:00
2021-01-18 15:19:06 +00:00
2020-12-10 12:15:08 -05:00
2020-08-21 06:30:25 -04:00
2020-08-27 14:04:55 -04:00
2021-01-01 22:57:15 +00:00
2020-12-10 12:15:06 -05:00
2021-01-08 15:13:38 +00:00
2020-12-10 12:15:08 -05:00
2020-12-10 12:15:18 -05:00
2020-08-21 06:30:33 -04:00
2021-01-08 15:13:38 +00:00
2021-01-08 15:13:38 +00:00
2020-08-21 06:30:33 -04:00
2020-08-21 06:30:33 -04:00