Xin Long
576a5d2bad
netfilter: skip recording stale or retransmitted INIT
...
An INIT whose init_tag matches the peer's vtag does not provide new state
information. It indicates either:
- a stale INIT (after INIT-ACK has already been seen on the same side), or
- a retransmitted INIT (after INIT has already been recorded on the same
side).
In both cases, the INIT must not update ct->proto.sctp.init[] state, since
it does not advance the handshake tracking and may otherwise corrupt
INIT/INIT-ACK validation logic.
Allow INIT processing only when the conntrack entry is newly created
(SCTP_CONNTRACK_NONE), or when the init_tag differs from the stored peer
vtag.
Note it skips the check for the ct with old_state SCTP_CONNTRACK_NONE in
nf_conntrack_sctp_packet(), as it is just created in sctp_new() where it
set ct->proto.sctp.vtag[IP_CT_DIR_REPLY] = ih->init_tag.
Fixes: 9fb9cbb108 ("[NETFILTER]: Add nf_conntrack subsystem.")
Signed-off-by: Xin Long <lucien.xin@gmail.com >
Reviewed-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com >
Acked-by: Florian Westphal <fw@strlen.de >
Link: https://patch.msgid.link/ee56c3e416452b2a40589a2a85245ac2ad5e9f4b.1777214801.git.lucien.xin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org >
2026-04-28 17:52:19 -07:00
..
2026-04-10 12:16:27 +02:00
2026-04-20 23:45:43 +02:00
2026-03-29 11:21:24 -07:00
2026-04-10 12:16:26 +02:00
2025-11-27 23:59:43 +00:00
2026-03-19 10:26:31 +01:00
2026-02-21 17:09:51 -08:00
2026-04-08 07:51:26 +02:00
2026-02-11 19:31:52 -08:00
2026-03-26 13:24:40 +01:00
2026-04-10 12:16:26 +02:00
2026-03-26 13:18:32 +01:00
2026-03-26 13:28:03 +01:00
2026-04-08 07:51:26 +02:00
2026-04-08 07:51:31 +02:00
2026-03-26 13:18:31 +01:00
2026-04-01 11:55:29 +02:00
2026-04-08 07:51:26 +02:00
2026-04-02 11:03:13 -07:00
2026-02-06 20:50:03 -08: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-04-28 17:52:19 -07:00
2026-03-26 13:28:17 +01:00
2026-04-10 12:16:26 +02:00
2026-04-10 12:16:26 +02:00
2026-04-24 20:09:57 +02:00
2026-04-08 07:51:26 +02:00
2026-04-10 12:16:26 +02:00
2026-04-08 07:51:26 +02:00
2026-04-08 07:51:31 +02:00
2026-01-02 12:04:28 -08:00
2026-02-06 13:34:55 +01:00
2026-03-13 15:31:15 +01:00
2026-04-02 11:03:13 -07:00
2026-01-20 16:23:37 +01:00
2026-02-21 01:02:28 -08:00
2026-04-10 12:16:27 +02:00
2026-02-21 01:02:28 -08:00
2026-04-20 23:27:46 +02:00
2026-01-02 12:04:28 -08:00
2026-04-20 23:45:41 +02:00
2026-03-29 11:21:24 -07:00
2026-01-20 16:23:37 +01:00
2026-04-10 12:16:26 +02:00
2026-04-24 20:09:57 +02:00
2026-03-09 18:32:45 -07:00
2026-01-20 16:23:37 +01:00
2026-04-21 12:48:44 +02:00
2026-04-08 07:51:31 +02:00
2026-02-21 17:09:51 -08:00
2025-07-14 15:22:35 +02:00
2026-04-08 07:51:30 +02:00
2026-04-08 07:51:30 +02:00
2026-04-10 12:16:26 +02:00
2026-04-08 07:51:30 +02:00
2026-04-10 12:16:26 +02:00
2026-04-20 23:45:44 +02:00
2026-04-10 12:16:26 +02:00
2026-03-09 18:32:45 -07:00
2026-04-24 20:09:57 +02:00
2026-04-08 07:51:31 +02:00
2026-03-12 12:53:34 -07:00
2026-04-08 07:51:31 +02:00
2026-04-08 07:51:30 +02:00
2026-04-08 07:51:30 +02:00
2026-02-25 19:36:26 -08:00
2026-04-10 12:16:26 +02:00
2026-02-25 19:36:26 -08:00
2026-04-08 07:51:30 +02:00
2026-04-08 07:51:31 +02:00
2026-02-25 19:36:26 -08:00
2026-02-25 19:36:26 -08:00
2026-04-08 07:51:31 +02:00
2026-02-25 19:36:26 -08:00
2026-04-10 12:16:27 +02:00
2026-04-08 07:51:31 +02:00
2026-04-08 07:51:31 +02:00
2026-04-08 07:51:30 +02:00
2026-02-26 10:23:00 -08:00
2026-04-08 07:51:30 +02:00
2026-04-08 07:51:30 +02:00
2026-04-08 07:51:31 +02:00
2026-02-25 19:36:26 -08:00
2026-04-08 07:51:31 +02:00
2026-02-25 19:36:26 -08:00
2026-04-08 07:51:31 +02:00
2026-04-08 07:51:31 +02:00
2026-04-20 23:27:36 +02:00
2026-04-08 07:51:31 +02:00
2026-04-08 07:51:30 +02:00
2026-04-08 07:51:30 +02:00
2026-04-08 07:51:31 +02:00
2026-02-25 19:36:26 -08:00
2026-02-25 19:36:26 -08:00
2026-02-25 19:36:26 -08:00
2026-04-08 07:51:31 +02:00
2025-09-10 20:28:24 +02:00
2026-03-05 13:22:37 +01:00
2026-04-08 07:51:31 +02:00
2025-08-20 13:52:37 +02:00
2026-04-08 07:51:31 +02:00
2026-04-08 07:51:31 +02:00
2026-03-26 12:09:57 -07:00
2026-04-08 07:51:31 +02:00
2026-04-08 07:51:30 +02:00
2026-02-25 19:36:26 -08:00
2026-04-08 07:51:31 +02:00
2026-04-08 07:51:31 +02:00
2026-03-29 11:21:24 -07:00
2026-04-10 12:16:27 +02:00
2025-12-16 11:04:14 -05:00
2026-04-01 11:55:29 +02:00
2026-03-09 18:32:45 -07:00
2026-03-09 18:32:45 -07:00
2026-03-13 15:31:15 +01:00
2026-04-08 07:51:27 +02:00
2026-02-21 17:09:51 -08:00
2026-04-10 12:16:26 +02:00
2026-03-10 14:10:43 +01:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-04-20 23:27:52 +02:00
2026-04-08 13:33:38 +02:00
2025-07-25 18:40:43 +02:00
2026-04-20 23:27:52 +02:00
2026-04-20 23:27:52 +02:00
2026-04-24 20:04:56 +02:00
2026-02-21 17:09:51 -08:00
2026-04-01 11:55:29 +02:00
2026-02-21 17:09:51 -08:00
2026-04-20 23:27:52 +02:00
2026-02-21 17:09:51 -08:00
2026-04-10 12:16:26 +02:00
2026-02-21 17:09:51 -08:00
2026-01-20 16:23:38 +01:00
2026-03-10 14:10:42 +01:00
2026-02-21 17:09:51 -08:00
2026-03-19 14:16:00 -07:00