freenode
Kernel & Low-Level

Linux SCTP cookie flaw missed the 6.18 stable tree

CVE-2026-74752 lets a forged association cookie drive out-of-bounds access and a local privilege-escalation primitive when cookie authentication is off.

A Linux SCTP bug that can turn a forged association cookie into a local privilege-escalation primitive was fixed upstream and in several stable series, but never queued for the 6.18 long-term tree. Artem Dinaburg has now asked maintainers to take the backport, citing CVE-2026-74752.

The flaw sits in how the kernel restores authentication state from a COOKIE_ECHO when cookie authentication is disabled. Those fields are copied straight from peer-controlled cookie bytes. A forged random-parameter length, HMAC list, or chunk list can then reach the association with lengths and identifiers that were never checked against the local arrays.

Jérémy Jean, of the French cybersecurity agency ANSSI, wrote the fix. A forged random length can cause out-of-bounds reads while the kernel builds its key vector. A forged HMAC identifier also produced a 32-byte write past a zero-length AUTH chunk, which Jean described as a primitive for a local privilege-escalation chain.

The change rejects bad parameter types, malformed lengths, unsupported HMAC identifiers, HMAC lists that omit SHA-1, and forbidden chunk ids before any of that state is copied into the association. Xin Long acknowledged the upstream patch, which Jakub Kicinski merged. It is already in 6.6.160, 6.12.114, and 7.1.10, and in mainline since 7.2.

It never carried a stable tag. Fixes-based selection picked it up for those other series and skipped 6.18.y, where a straight cherry-pick also fails on context. Dinaburg's backport adjusts that context only. The code change matches upstream.