CVE-2026-74587
JSON

9.8critical

sctp: fix use-after-free of cached ASCONF chunk

Severity
9.8critical CVSS:3.1 by Linux
Exploit likelihood
0.50% (higher than 44% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: sctp: fix use-after-free of cached ASCONF chunk addip_last_asconf caches the outstanding outbound ASCONF chunk. The normal ASCONF-ACK completion path releases the chunk and clears the pointer. However, sctp_asconf_queue_teardown() releases the cached chunk without clearing addip_last_asconf. During peer restart handling, sctp_sf_do_dupcook_a() queues SCTP_CMD_PURGE_ASCONF_QUEUE, which invokes sctp_asconf_queue_teardown() while the association remains alive and leaves the pointer dangling. A delayed authenticated ASCONF-ACK can then reach sctp_sf_do_asconf_ack(), which accesses the stale chunk and passes it to sctp_process_asconf_ack(), causing a use-after-free and a second release. Clearing the pointer exposes a race with T4 expiry. Peer restart handling queues the timer stop before the purge, but SCTP_CMD_TIMER_STOP uses timer_delete(), which does not wait for a callback already running on another CPU. Such a callback can reach sctp_sf_t4_timer_expire() after the purge and dereference NULL. Clear addip_last_asconf after releasing the cached chunk, and make sctp_sf_t4_timer_expire() consume a stale T4 expiry if no outstanding ASCONF remains.

Affected

Product or packageVersionsReported by
Linux Linuxfrom a000c01e60e40e15304ffe48fff051d17a7bea91 before 10459b03e2d9ee12435e96f587de4d4cacdbf435, from a000c01e60e40e15304ffe48fff051d17a7bea91 before e1bb114e09372fd6e03387ced9ef566da336ed6c, from a000c01e60e40e15304ffe48fff051d17a7bea91 before 179676f0166230c80053a392303485b37c93dd33, from a000c01e60e40e15304ffe48fff051d17a7bea91 before dc67d528c2fa939cec7fe3bf7f3089c8d281ca3d, from a000c01e60e40e15304ffe48fff051d17a7bea91 before 618b5c6d049896fcfabb91afc072954c92cb2693, from a000c01e60e40e15304ffe48fff051d17a7bea91 before 07daf4f9750104960a1d60831b2353c0d41f35fb, from a000c01e60e40e15304ffe48fff051d17a7bea91 before d949992bc3f00027a2c755e860a11950c75f6073, from a000c01e60e40e15304ffe48fff051d17a7bea91 before 8c283e7b56adce00193837f3311b06662466fb21 and 1 more
Not affected: before 3.0, from 5.10.265 up to 5.10.*, from 5.15.216 up to 5.15.*, from 6.1.183 up to 6.1.*, from 6.6.152 up to 6.6.*, from 6.12.104 up to 6.12.*
CVE List

Classification

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: sctp: fix use-after-free of cached ASCONF chunk addip_last_asconf caches the outstanding outbound ASCONF chunk. The normal ASCONF-ACK completion path releases the chunk and clears the pointer. However, sctp_asconf_queue_teardown() releases the cached chunk without clearing addip_last_asconf. During peer restart handling, sctp_sf_do_dupcook_a() queues SCTP_CMD_PURGE_ASCONF_QUEUE, which invokes sctp_asconf_queue_teardown() while the association remains alive and leaves the pointer dangling. A delayed authenticated ASCONF-ACK can then reach sctp_sf_do_asconf_ack(), which accesses the stale chunk and passes it to sctp_process_asconf_ack(), causing a use-after-free and a second release. Clearing the pointer exposes a race with T4 expiry. Peer restart handling queues the timer stop before the purge, but SCTP_CMD_TIMER_STOP uses timer_delete(), which does not wait for a callback already running on another CPU. Such a callback can reach sctp_sf_t4_timer_expire() after the purge and dereference NULL. Clear addip_last_asconf after releasing the cached chunk, and make sctp_sf_t4_timer_expire() consume a stale T4 expiry if no outstanding ASCONF remains.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: sctp: corrige el uso después de liberación de un fragmento ASCONF en caché addip_last_asconf almacena en caché el fragmento ASCONF saliente pendiente. La ruta de finalización normal de ASCONF-ACK libera el fragmento y borra el puntero. Sin embargo, sctp_asconf_queue_teardown() libera el fragmento en caché sin borrar addip_last_asconf. Durante el manejo de reinicio del par, sctp_sf_do_dupcook_a() encola SCTP_CMD_PURGE_ASCONF_QUEUE, lo que invoca sctp_asconf_queue_teardown() mientras la asociación permanece activa y deja el puntero colgando. Un ASCONF-ACK autenticado retrasado puede entonces alcanzar sctp_sf_do_asconf_ack(), que accede al fragmento obsoleto y lo pasa a sctp_process_asconf_ack(), causando un uso después de liberación y una segunda liberación. Borrar el puntero expone una condición de carrera con la expiración de T4. El manejo de reinicio del par encola la detención del temporizador antes de la purga, pero SCTP_CMD_TIMER_STOP usa timer_delete(), que no espera por una llamada de retorno ya en ejecución en otra CPU. Dicha llamada de retorno puede alcanzar sctp_sf_t4_timer_expire() después de la purga y desreferenciar NULL. Borrar addip_last_asconf después de liberar el fragmento en caché, y hacer que sctp_sf_t4_timer_expire() consuma una expiración de T4 obsoleta si no queda ningún ASCONF pendiente.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-74587 changed 2026-10-16CVE Terms of Use
NVDCVE-2026-74587 changed 2026-10-16Public domain