CVE-2024-49944

CVE-2024-49944

Medium · published October 21, 2024

CVSS v3.1
5.5
EPSS
0%
Percentile
19.1
In the wild
Unconfirmed
What it is

In the Linux kernel, the following vulnerability has been resolved:

sctp: set sk_state back to CLOSED if autobind fails in sctp_listen_start

In sctp_listen_start() invoked by sctp_inet_listen(), it should set the

sk_state back to CLOSED if sctp_autobind() fails due to whatever reason.

Otherwise, next time when calling sctp_inet_listen(), if sctp_sk(sk)->reuse

is already set via setsockopt(SCTP_REUSE_PORT), sctp_sk(sk)->bind_hash will

be dereferenced as sk_state is LISTENING, which causes a crash as bind_hash

is NULL.

KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]

RIP: 0010:sctp_inet_listen+0x7f0/0xa20 net/sctp/socket.c:8617

Call Trace:

<TASK>

__sys_listen_socket net/socket.c:1883 [inline]

__sys_listen+0x1b7/0x230 net/socket.c:1894

__do_sys_listen net/socket.c:1902 [inline]

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00277 · 19.1th percentile
Published
2024-10-21T22:15Z
Affected products (7)
ProductVersionsFixed in
linux/linux_kernel≥ 2.6.30, < 5.10.2275.10.227
linux/linux_kernel≥ 5.11, < 5.15.1685.15.168
linux/linux_kernel≥ 5.16, < 6.1.1136.1.113
linux/linux_kernel≥ 6.2, < 6.6.556.6.55
linux/linux_kernel≥ 6.7, < 6.10.146.10.14
linux/linux_kernel≥ 6.11, < 6.11.36.11.3
linux/linux_kernelall versions—
References (13)
EPSS history
Timeline
  • 21 OCT 18:02Z
    sctp: set sk_state back to CLOSED if autobind fails in sctp_listen_start
    cvelistv5