Not scored
rxrpc: Fix timeout of a call that hasn't yet been granted a channel
- Severity
- Not scored
- Exploit likelihood
- 0.21% (higher than 12% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: rxrpc: Fix timeout of a call that hasn't yet been granted a channel afs_make_call() calls rxrpc_kernel_begin_call() to begin a call (which may get stalled in the background waiting for a connection to become available); it then calls rxrpc_kernel_set_max_life() to set the timeouts - but that starts the call timer so the call timer might then expire before we get a connection assigned - leading to the following oops if the call stalled: BUG: kernel NULL pointer dereference, address: 0000000000000000 ... CPU: 1 PID: 5111 Comm: krxrpcio/0 Not tainted 6.3.0-rc7-build3+ #701 RIP: 0010:rxrpc_alloc_txbuf+0xc0/0x157 ... Call Trace: <TASK> rxrpc_send_ACK+0x50/0x13b rxrpc_input_call_event+0x16a/0x67d rxrpc_io_thread+0x1b6/0x45f ? _raw_spin_unlock_irqrestore+0x1f/0x35 ? rxrpc_input_packet+0x519/0x519 kthread+0xe7/0xef ? kthread_complete_and_exit+0x1b/0x1b ret_from_fork+0x22/0x30 Fix this by noting the timeouts in struct rxrpc_call when the call is created. The timer will be started when the first packet is transmitted. It shouldn't be possible to trigger this directly from userspace through AF_RXRPC as sendmsg() will return EBUSY if the call is in the waiting-for-conn state if it dropped out of the wait due to a signal.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 9d35d880e0e4a3ab32d8c12f9e4d76198aadd42d before 92128a7170a220b5126d09a1c1954a3a8d46cef3, from 9d35d880e0e4a3ab32d8c12f9e4d76198aadd42d before 72f4a9f3f447948cf86dffe1c4a4c8a429ab9666, from 9d35d880e0e4a3ab32d8c12f9e4d76198aadd42d before db099c625b13a74d462521a46d98a8ce5b53af5d, 6.2 Not affected: before 6.2, from 6.2.16 up to 6.2.*, from 6.3.3 up to 6.3.*, from 6.4 up to * | CVE List |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: rxrpc: Fix timeout of a call that hasn't yet been granted a channel afs_make_call() calls rxrpc_kernel_begin_call() to begin a call (which may get stalled in the background waiting for a connection to become available); it then calls rxrpc_kernel_set_max_life() to set the timeouts - but that starts the call timer so the call timer might then expire before we get a connection assigned - leading to the following oops if the call stalled: BUG: kernel NULL pointer dereference, address: 0000000000000000 ... CPU: 1 PID: 5111 Comm: krxrpcio/0 Not tainted 6.3.0-rc7-build3+ #701 RIP: 0010:rxrpc_alloc_txbuf+0xc0/0x157 ... Call Trace: <TASK> rxrpc_send_ACK+0x50/0x13b rxrpc_input_call_event+0x16a/0x67d rxrpc_io_thread+0x1b6/0x45f ? _raw_spin_unlock_irqrestore+0x1f/0x35 ? rxrpc_input_packet+0x519/0x519 kthread+0xe7/0xef ? kthread_complete_and_exit+0x1b/0x1b ret_from_fork+0x22/0x30 Fix this by noting the timeouts in struct rxrpc_call when the call is created. The timer will be started when the first packet is transmitted. It shouldn't be possible to trigger this directly from userspace through AF_RXRPC as sendmsg() will return EBUSY if the call is in the waiting-for-conn state if it dropped out of the wait due to a signal.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: rxrpc: Corrección del tiempo de espera de una llamada a la que aún no se le ha concedido un canal afs_make_call() llama a rxrpc_kernel_begin_call() para iniciar una llamada (la cual puede quedarse estancada en segundo plano esperando que una conexión esté disponible); luego llama a rxrpc_kernel_set_max_life() para establecer los tiempos de espera - pero eso inicia el temporizador de la llamada, por lo que el temporizador de la llamada podría expirar antes de que se nos asigne una conexión - lo que lleva al siguiente oops si la llamada se estancó: BUG: desreferencia de puntero NULL del kernel, dirección: 0000000000000000 ... CPU: 1 PID: 5111 Comm: krxrpcio/0 No contaminado 6.3.0-rc7-build3+ #701 RIP: 0010:rxrpc_alloc_txbuf+0xc0/0x157 ... Traza de Llamada: [TAREA] rxrpc_send_ACK+0x50/0x13b rxrpc_input_call_event+0x16a/0x67d rxrpc_io_thread+0x1b6/0x45f ? _raw_spin_unlock_irqrestore+0x1f/0x35 ? rxrpc_input_packet+0x519/0x519 kthread+0xe7/0xef ? kthread_complete_and_exit+0x1b/0x1b ret_from_fork+0x22/0x30 Solucione esto anotando los tiempos de espera en la estructura rxrpc_call cuando se crea la llamada. El temporizador se iniciará cuando se transmita el primer paquete. No debería ser posible activar esto directamente desde el espacio de usuario a través de AF_RXRPC, ya que sendmsg() devolverá EBUSY si la llamada está en el estado de espera de conexión si salió de la espera debido a una señal.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-54195 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2023-54195 changed 2026-10-28 | Public domain |