← Biblioteca de vulnerabilidades

CVE-2026-63978

Condición de carrera en Linux

Crítica9.8Publicada 19 de jul de 2026 · Actualizada 12 de nov de 2026

En resumen

Un atacante remoto, sin usuario ni contraseña, podría tomar el control del sistema afectado sin que nadie haga nada.

Cómo se ataca

  • Se puede atacar por la red, incluso desde internet si el servicio está expuesto.
  • No requiere condiciones especiales: el ataque se puede repetir de forma confiable.
  • No necesita usuario ni contraseña.
  • No necesita que nadie haga nada: ni abrir un archivo ni hacer clic.

Qué puede lograr el atacante

  • Leer información confidencial: datos, archivos o credenciales.
  • Modificar información o el sistema; en los casos graves, ejecutar sus propios programas.
  • Dejar el servicio o el equipo sin funcionar.

Cómo corregirla

  1. Revise si usa alguno de los productos y versiones de la lista «A qué afecta».
  2. Aplique la actualización o la mitigación que indica el fabricante (enlaces abajo).
  3. Si no puede actualizar ya, reduzca la exposición: que el servicio no sea accesible desde internet, o desactive la función afectada.
  4. Como pudo explotarse antes de corregirla, revise los registros del equipo en busca de accesos o cambios extraños.

Recomendaciones para este tipo de fallo

  • Aplicar la actualización del fabricante.
  • Para quien desarrolla: usar operaciones atómicas, bloqueos o transacciones, y abrir archivos de forma segura en lugar de comprobar y luego abrir.

A qué afecta

  • Linux · Linux

    desde 3b3009ea8abb713b022d94fba95ec270cf6e7eae hasta antes de ee4b2ba9d30155f9945811cd3c0c1b06d45787a9; desde 3b3009ea8abb713b022d94fba95ec270cf6e7eae hasta antes de 9ec20c9a5a04f2c3f1cf65d21f886d7aaa6189cd; desde 3b3009ea8abb713b022d94fba95ec270cf6e7eae hasta antes de 2bf24a7e190aae0ea47c78099938ae056c622e44; desde 3b3009ea8abb713b022d94fba95ec270cf6e7eae hasta antes de 8c35539db0ab0bfa1ea44efab00b053261a69469; desde 3b3009ea8abb713b022d94fba95ec270cf6e7eae hasta antes de ea5fe6a73ca57e5150b8a38b341aef2636eb72f0; 6.4

Qué es: Condición de carrera

Dos procesos usan el mismo recurso a la vez sin coordinarse, y el atacante aprovecha el instante entre una comprobación y su uso.

El programa comprueba algo (que un archivo es seguro, que hay saldo) y luego actúa, pero entre las dos cosas el atacante cambia la situación: reemplaza el archivo por un enlace o lanza muchas peticiones simultáneas para gastar el mismo saldo varias veces. En el núcleo de un sistema operativo suele terminar en escalada de privilegios.

Guía completa: dónde aparece, cómo se corrige y qué evitar

Descripción oficial (en inglés)

In the Linux kernel, the following vulnerability has been resolved: net/handshake: Drain pending requests at net namespace exit The arguments to list_splice_init() in handshake_net_exit() are reversed. The call moves the local empty "requests" list onto hn->hn_requests, leaving the local list empty, so the subsequent drain loop runs zero iterations. Pending handshake requests that had not yet been accepted are not torn down when the net namespace is destroyed; each one keeps a reference on a socket file and on the handshake_req allocation. Pass the source and destination in the documented order (list_splice_init(list, head) moves list onto head) so the pending list is transferred to the local scratch list and drained through handshake_complete(). Fixing the splice direction exposes a list-corruption race. After the splice each req->hr_list still has non-empty link pointers, threading the stack-local scratch list rather than hn_requests. A concurrent handshake_req_cancel() -- for example, from sunrpc's TLS timeout on a kernel socket whose netns reference was not taken -- finds the request through the rhashtable, calls remove_pending(), and sees !list_empty(&req->hr_list). __remove_pending_locked() then list_del_init()s an entry off the scratch list while the drain iterates, corrupting it. The same call arriving after the drain loop has run list_del() on an entry hits LIST_POISON instead. Have remove_pending() check HANDSHAKE_F_NET_DRAINING under hn_lock and report not-found when drain is in progress. The drain has already taken ownership; handshake_complete()'s existing test_and_set on HANDSHAKE_F_REQ_COMPLETED still arbitrates between drain and cancel for who calls the consumer's hp_done. Use list_del_init() rather than list_del() in the drain so req->hr_list does not carry LIST_POISON after drain releases the entry. The DRAINING guard in remove_pending() makes cancel return false, but cancel still falls through to test_and_set_bit on HANDSHAKE_F_REQ_COMPLETED and drops the request's hr_file reference. Without another pin, if that is the last reference, sk_destruct frees the request while it is still linked on the drain loop's local list. Pin each request's hr_file under hn_lock before releasing the list, and drop that drain pin after the loop finishes with the request.