Junglewise Threat Intelligence

CVE-2025-21639: Linux Kernel NULL pointer dereference in SCTP sysctl

CVE-2025-21639 · Severity: medium · CVSS 5.5 · Published 2025-01-19

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's networking component could allow a local user to cause a system crash. The issue occurs when the system attempts to access network configuration data while a process is exiting, leading to a 'null pointer dereference.' This results in a denial-of-service (system 'Oops') that disrupts operations and requires a reboot.

Technical details

A NULL pointer dereference exists in net/sctp/sysctl.c within the proc_sctp_do_rto_min and proc_sctp_do_rto_max functions. The vulnerability is caused by the code incorrectly accessing the 'net' structure via 'current->nsproxy', which can be NULL if the current task is in the process of exiting (e.g., during an acct(2) syscall). A local attacker can trigger this 'Oops' to cause a denial of service. The fix involves obtaining the 'net' structure from 'table->data' using 'container_of()' instead of relying on the volatile 'current' task state. Patches have been released for multiple stable kernel branches including 6.1.y, 6.6.y, and 6.12.y.

Affected products

  • Linux Linux Kernel 3.13 to 6.1.125, 6.2 to 6.6.72, 6.7 to 6.12.10, 6.13-rc1 to 6.13-rc6

Timeline

  • 2025-01-08: patched: Initial patch authored
  • 2025-01-19: disclosed: CVE published
  • 2025-02-27: advisory: NIST initial analysis completed

References

Related threats