Skip to contentSkip to conversation

CVE-2026-99758: sctp: account for chunk padding in sctp_init_cause()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 20

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

sctp: account for chunk padding in sctp_init_cause()

sctp_init_cause() accepts a chunk when skb_tailroom() can hold the cause header and the payload. sctp_addto_chunk() then writes 0-3 bytes of padding before that header so the chunk stays 4-byte aligned. The check does not include the padding, and the following skb_put() calls skb_over_panic() from softirq.

Count the padding sctp_addto_chunk() is about to write. The cause length on the wire stays the header plus the payload.

Found by LLM inspection, triggered and tested the fix.

The Linux kernel CVE team has assigned CVE-2026-99758 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 4.18 with commit 8914f4bace3f3a56f14accb45f9f4b9456670b4a and fixed in 6.12.118 with commit 28fb74ed3118cd3f59e1b0a5bdba691a2a4c7ea3
	Issue introduced in 4.18 with commit 8914f4bace3f3a56f14accb45f9f4b9456670b4a and fixed in 6.18.64 with commit fb28092f5feec64f506f198f56d676ba752e700c
	Issue introduced in 4.18 with commit 8914f4bace3f3a56f14accb45f9f4b9456670b4a and fixed in 7.3.5 with commit 0ff27cefd26182be8366c414478967d667bd8e86
	Issue introduced in 4.18 with commit 8914f4bace3f3a56f14accb45f9f4b9456670b4a and fixed in 7.4-rc2 with commit ed6c53b27be492643da2017c6f8e2732be5edf1a

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-99758

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
net/sctp/sm_make_chunk.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/28fb74ed3118cd3f59e1b0a5bdba691a2a4c7ea3
	https://git.kernel.org/stable/c/fb28092f5feec64f506f198f56d676ba752e700c
	https://git.kernel.org/stable/c/0ff27cefd26182be8366c414478967d667bd8e86
	https://git.kernel.org/stable/c/ed6c53b27be492643da2017c6f8e2732be5edf1a