Skip to contentSkip to conversation

CVE-2026-31518: esp: fix skb leak with espintcp and async crypto

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 22

lore
Share & tools
lore
#0 lore raw

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

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

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

esp: fix skb leak with espintcp and async crypto

When the TX queue for espintcp is full, esp_output_tail_tcp will return an error and not free the skb, because with synchronous crypto, the common xfrm output code will drop the packet for us.

With async crypto (esp_output_done), we need to drop the skb when esp_output_tail_tcp returns an error.

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

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

	Issue introduced in 5.6 with commit e27cca96cd68fa2c6814c90f9a1cfd36bb68c593 and fixed in 5.10.253 with commit aca3ad0c262f54a5b5c95dda80a48365997d1224
	Issue introduced in 5.6 with commit e27cca96cd68fa2c6814c90f9a1cfd36bb68c593 and fixed in 5.15.203 with commit 41aafca57de4a4c026701622bd4648f112a9edcd
	Issue introduced in 5.6 with commit e27cca96cd68fa2c6814c90f9a1cfd36bb68c593 and fixed in 6.1.168 with commit 4820847e036ff1035b01b69ad68dfc17e7028fe9
	Issue introduced in 5.6 with commit e27cca96cd68fa2c6814c90f9a1cfd36bb68c593 and fixed in 6.6.131 with commit 6a3ec6efbc4f90e0ccb2e71574f07351f19996f4
	Issue introduced in 5.6 with commit e27cca96cd68fa2c6814c90f9a1cfd36bb68c593 and fixed in 6.12.80 with commit df6f995358dc1f3c42484f5cfe241d7bd3e1cd15
	Issue introduced in 5.6 with commit e27cca96cd68fa2c6814c90f9a1cfd36bb68c593 and fixed in 6.18.21 with commit 88d386243ed374ac969dabd3bbc1409a31d81818
	Issue introduced in 5.6 with commit e27cca96cd68fa2c6814c90f9a1cfd36bb68c593 and fixed in 6.19.11 with commit 6aa9841d917532d0f2d932d1ff2f3a94305aaf47
	Issue introduced in 5.6 with commit e27cca96cd68fa2c6814c90f9a1cfd36bb68c593 and fixed in 7.0 with commit 0c0eef8ccd2413b0a10eb6bbd3442333b1e64dd2

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

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/ipv4/esp4.c
	net/ipv6/esp6.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/aca3ad0c262f54a5b5c95dda80a48365997d1224
	https://git.kernel.org/stable/c/41aafca57de4a4c026701622bd4648f112a9edcd
	https://git.kernel.org/stable/c/4820847e036ff1035b01b69ad68dfc17e7028fe9
	https://git.kernel.org/stable/c/6a3ec6efbc4f90e0ccb2e71574f07351f19996f4
	https://git.kernel.org/stable/c/df6f995358dc1f3c42484f5cfe241d7bd3e1cd15
	https://git.kernel.org/stable/c/88d386243ed374ac969dabd3bbc1409a31d81818
	https://git.kernel.org/stable/c/6aa9841d917532d0f2d932d1ff2f3a94305aaf47
	https://git.kernel.org/stable/c/0c0eef8ccd2413b0a10eb6bbd3442333b1e64dd2