Files
linux/net
Jann Horn 25282e069e dccp: Fix out of bounds access in DCCP error handler
commit 977ad86c2a upstream.

There was a previous attempt to fix an out-of-bounds access in the DCCP
error handlers, but that fix assumed that the error handlers only want
to access the first 8 bytes of the DCCP header. Actually, they also look
at the DCCP sequence number, which is stored beyond 8 bytes, so an
explicit pskb_may_pull() is required.

Fixes: 6706a97fec ("dccp: fix out of bound access in dccp_v4_err()")
Fixes: 1aa9d1a0e7 ("ipv6: dccp: fix out of bound access in dccp_v6_err()")
Cc: stable@vger.kernel.org
Signed-off-by: Jann Horn <jannh@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-11-24 08:50:54 +09:00
..
2023-11-17 08:43:45 +09:00
2023-11-17 08:39:27 +09:00
2023-11-23 16:19:21 +09:00
2023-11-23 11:13:53 +09:00
2023-11-17 08:43:07 +09:00
2023-11-23 16:33:28 +09:00
2019-12-05 09:21:30 +01:00
2023-11-17 08:43:29 +09:00
2019-02-10 00:33:21 +08:00
2018-07-24 14:10:42 -07:00
2021-06-30 08:48:13 -04:00
2023-11-23 11:13:53 +09:00
2023-11-23 11:13:53 +09:00
2019-02-10 00:33:21 +08:00