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 8D165315D37 for ; Wed, 24 Dec 2025 10:36:36 +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=1766572596; cv=none; b=RHGNtl5RmdBFAf17PemyPjzGem8ytYSTd96Y9NWi5bj/LZsAObhXvkOBic2pXDicPMJRsnueJRhwUDqmHO9uqYBbMLs8ZEV+40k+M0rKHo1j7L3bt6LHTvsDCrVwRvDKiUc1ENIpvSqXoJKby2cCLqpyNnw7pXKzh4iNzEKFEDg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766572596; c=relaxed/simple; bh=AknMmNmYQb84yO6ZCi0QaAJgtFQgYv+M7wpGXT6SQgo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=g+USuVEDKUri/t7Fus4mYuJpFGxtyI/AqNzfCOfK0BxrtU2D/AMbubZRxPz6yCRaGDukB5JEzFhXWvRxkEp8MjdVE9eL/s5JoFkBRmKsTJyk8QyWQ5Q42Qk8+6WmLwhhIMNj5pn0ySIvT/57ylM6xduYu4R/qd/bsqCdYi+LNbU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=K4t0m/pl; 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="K4t0m/pl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0842FC4CEFB; Wed, 24 Dec 2025 10:36:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766572596; bh=AknMmNmYQb84yO6ZCi0QaAJgtFQgYv+M7wpGXT6SQgo=; h=From:To:Cc:Subject:Date:Reply-To:From; b=K4t0m/plaPmsGev2NW8081iLlyJ1MUlnFc0YXQ3hG7fMxiNW0CUDMsBtnjNTMUFvS fRblDKVlqHSUwgCZYYtxS1MU3OA+hgd96BzPtoSuQL2MfW9DgY0S7sKu5cKhm+B7KB p+thuSRXTrM6qemfY5HPMGF1+kA8BjMu6E4VE2pE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68353: net: vxlan: prevent NULL deref in vxlan_xmit_one Date: Wed, 24 Dec 2025 11:34:58 +0100 Message-ID: <2025122455-CVE-2025-68353-8704@gregkh> X-Mailer: git-send-email 2.52.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=2568; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nCHzJ0kDy36Yfda93TT55mNP8p7kKvUpre4DN4n6QiM=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneB89nMsisuVDflbuC+8Jmw7NF0vt87QWWf9NNXHywo 3Xj6zf3OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiJvUM8x08P92YcFz0jOGN 4qynC4+4Hjp06xHDPCPJnrl6xttqs7dMjHmTk/hKI2TxMQA= 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: net: vxlan: prevent NULL deref in vxlan_xmit_one Neither sock4 nor sock6 pointers are guaranteed to be non-NULL in vxlan_xmit_one, e.g. if the iface is brought down. This can lead to the following NULL dereference: BUG: kernel NULL pointer dereference, address: 0000000000000010 Oops: Oops: 0000 [#1] SMP NOPTI RIP: 0010:vxlan_xmit_one+0xbb3/0x1580 Call Trace: vxlan_xmit+0x429/0x610 dev_hard_start_xmit+0x55/0xa0 __dev_queue_xmit+0x6d0/0x7f0 ip_finish_output2+0x24b/0x590 ip_output+0x63/0x110 Mentioned commits changed the code path in vxlan_xmit_one and as a side effect the sock4/6 pointer validity checks in vxlan(6)_get_route were lost. Fix this by adding back checks. Since both commits being fixed were released in the same version (v6.7) and are strongly related, bundle the fixes in a single commit. The Linux kernel CVE team has assigned CVE-2025-68353 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit 6f19b2c136d98a84d79030b53e23d405edfdc783 and fixed in 6.18.2 with commit 4ac26aafdc8c7271414e2e7c0b2cb266a26591bc Issue introduced in 6.7 with commit 6f19b2c136d98a84d79030b53e23d405edfdc783 and fixed in 6.19-rc1 with commit 1f73a56f986005f0bc64ed23873930e2ee4f5911 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-2025-68353 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: drivers/net/vxlan/vxlan_core.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/4ac26aafdc8c7271414e2e7c0b2cb266a26591bc https://git.kernel.org/stable/c/1f73a56f986005f0bc64ed23873930e2ee4f5911