Ben Wiederhake
fbb85f9b2f
Kernel: Refuse excessively long iovec list, also in readv
...
This bug is a good example why copy-paste code should eventually be eliminated
from the code base: Apparently the code was copied from read.cpp before
c6027ed7cc , so the same bug got introduced here.
To recap: A malicious program can ask the Kernel to prepare sys-ing to
a huge amount of iovecs. The Kernel must first copy all the vector locations
into 'vecs', and before that allocates an arbitrary amount of memory:
vecs.resize(iov_count);
This can cause Kernel memory exhaustion, triggered by any malicious userland
program.
2021-02-15 22:09:01 +01:00
..
2021-02-08 18:08:55 +01:00
2021-02-15 19:37:14 +01:00
2021-02-14 18:12:00 +01:00
2021-02-15 19:37:14 +01:00
2021-02-15 08:28:57 +01:00
2021-02-14 18:12:00 +01:00
2021-02-15 15:25:23 +01:00
2021-02-15 17:32:56 +01:00
2021-02-14 10:01:50 +01:00
2021-02-14 10:01:50 +01:00
2021-02-15 22:09:01 +01:00
2021-02-15 08:28:57 +01:00
2021-02-08 18:08:55 +01:00
2021-02-08 18:08:55 +01:00
2021-02-15 15:25:23 +01:00
2021-01-30 09:18:46 +01:00
2021-02-15 11:41:53 +01:00
2021-02-15 11:41:53 +01:00
2020-12-21 00:09:48 +01:00
2021-02-15 17:32:56 +01:00
2021-01-20 23:20:02 +01:00
2021-01-22 22:17:39 +01:00
2021-02-08 19:34:41 +01:00
2020-12-30 16:28:27 +01:00
2021-02-05 09:35:02 +01:00
2021-02-01 17:13:23 +01:00
2021-02-01 17:13:23 +01:00
2021-01-01 23:43:44 +01:00
2021-02-08 18:27:28 +01:00
2021-02-08 18:08:55 +01:00
2021-01-17 20:30:31 +01:00
2021-02-14 18:12:00 +01:00
2021-01-11 22:07:01 +01:00
2021-02-15 09:34:52 +01:00
2021-02-14 10:01:50 +01:00
2021-02-09 19:18:13 +01:00
2021-01-09 21:11:09 +01:00
2021-02-15 09:34:52 +01:00
2020-12-26 10:05:50 +01:00
2021-02-03 11:17:47 +01:00
2021-02-14 18:11:32 +01:00
2021-02-15 08:28:57 +01:00
2021-02-15 09:34:52 +01:00
2021-01-22 22:17:39 +01:00
2021-02-14 09:36:58 +01:00
2021-02-14 09:36:58 +01:00
2021-02-08 18:27:28 +01:00
2021-01-17 14:36:53 +01:00
2021-02-15 09:34:52 +01:00
2021-02-14 18:12:00 +01:00
2021-02-15 17:32:56 +01:00
2021-02-15 08:28:57 +01:00
2021-02-05 21:28:06 +01:00
2021-02-11 20:58:39 +01:00
2021-02-14 18:12:00 +01:00
2021-02-07 20:45:09 +01:00
2020-12-27 11:09:30 +01:00
2021-02-13 00:40:31 +01:00
2021-02-15 09:34:52 +01:00
2021-02-14 11:47:14 +01:00
2021-02-14 18:12:00 +01:00
2021-02-15 08:28:57 +01:00
2021-02-08 18:08:55 +01:00
2021-02-08 19:34:41 +01:00
2020-12-21 18:26:12 +01:00
2021-01-04 19:13:52 +01:00
2021-02-11 20:58:01 +01:00
2021-02-11 20:58:01 +01:00
2021-02-15 17:32:56 +01:00
2020-12-26 16:10:04 +01:00
2021-02-15 09:34:52 +01:00
2021-02-15 09:34:52 +01:00
2021-02-08 18:08:55 +01:00
2021-02-15 08:28:57 +01:00