Executive brief
A vulnerability in the Linux kernel's networking component could allow a local user to crash the system. The issue occurs when the system attempts to access network configuration data while a process is exiting, leading to a system 'Oops' or kernel panic. This primarily impacts system availability, potentially causing a denial-of-service on affected servers.
Technical details
A NULL pointer dereference exists in the SCTP sysctl handler (proc_sctp_do_auth) within the Linux kernel. The vulnerability is caused by the code incorrectly relying on 'current->nsproxy' to obtain the network namespace ('net') structure. In specific scenarios, such as when a task is exiting (e.g., during an acct(2) syscall), 'current->nsproxy' can be NULL, leading to a kernel 'Oops'. An attacker with local access could trigger this condition to cause a denial-of-service. The fix involves obtaining the 'net' structure from 'table->data' using 'container_of()' instead of relying on the current task's proxy.
Affected products
- Linux Linux kernel 3.10.41 to 3.11, 3.12.20 to 3.13, 3.14.5 to 5.4.290, 5.5 to 5.10.234, 5.11 to 5.15.177, 5.16 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 by Matthieu Baerts
- 2025-01-19: disclosed: CVE published
References
- https://git.kernel.org/stable/c/15649fd5415eda664ef35780c2013adeb5d9c695
- https://git.kernel.org/stable/c/1b67030d39f2b00f94ac1f0af11ba6657589e4d3
- https://git.kernel.org/stable/c/7ec30c54f339c640aa7e49d7e9f7bbed6bd42bf6
- https://git.kernel.org/stable/c/bd2a2939423566c654545fa3e96a656662a0af9e
- https://git.kernel.org/stable/c/c184bc621e3cef03ac9ba81a50dda2dae6a21d36
- https://git.kernel.org/stable/c/cf387cdebfaebae228dfba162f94c567a67610c3
- https://git.kernel.org/stable/c/dc583e7e5f8515ca489c0df28e4362a70eade382