Description
In the Linux kernel, the following vulnerability has been resolved: sctp: avoid requeueing pending control chunks The T4 and RE-CONFIG timeout handlers take a reference to their cached control chunk and submit it through SCTP_CMD_REPLY. A previous transmission can still be on the control outqueue when output is corked or suppressed, or when sctp_packet_transmit_chunk() could not append the chunk. sctp_outq_tail() then adds the same list node a second time. Re-adding a non-tail entry can corrupt the list without being caught by the insertion-time list checks. A subsequent flush or association teardown can access an already freed chunk. The ASCONF path is reproducible by an unprivileged SCTP socket owner in a user/network namespace, with KASAN reporting a use-after-free in __sctp_outq_teardown(). Check sctp_chunk_pending() in both timeout handlers before taking the extra reference and issuing SCTP_CMD_REPLY. If the chunk is already linked, leave the existing entry for normal output processing. Keep the remaining timer and error-handling commands unchanged. This also covers RE-CONFIG retransmission after sctp_assoc_rm_peer() moves the request to another transport and starts its timer. The issue was found by an LLM.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
2e3216cd54b142ba605e87522e15f42e0c4e3996 to < 4cb4269d5e25afb8cb3cce79c64adbda5336c80eaffected2e3216cd54b142ba605e87522e15f42e0c4e3996 to < 37857983a408d63337a1f7a39d30e75e397db606affected2e3216cd54b142ba605e87522e15f42e0c4e3996 to < 04ef15a837c2a0413de666012e78373363b5ae33affected2e3216cd54b142ba605e87522e15f42e0c4e3996 to < 23c1b71f7778e1972fae3b16362289c011455a54affected2e3216cd54b142ba605e87522e15f42e0c4e3996 to < c313c69888e056928ceda19bc8000363e4172334affected2e3216cd54b142ba605e87522e15f42e0c4e3996 to < 665b4149e91b781a71bce8637c3a4d7d64dba05faffected
Linux Linux
Default version status: affected
2.6.27affected0 to < 2.6.27unaffected5.10.276 to ≤ 5.10.*unaffected5.15.227 to ≤ 5.15.*unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/4cb4269d5e25afb8cb3cce79c64adbda5336c80e ↗
- https://git.kernel.org/stable/c/37857983a408d63337a1f7a39d30e75e397db606 ↗
- https://git.kernel.org/stable/c/04ef15a837c2a0413de666012e78373363b5ae33 ↗
- https://git.kernel.org/stable/c/23c1b71f7778e1972fae3b16362289c011455a54 ↗
- https://git.kernel.org/stable/c/c313c69888e056928ceda19bc8000363e4172334 ↗
- https://git.kernel.org/stable/c/665b4149e91b781a71bce8637c3a4d7d64dba05f ↗