Aleksandr Mishin
49833a8da6
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:03:04 +02:00
..
2024-06-12 11:02:55 +02:00
2024-05-02 16:29:29 +02:00
2024-05-25 16:21:34 +02:00
2024-05-17 11:56:05 +02:00
2024-04-10 16:28:32 +02:00
2024-03-26 18:20:29 -04:00
2024-05-17 11:56:23 +02:00
2024-04-13 13:05:16 +02:00
2024-05-17 11:56:12 +02:00
2024-05-17 11:56:09 +02:00
2024-04-03 15:19:44 +02:00
2024-04-27 17:07:14 +02:00
2024-04-13 13:05:00 +02:00
2024-04-13 13:04:54 +02:00
2024-06-12 11:03:04 +02:00
2024-03-01 13:26:31 +01:00
2024-05-17 11:56:23 +02:00
2024-04-10 16:28:21 +02:00
2024-05-17 11:56:16 +02:00
2024-06-12 11:03:01 +02:00
2024-06-12 11:03:01 +02:00
2024-05-17 11:56:15 +02:00
2024-06-12 11:03:02 +02:00
2024-05-02 16:29:28 +02:00
2024-05-17 11:56:08 +02:00
2024-05-17 11:56:21 +02:00
2024-03-26 18:20:58 -04:00
2024-05-02 16:29:32 +02:00
2024-05-17 11:56:19 +02:00
2024-05-17 11:56:10 +02:00
2024-04-13 13:05:13 +02:00
2024-03-06 14:45:19 +00:00
2024-05-17 11:56:08 +02:00
2024-05-02 16:29:29 +02:00
2024-03-26 18:20:52 -04:00
2024-05-17 11:56:24 +02:00
2024-04-17 11:18:23 +02:00
2024-05-25 16:21:30 +02:00
2024-05-17 11:56:20 +02:00
2024-05-25 16:21:30 +02:00
2024-05-02 16:29:30 +02:00
2024-06-12 11:02:58 +02:00
2024-05-02 16:29:24 +02:00
2024-03-26 18:20:49 -04:00
2024-06-12 11:03:03 +02:00
2024-04-03 15:19:32 +02:00
2024-04-10 16:28:32 +02:00
2024-03-26 18:20:42 -04:00
2024-04-27 17:07:18 +02:00
2024-04-10 16:28:30 +02:00
2024-05-02 16:29:31 +02:00
2024-05-25 16:21:30 +02:00
2024-04-13 13:05:26 +02:00
2024-05-17 11:55:55 +02:00
2024-03-26 18:20:36 -04:00
2024-04-03 15:19:45 +02:00
2024-06-12 11:03:00 +02:00
2024-05-25 16:21:35 +02:00
2024-03-26 18:20:58 -04:00
2024-05-17 11:56:01 +02:00
2024-05-17 11:56:04 +02:00
2024-05-17 11:56:20 +02:00
2024-04-03 15:19:36 +02:00
2024-04-13 13:05:07 +02:00
2024-05-17 11:56:22 +02:00
2024-05-17 11:56:12 +02:00
2024-05-17 11:56:07 +02:00
2024-04-03 15:19:42 +02:00
2024-04-13 13:05:19 +02:00
2024-04-27 17:07:14 +02:00
2024-06-12 11:02:55 +02:00
2024-05-17 11:56:05 +02:00
2024-05-17 11:56:08 +02:00
2024-05-25 16:21:35 +02:00
2024-03-26 18:21:00 -04:00
2024-05-17 11:56:23 +02:00
2024-04-17 11:18:27 +02:00
2024-05-02 16:29:30 +02:00
2024-04-13 13:05:25 +02:00
2024-03-26 18:20:56 -04:00
2024-03-06 14:45:20 +00:00