Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D40033E0253 for ; Wed, 22 Apr 2026 13:57:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776866262; cv=none; b=jDVXoq/+7AbLRGGZbdTgVaTwY0T/i1T8GDU4LqdgyaXgz5sqNMFOrs/n6xbcncrcRidnU1GazN/qBx+Q7lvJPoDhJ51KcICh/TosRijUz/H4KLIQHUNjWGIupWLra2qky20kdrCJvquxiqrEPl0z2QVcvEO8UiDWN9+b38BudxQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776866262; c=relaxed/simple; bh=ctkSRcvvExlJgzM8Yghad46FGaPKRSwUNo8wlIFEdWM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cc3TxyBxY6YewSdUxKcN468RZbXHxNBFCwy5Q15eg4KV1RFLIjsYrJH858zspUtTqKh8DMrP9f9r/vopm/lfB8VtMFnY5BHh30SWZM203oTiYPmlJlD7pb1c0ybjL2E+3tG6tAeIgsuSnzSRD794w3uwRBjXLxEvlRcKGrqzP80= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oY+ME+Le; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="oY+ME+Le" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39C0FC2BCAF; Wed, 22 Apr 2026 13:57:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776866262; bh=ctkSRcvvExlJgzM8Yghad46FGaPKRSwUNo8wlIFEdWM=; h=From:To:Cc:Subject:Date:Reply-To:From; b=oY+ME+Le1YVZp3adDiubtippveTekJCrHc1JYFeUT3fUaLjZRnovp4e3KVxqG++ad AKqsBUGr7wRHKNCRAljnt8uxA4T6fZmgtvr43y9tV4/j5Pnc0XzeqmQ/mn4ArIrMKJ duYSMiEJ96JMhcMRaTNsHwAVbTvONvR5QX4QGZrQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31518: esp: fix skb leak with espintcp and async crypto Date: Wed, 22 Apr 2026 15:55:04 +0200 Message-ID: <2026042211-CVE-2026-31518-ba84@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3435; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=LX0enjytCiO2P0eXTxuW815cRq86V/rNmAos6AaLrzc=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkvLjMnZykHXPpev77aa66J0KUGL9MTDQ/z9V5zvXd2E r+gH1nfEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABM54cQwP2F7ktdqxjyel1Nd 5CUXR19NfpHCxzBPqTrmvUGMJ9v5mORzi5dUTk343m0DAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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