Brian Gianforcaro
c0ed656c94
Kernel: Fix buffer overflow in VirtIOGPU create_3d_resource(..)
...
This code attempts to copy the `Protocol::Resource3DSpecification`
struct into request, starting at `Protocol::ResourceCreate3D::target`
member of the `Protocol::ResourceCreate3D` struct.
The problem is that the `Protocol::Resource3DSpecification` struct
does not having the trailing `u32 padding` that the `ResourceCreate3D`
struct has. Leading to memcopy overrunning the struct and corrupting
32 bits of data trailing the struct.
Found by SonarCloud:
- Memory copy function overflows the destination buffer.
2022-03-14 22:30:22 +01:00
..
2022-03-09 16:43:00 +01:00
2022-03-12 14:54:12 -08:00
2022-03-08 21:52:10 +01:00
2022-03-07 16:35:23 +01:00
2022-03-08 00:19:49 +01:00
2022-02-09 21:04:51 +00:00
2022-03-14 22:30:22 +01:00
2022-03-08 00:46:25 +02:00
2022-02-21 20:44:09 +02:00
2022-02-13 23:02:57 +01:00
2022-03-08 00:19:49 +01:00
2022-02-14 11:35:20 +01:00
2022-03-02 18:41:54 +01:00
2022-03-12 14:54:12 -08:00
2022-03-02 18:41:54 +01:00
2022-03-12 21:45:57 -08:00
2022-01-30 16:21:59 +01:00
2022-02-21 15:47:51 -08:00
2022-02-09 21:04:51 +00:00
2022-03-12 14:54:12 -08:00
2022-03-02 18:41:54 +01:00
2022-03-02 18:41:54 +01:00
2022-02-27 20:37:57 +01:00
2022-02-09 17:59:19 +00:00
2022-03-07 16:35:23 +01:00
2022-03-08 23:30:47 +01:00
2021-12-28 23:08:50 +01:00
2021-12-30 14:16:03 +01:00
2022-01-12 16:09:09 +02:00
2022-02-09 21:05:48 +00:00
2022-01-29 23:01:23 +02:00
2022-01-30 16:21:59 +01:00
2021-12-30 18:10:51 +01:00
2022-01-06 22:34:11 +01:00
2022-01-21 19:34:10 +02:00
2022-03-03 14:53:35 -08:00
2022-03-03 14:53:35 -08:00
2022-02-14 11:38:13 +01:00
2022-03-08 23:30:47 +01:00
2022-03-08 00:19:49 +01:00
2021-12-30 14:32:17 +01:00
2022-03-02 18:41:54 +01:00
2022-03-08 00:19:49 +01:00
2021-12-26 21:22:59 +01:00
2022-01-24 22:36:09 +01:00
2022-01-07 10:56:59 +01:00
2021-12-30 14:32:17 +01:00
2022-02-21 19:42:16 +01:00
2022-01-30 16:21:59 +01:00
2021-12-22 00:02:36 -08:00
2022-01-30 16:21:59 +01:00
2022-02-09 21:04:51 +00:00
2022-03-04 20:07:05 +01:00
2022-03-04 20:07:05 +01:00
2022-01-30 16:21:59 +01:00
2021-12-30 14:32:17 +01:00
2022-02-03 16:11:26 +01:00
2022-03-04 20:07:05 +01:00
2021-12-16 22:21:35 +03:30
2021-12-30 14:32:17 +01:00