Florian Westphal
f900e1d77e
netfilter: conntrack: add missing netlink policy validations
...
Hyunwoo Kim reports out-of-bounds access in sctp and ctnetlink.
These attributes are used by the kernel without any validation.
Extend the netlink policies accordingly.
Quoting the reporter:
nlattr_to_sctp() assigns the user-supplied CTA_PROTOINFO_SCTP_STATE
value directly to ct->proto.sctp.state without checking that it is
within the valid range. [..]
and: ... with exp->dir = 100, the access at
ct->master->tuplehash[100] reads 5600 bytes past the start of a
320-byte nf_conn object, causing a slab-out-of-bounds read confirmed by
UBSAN.
Fixes: 076a0ca026 ("netfilter: ctnetlink: add NAT support for expectations")
Fixes: a258860e01 ("netfilter: ctnetlink: add full support for SCTP to ctnetlink")
Reported-by: Hyunwoo Kim <imv4bel@gmail.com >
Signed-off-by: Florian Westphal <fw@strlen.de >
2026-03-13 15:31:14 +01:00
..
2026-02-21 17:09:51 -08:00
2026-02-22 08:26:33 -08:00
2025-05-23 13:57:12 +02:00
2025-07-25 18:38:50 +02:00
2025-11-27 23:59:43 +00:00
2026-02-21 01:02:28 -08:00
2026-02-21 17:09:51 -08:00
2022-02-04 06:30:28 +01:00
2026-02-17 15:04:20 +01:00
2026-02-11 19:31:52 -08:00
2025-01-19 16:41:55 +01:00
2026-02-21 17:09:51 -08:00
2025-09-22 17:40:30 -07:00
2025-06-08 09:07:37 +02:00
2023-09-13 21:57:50 +02:00
2026-02-17 15:04:20 +01:00
2026-02-26 12:50:42 +01:00
2026-02-17 15:04:20 +01:00
2025-08-27 11:53:38 +02:00
2026-02-17 15:04:20 +01:00
2023-10-24 13:16:30 +02:00
2022-01-11 10:41:44 +01:00
2026-03-13 15:31:14 +01:00
2026-02-06 20:50:03 -08:00
2022-07-11 16:25:15 +02:00
2026-01-20 16:23:37 +01:00
2026-02-21 01:02:28 -08:00
2026-01-20 16:23:37 +01:00
2026-01-20 16:23:37 +01:00
2026-03-13 15:31:14 +01:00
2024-10-02 17:23:23 -04:00
2023-02-01 12:18:51 +01:00
2025-07-03 13:51:39 +02:00
2022-08-11 16:50:25 +02:00
2022-02-04 06:30:28 +01:00
2025-01-19 16:41:55 +01:00
2026-02-17 15:04:20 +01:00
2025-10-30 12:52:45 +01:00
2026-02-17 15:04:20 +01:00
2022-07-11 16:25:15 +02:00
2022-02-04 06:30:28 +01:00
2025-05-23 13:57:12 +02:00
2026-01-02 12:04:28 -08:00
2026-02-06 13:34:55 +01:00
2024-09-12 15:41:03 +02:00
2026-01-29 09:52:06 +01:00
2026-02-21 17:09:51 -08:00
2026-01-20 16:23:37 +01:00
2022-07-11 16:25:14 +02:00
2026-02-21 01:02:28 -08:00
2024-07-24 20:59:29 +02:00
2024-06-19 18:41:59 +02:00
2026-02-06 20:50:03 -08:00
2026-02-21 01:02:28 -08:00
2022-09-07 16:46:04 +02:00
2026-01-02 12:04:28 -08:00
2026-02-21 17:09:51 -08:00
2022-09-07 16:46:04 +02:00
2022-11-18 02:15:15 +01:00
2022-09-07 16:46:04 +02:00
2026-02-21 01:02:28 -08:00
2026-01-20 16:23:37 +01:00
2026-01-20 16:23:37 +01:00
2023-11-08 16:40:30 +01:00
2022-09-07 16:46:04 +02:00
2024-02-21 12:03:22 +01:00
2026-01-20 16:23:37 +01:00
2026-03-10 14:10:42 +01:00
2025-03-23 10:53:47 +01:00
2026-02-21 17:09:51 -08:00
2025-07-14 15:22:35 +02:00
2026-02-21 17:09:51 -08:00
2026-03-10 14:10:42 +01:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 01:02:28 -08:00
2026-02-21 17:09:51 -08:00
2026-03-10 14:10:42 +01:00
2026-02-21 17:09:51 -08:00
2024-11-15 12:07:04 +01:00
2024-10-02 17:23:23 -04:00
2026-03-10 14:10:42 +01:00
2023-11-08 13:52:32 +01:00
2024-08-20 12:37:24 +02:00
2026-02-21 01:02:28 -08:00
2026-02-21 01:02:28 -08:00
2026-02-17 15:04:20 +01:00
2023-05-03 13:49:08 +02:00
2026-02-21 17:09:51 -08:00
2024-08-20 12:37:24 +02:00
2025-07-25 18:40:23 +02:00
2025-07-03 13:51:39 +02:00
2022-03-20 00:29:47 +01:00
2022-03-20 00:29:47 +01:00
2024-09-03 10:47:17 +02:00
2026-01-20 16:23:37 +01:00
2024-09-03 10:47:17 +02:00
2024-08-20 12:37:24 +02:00
2024-09-03 10:47:17 +02:00
2025-05-23 13:57:12 +02:00
2026-02-21 01:02:28 -08:00
2026-02-21 01:02:28 -08:00
2025-12-16 11:04:14 -05:00
2025-10-30 12:52:45 +01:00
2024-09-03 10:47:17 +02:00
2024-09-26 13:03:02 +02:00
2024-09-03 10:47:17 +02:00
2026-02-21 01:02:28 -08:00
2025-10-08 13:17:25 +02:00
2024-09-03 10:47:17 +02:00
2025-09-02 15:28:18 +02:00
2024-09-03 10:47:17 +02:00
2026-02-21 01:02:28 -08:00
2024-08-20 12:37:24 +02:00
2024-09-03 10:47:17 +02:00
2024-09-03 10:47:17 +02:00
2024-09-03 10:47:17 +02:00
2024-09-03 10:47:17 +02:00
2024-09-03 10:47:17 +02:00
2025-09-10 20:28:24 +02:00
2026-03-05 13:22:37 +01:00
2025-09-24 11:50:28 +02:00
2025-08-20 13:52:37 +02:00
2026-03-10 14:10:42 +01:00
2026-03-05 13:22:37 +01:00
2026-03-05 13:22:37 +01:00
2025-08-07 13:19:26 +02:00
2026-01-20 16:23:37 +01:00
2024-09-03 10:47:17 +02:00
2025-05-23 13:57:12 +02:00
2024-12-05 10:01:28 +01:00
2024-02-21 12:03:22 +01:00
2026-02-21 17:09:51 -08:00
2024-10-09 23:20:46 +02:00
2025-12-16 11:04:14 -05:00
2025-04-24 16:04:02 +02:00
2024-10-09 23:20:46 +02:00
2024-10-09 23:20:46 +02:00
2024-10-09 23:20:46 +02:00
2024-10-09 23:20:46 +02:00
2025-11-28 00:05:49 +00:00
2024-10-09 23:20:46 +02:00
2024-10-09 23:20:46 +02:00
2024-10-09 23:20:46 +02:00
2026-03-10 14:10:42 +01:00
2022-07-11 16:40:45 +02:00
2026-02-21 17:09:51 -08:00
2026-03-10 14:10:43 +01:00
2026-02-21 17:09:51 -08:00
2023-02-22 21:25:23 -08:00
2026-02-21 17:09:51 -08:00
2025-05-22 17:16:02 +02:00
2025-07-25 18:40:43 +02:00
2024-10-21 11:31:26 +02:00
2023-06-20 22:43:42 +02:00
2023-12-06 17:52:15 +01:00
2024-01-17 12:02:48 +01:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2023-03-22 21:48:59 +01:00
2025-03-23 10:53:47 +01:00
2023-08-30 17:34:01 +02:00
2024-10-09 23:20:46 +02:00
2023-07-29 18:13:41 +01:00
2026-02-21 17:09:51 -08:00
2026-01-20 16:23:38 +01:00
2022-07-11 16:40:45 +02:00
2025-05-22 17:16:02 +02:00
2026-03-10 14:10:42 +01:00
2026-02-21 17:09:51 -08:00
2026-01-29 09:52:07 +01:00
2022-07-21 00:56:00 +02:00
2024-10-21 11:31:26 +02:00
2023-08-30 17:34:01 +02:00