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 8CE013CD8A8 for ; Wed, 6 May 2026 07:43:12 +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=1778053392; cv=none; b=L2qIcY/Id072u3n98zVe8CNFMrqVVPkXElpZlPgTp/QDlelLY2niLSWkV3gmPNf0M1E4S/Zyj2llGcOCc+BAg5DmZ+TaUnXUIA4TDih5Gz6rteR2BoRiR42drbX1fbMf3pRJYeYWtb8u0MXZRp+l6LuI9WUoBZMb7FecvUw8mug= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778053392; c=relaxed/simple; bh=3Vbf/4+XjfvLEmc1lKAVTisIMqtuwXTIz3UmKv/+ndw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GHFSQ9hqYewyrI5rqvZc16uutimbXnVSvMZTJ0A2A3JHoBwCBrJ1rFvAN14l34liLfKrY6oJPsrms6nmMmXNXoRTzIjc6iHOolF/aLltB4NdFArYy1fIitaRkTDxWa9D/C/pW9AtkyV0jq5oIbI66yAZS8yOZd0oNXpvUzexBa0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZMXoLGaB; 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="ZMXoLGaB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D7BB0C2BCB8; Wed, 6 May 2026 07:43:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778053392; bh=3Vbf/4+XjfvLEmc1lKAVTisIMqtuwXTIz3UmKv/+ndw=; h=From:To:Cc:Subject:Date:Reply-To:From; b=ZMXoLGaBogCVRDLW/pyPWqv6FXpWhEdVkIHLKZ/JQ7rvMxNHkzE8zhC517kLaVtUA GG7NgZtX0n6x+pP42SZjGlW4HVFX4m2GcLAP2WUkMVOVqQv/qCF4LPmN6fKT3wkVx1 uOzn4AIVCOqBIm+yMN9KRYJ/TbIvg1tnb1BLzhLY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43107: xfrm: account XFRMA_IF_ID in aevent size calculation Date: Wed, 6 May 2026 09:41:41 +0200 Message-ID: <2026050623-CVE-2026-43107-dc43@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=2713; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=oJ8EkN7hc2+hrK8fPsRRjI8wCbzJI2pIFPJOSc2b95c=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm/PiwO6IlSCTA+efKVscwG/dAdzcvCX08waTSwrco9c mjKpss/OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAitbsYFkw43PH+/3sn1ydZ y1MSv3IdDt9/8yTDPBO1Ldm7jOvflPVkTpy9Z83EW+L3VgEA 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: xfrm: account XFRMA_IF_ID in aevent size calculation xfrm_get_ae() allocates the reply skb with xfrm_aevent_msgsize(), then build_aevent() appends attributes including XFRMA_IF_ID when x->if_id is set. xfrm_aevent_msgsize() does not include space for XFRMA_IF_ID. For states with if_id, build_aevent() can fail with -EMSGSIZE and hit BUG_ON(err < 0) in xfrm_get_ae(), turning a malformed netlink interaction into a kernel panic. Account XFRMA_IF_ID in the size calculation unconditionally and replace the BUG_ON with normal error unwinding. The Linux kernel CVE team has assigned CVE-2026-43107 to this issue. Affected and fixed versions =========================== Issue introduced in 4.19 with commit 7e6526404adedf079279aa7aa11722deaca8fe2e and fixed in 6.12.83 with commit 2c41283d94af943a05f7f2cc1a01f0c872f3cf43 Issue introduced in 4.19 with commit 7e6526404adedf079279aa7aa11722deaca8fe2e and fixed in 6.18.24 with commit e62e322ea20be78e346e4b49f9a6b9f03313af4c Issue introduced in 4.19 with commit 7e6526404adedf079279aa7aa11722deaca8fe2e and fixed in 6.19.14 with commit 58e5735d1a5373652f405a0c16e54ac04aaab0ad Issue introduced in 4.19 with commit 7e6526404adedf079279aa7aa11722deaca8fe2e and fixed in 7.0 with commit 7081d46d32312f1a31f0e0e99c6835a394037599 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-43107 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/xfrm/xfrm_user.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/2c41283d94af943a05f7f2cc1a01f0c872f3cf43 https://git.kernel.org/stable/c/e62e322ea20be78e346e4b49f9a6b9f03313af4c https://git.kernel.org/stable/c/58e5735d1a5373652f405a0c16e54ac04aaab0ad https://git.kernel.org/stable/c/7081d46d32312f1a31f0e0e99c6835a394037599