Aleksandr Mishin
d0f14ae223
crypto: bcm - Fix pointer arithmetic
...
[ Upstream commit 2b3460cbf454c6b03d7429e9ffc4fe09322eb1a9 ]
In spu2_dump_omd() value of ptr is increased by ciph_key_len
instead of hash_iv_len which could lead to going beyond the
buffer boundaries.
Fix this bug by changing ciph_key_len to hash_iv_len.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: 9d12ba86f8 ("crypto: brcm - Add Broadcom SPU driver")
Signed-off-by: Aleksandr Mishin <amishin@t-argos.ru >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2024-06-12 11:11:31 +02:00
..
2024-04-17 11:19:34 +02:00
2024-06-12 11:11:18 +02:00
2024-05-02 16:32:46 +02:00
2024-05-25 16:22:54 +02:00
2024-05-17 12:02:13 +02:00
2024-02-16 19:10:49 +01:00
2024-05-17 12:01:59 +02:00
2024-03-26 18:19:19 -04:00
2024-05-17 12:02:38 +02:00
2024-04-13 13:07:38 +02:00
2024-03-01 13:35:08 +01:00
2024-04-27 17:11:30 +02:00
2024-05-17 12:02:33 +02:00
2024-04-03 15:28:50 +02:00
2024-04-27 17:11:39 +02:00
2024-02-23 09:25:01 +01:00
2024-04-13 13:07:32 +02:00
2024-04-13 13:07:29 +02:00
2024-06-12 11:11:31 +02:00
2024-05-02 16:32:35 +02:00
2024-02-05 20:14:15 +00:00
2024-05-17 12:02:39 +02:00
2024-04-10 16:35:40 +02:00
2024-01-25 15:35:12 -08:00
2024-02-05 20:14:31 +00:00
2024-05-17 12:02:30 +02:00
2024-04-17 11:19:27 +02:00
2024-06-12 11:11:27 +02:00
2024-05-17 12:02:26 +02:00
2024-06-12 11:11:29 +02:00
2024-06-12 11:11:22 +02:00
2024-05-17 12:02:17 +02:00
2024-05-17 12:02:35 +02:00
2024-03-26 18:20:06 -04:00
2024-05-02 16:32:49 +02:00
2024-03-26 18:20:01 -04:00
2024-01-25 15:35:12 -08:00
2024-05-17 12:02:31 +02:00
2024-05-17 12:02:20 +02:00
2024-06-12 11:11:27 +02:00
2024-04-27 17:11:37 +02:00
2024-05-17 12:02:17 +02:00
2024-05-02 16:32:45 +02:00
2024-04-03 15:28:27 +02:00
2024-02-05 20:14:31 +00:00
2024-05-17 12:02:39 +02:00
2024-04-27 17:11:30 +02:00
2024-03-26 18:19:32 -04:00
2024-03-26 18:19:55 -04:00
2024-05-17 12:02:33 +02:00
2024-05-25 16:22:53 +02:00
2024-05-17 12:01:55 +02:00
2024-06-12 11:11:24 +02:00
2024-05-02 16:32:36 +02:00
2024-03-26 18:19:48 -04:00
2024-06-12 11:11:30 +02:00
2024-05-17 12:01:55 +02:00
2024-04-10 16:36:06 +02:00
2024-03-26 18:19:40 -04:00
2024-01-31 16:18:52 -08:00
2024-01-20 11:51:48 +01:00
2024-04-27 17:11:44 +02:00
2024-04-13 13:07:36 +02:00
2024-05-02 16:32:49 +02:00
2024-05-17 12:01:58 +02:00
2024-06-12 11:11:28 +02:00
2024-04-13 13:07:30 +02:00
2024-02-05 20:14:15 +00:00
2024-05-17 12:01:58 +02:00
2024-04-03 15:28:19 +02:00
2024-04-03 15:28:52 +02:00
2024-06-12 11:11:26 +02:00
2024-05-25 16:22:55 +02:00
2024-01-20 11:51:44 +01:00
2024-01-31 16:18:50 -08:00
2024-05-17 12:01:55 +02:00
2024-05-17 12:02:06 +02:00
2024-05-17 12:02:15 +02:00
2024-05-17 12:02:33 +02:00
2024-04-03 15:28:32 +02:00
2024-05-02 16:32:47 +02:00
2024-05-17 12:02:36 +02:00
2024-02-05 20:14:32 +00:00
2024-04-03 15:28:59 +02:00
2024-05-17 12:02:15 +02:00
2024-04-03 15:28:44 +02:00
2024-04-13 13:07:39 +02:00
2024-04-27 17:11:44 +02:00
2024-06-12 11:11:18 +02:00
2024-05-17 12:02:12 +02:00
2024-05-17 12:02:17 +02:00
2024-05-25 16:22:54 +02:00
2024-03-26 18:20:10 -04:00
2024-05-17 12:02:38 +02:00
2024-04-17 11:19:35 +02:00
2024-05-02 16:32:46 +02:00
2024-04-03 15:28:36 +02:00
2024-05-17 12:01:55 +02:00
2024-03-26 18:20:02 -04:00
2024-04-13 13:07:39 +02:00