Skip to contentSkip to conversation

CVE-2026-46102: net: strparser: fix skb_head leak in strp_abort_strp()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 27

lore
Share & tools
lore
#0 lore raw

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

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

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

net: strparser: fix skb_head leak in strp_abort_strp()

When the stream parser is aborted, for example after a message assembly timeout, it can still hold a reference to a partially assembled message in strp->skb_head.

That skb is not released in strp_abort_strp(), which leaks the partially assembled message and can be triggered repeatedly to exhaust memory.

Fix this by freeing strp->skb_head and resetting the parser state in the abort path. Leave strp_stop() unchanged so final cleanup still happens in strp_done() after the work and timer have been synchronized.

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

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

	Issue introduced in 4.9 with commit 43a0c6751a322847cb6fa0ab8cbf77a1d08bfc0a and fixed in 6.6.140 with commit e9ae00490d474757c0f9c65073de83e6bb1e5a00
	Issue introduced in 4.9 with commit 43a0c6751a322847cb6fa0ab8cbf77a1d08bfc0a and fixed in 6.12.86 with commit 5327dad2ffe9c1b49881dd6d51ff3c6893847568
	Issue introduced in 4.9 with commit 43a0c6751a322847cb6fa0ab8cbf77a1d08bfc0a and fixed in 6.18.27 with commit 19ca9475f18f991735f98a22e735c43e95e6298d
	Issue introduced in 4.9 with commit 43a0c6751a322847cb6fa0ab8cbf77a1d08bfc0a and fixed in 7.0.4 with commit 56082f442023db9be1a5a29d4ee361de4017c0b7
	Issue introduced in 4.9 with commit 43a0c6751a322847cb6fa0ab8cbf77a1d08bfc0a and fixed in 7.1-rc1 with commit fe72340daaf1af588be88056faf98965f39e6032

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-46102

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/strparser/strparser.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/e9ae00490d474757c0f9c65073de83e6bb1e5a00
	https://git.kernel.org/stable/c/5327dad2ffe9c1b49881dd6d51ff3c6893847568
	https://git.kernel.org/stable/c/19ca9475f18f991735f98a22e735c43e95e6298d
	https://git.kernel.org/stable/c/56082f442023db9be1a5a29d4ee361de4017c0b7
	https://git.kernel.org/stable/c/fe72340daaf1af588be88056faf98965f39e6032