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 E1C593C060C for ; Wed, 22 Apr 2026 13:57:34 +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=1776866255; cv=none; b=JA4FMB1dwAgfbMIUGhzzhXS6uTAqPxesYWxsY7L0FiYOPvC5/ZSdeWTxlokFfNAI1q9jMb8QG8asurjVxp8alofOaFT+rNTFQRe23DsYRYzWS+laobfxhDoP039qEuCJvIpylZiOz59YD5QO/0EOgfFiBl+6GApCKv75g2HuWTM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776866255; c=relaxed/simple; bh=NLckLpfQlbUv4QtKh+nLHRcYDe5ijgbewzk8mn239rA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ONPBGGCPF9p16ZtSoSVt9YPUynqZ/cj545DzjkHAaCeGT0Jr/e+CZitss3Xlk1Q9umQNRRHczeuwOfWF/+HgYgdmkleFenb6izVQHlGzhBF+T6+9miT2IIUbrn4Lsod0dhBh7z6oWZvmFZFlboTOikva4akjnIRiKuJsZ7yUeCY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SdwjKL9r; 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="SdwjKL9r" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52A50C19425; Wed, 22 Apr 2026 13:57:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776866254; bh=NLckLpfQlbUv4QtKh+nLHRcYDe5ijgbewzk8mn239rA=; h=From:To:Cc:Subject:Date:Reply-To:From; b=SdwjKL9rK9k/GhQ4F60znPECLmF4535j832QlA++VQjwYCkFhlPud55A0wGxYlG7w 4Px6oVI2s1/L7Hmz24DhO+qZsDP12n1i8yUoAb7pyOLC3sif/rT3ydxXzaLItICQV2 0UOCxhhGxrLggMo/FXonZySrd19JN/+PVsjQWslQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31515: af_key: validate families in pfkey_send_migrate() Date: Wed, 22 Apr 2026 15:55:01 +0200 Message-ID: <2026042210-CVE-2026-31515-d929@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=4054; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=afy8pRzbmFArV6ph9OoKXgHLy68Rbz+SQzdgiKMPi+o=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkvLjOl8G3IEX76TFbhUfLi88csX/2O/MOw50PnJlNPl fcuEdM+dsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE3DgY5heYyU/5/u/IIu/L /nxuzDXF1Sc6Yhjm6Zs0LWG1PS86ffOCm1P6o7dKx6y6CwA= 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: af_key: validate families in pfkey_send_migrate() syzbot was able to trigger a crash in skb_put() [1] Issue is that pfkey_send_migrate() does not check old/new families, and that set_ipsecrequest() @family argument was truncated, thus possibly overfilling the skb. Validate families early, do not wait set_ipsecrequest(). [1] skbuff: skb_over_panic: text:ffffffff8a752120 len:392 put:16 head:ffff88802a4ad040 data:ffff88802a4ad040 tail:0x188 end:0x180 dev: kernel BUG at net/core/skbuff.c:214 ! Call Trace: skb_over_panic net/core/skbuff.c:219 [inline] skb_put+0x159/0x210 net/core/skbuff.c:2655 skb_put_zero include/linux/skbuff.h:2788 [inline] set_ipsecrequest net/key/af_key.c:3532 [inline] pfkey_send_migrate+0x1270/0x2e50 net/key/af_key.c:3636 km_migrate+0x155/0x260 net/xfrm/xfrm_state.c:2848 xfrm_migrate+0x2140/0x2450 net/xfrm/xfrm_policy.c:4705 xfrm_do_migrate+0x8ff/0xaa0 net/xfrm/xfrm_user.c:3150 The Linux kernel CVE team has assigned CVE-2026-31515 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.21 with commit 08de61beab8a21c8e0b3906a97defda5f1f66ece and fixed in 5.10.253 with commit d0c5aa8dd38887714f1aad04236a3620b56a5e4e Issue introduced in 2.6.21 with commit 08de61beab8a21c8e0b3906a97defda5f1f66ece and fixed in 5.15.203 with commit e06b596fc4eb01936a2e5dccad17c946d660bab8 Issue introduced in 2.6.21 with commit 08de61beab8a21c8e0b3906a97defda5f1f66ece and fixed in 6.1.168 with commit 8ddf8de7e758f6888988467af9ffc8adf589fb16 Issue introduced in 2.6.21 with commit 08de61beab8a21c8e0b3906a97defda5f1f66ece and fixed in 6.6.131 with commit d3225e6b9bd51ec177970a628fe4b11237ce87d5 Issue introduced in 2.6.21 with commit 08de61beab8a21c8e0b3906a97defda5f1f66ece and fixed in 6.12.80 with commit 7b18692c59afb8e5c364c8e3ac01e51dd6b52028 Issue introduced in 2.6.21 with commit 08de61beab8a21c8e0b3906a97defda5f1f66ece and fixed in 6.18.21 with commit 83f644ea92987c100b82d8481ae2230faeed3d34 Issue introduced in 2.6.21 with commit 08de61beab8a21c8e0b3906a97defda5f1f66ece and fixed in 6.19.11 with commit ee836e820a40e2ca4da8af7310bff92d586772d4 Issue introduced in 2.6.21 with commit 08de61beab8a21c8e0b3906a97defda5f1f66ece and fixed in 7.0 with commit eb2d16a7d599dc9d4df391b5e660df9949963786 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-31515 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/key/af_key.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/d0c5aa8dd38887714f1aad04236a3620b56a5e4e https://git.kernel.org/stable/c/e06b596fc4eb01936a2e5dccad17c946d660bab8 https://git.kernel.org/stable/c/8ddf8de7e758f6888988467af9ffc8adf589fb16 https://git.kernel.org/stable/c/d3225e6b9bd51ec177970a628fe4b11237ce87d5 https://git.kernel.org/stable/c/7b18692c59afb8e5c364c8e3ac01e51dd6b52028 https://git.kernel.org/stable/c/83f644ea92987c100b82d8481ae2230faeed3d34 https://git.kernel.org/stable/c/ee836e820a40e2ca4da8af7310bff92d586772d4 https://git.kernel.org/stable/c/eb2d16a7d599dc9d4df391b5e660df9949963786