Junglewise Threat Intelligence

CVE-2024-44935: Linux Kernel SCTP null pointer dereference in reuseport_add_sock

CVE-2024-44935 · Severity: medium · CVSS 5.5 · Published 2024-08-26

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability exists in the Linux kernel's implementation of the SCTP networking protocol. It occurs when multiple applications attempt to share the same network port simultaneously, potentially causing the system to crash (denial of service). This issue primarily affects system stability and availability rather than the confidentiality of user data.

Technical details

A null pointer dereference exists in the sctp_hash_endpoint() function within the Linux kernel's SCTP implementation. The root cause is a lack of proper synchronization between reuseport_alloc(), reuseport_add_sock(), and reuseport_detach_sock() when handling sockets in the same reuseport group. An attacker with local access can trigger a race condition by concurrently creating and closing listeners on the same port with the SO_REUSEPORT option, leading to a kernel panic (Oops). The fix involves applying a locking strategy to __sctp_hash_endpoint() and __sctp_unhash_endpoint() using the hash bucket lock, similar to existing implementations in TCP/UDP.

Affected products

  • Linux Linux Kernel 6.10.0-syzkaller-12585-g301927d2d2eb

Timeline

  • 2024-07-31: patched: Patch submitted by Kuniyuki Iwashima
  • 2024-08-26: advisory: NVD publication date

References

Related threats