kernel_samsung_a53x/net/sctp
Nikolay Kuratov 42e3599e06 net/sctp: Prevent autoclose integer overflow in sctp_association_init()
commit 4e86729d1ff329815a6e8a920cb554a1d4cb5b8d upstream.

While by default max_autoclose equals to INT_MAX / HZ, one may set
net.sctp.max_autoclose to UINT_MAX. There is code in
sctp_association_init() that can consequently trigger overflow.

Cc: stable@vger.kernel.org
Fixes: 9f70f46bd4c7 ("sctp: properly latch and use autoclose value from sock to association")
Signed-off-by: Nikolay Kuratov <kniv@yandex-team.ru>
Acked-by: Xin Long <lucien.xin@gmail.com>
Link: https://patch.msgid.link/20241219162114.2863827-1-kniv@yandex-team.ru
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-01-15 16:29:56 +01:00
..
associola.c net/sctp: Prevent autoclose integer overflow in sctp_association_init() 2025-01-15 16:29:56 +01:00
auth.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bind_addr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
chunk.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debug.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
diag.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
endpointola.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
input.c sctp: Fix null-ptr-deref in reuseport_add_sock(). 2024-11-23 23:20:22 +01:00
inqueue.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ipv6.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
objcnt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
offload.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
output.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
outqueue.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
primitive.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
proc.c sctp: move hlist_node and hashent out of sctp_ep_common 2024-11-23 23:20:22 +01:00
protocol.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sm_make_chunk.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sm_sideeffect.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sm_statefuns.c sctp: properly validate chunk size in sctp_sf_ootb() 2024-11-30 02:33:22 +01:00
sm_statetable.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
socket.c Revert "sctp: set sk_state back to CLOSED if autobind fails in sctp_listen_start" 2024-11-24 00:23:12 +01:00
stream.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stream_interleave.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stream_sched.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stream_sched_prio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stream_sched_rr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sysctl.c Revert "Make more sysctl constants read-only" 2024-12-03 19:56:17 +01:00
transport.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tsnmap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ulpevent.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ulpqueue.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00