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 67326217F31 for ; Thu, 27 Mar 2025 16:47:37 +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=1743094057; cv=none; b=GzCIGg1ISn/0EAg7QHwfzDxhoXq0S34PpSBxVIZNy2Lc9acog8EPjpmzdw+/RsA9CnTFYcf78J7sKOOrByErlHXG3bxB3KDReaNOUSJ+sHebQPk307w37R3MpFPAD+3ALwqC2n1Q8zkdGKY54ehnKoahFLzCIrhzmoNPGFX1aMw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743094057; c=relaxed/simple; bh=gYKYfV2OYauel+0kgAy3Mc+qscvHjlNQmXxQnQumIuc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=i6AE3yHZjensZwYFv2cyohRC1DW9DF9XIsTd68Ly7Z3MkNVwYWLxzjEJG1mItXJzS0oyMVjOyLuTV3gfkkxDQOuU15cEwz5Uc9f1lOzgJy3fndxbH51UFWl1IxinjImF2KpAOJCGuZvWepFkVot/ywr7yr5c7HI58nKlefP/emg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qWp4eO+J; 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="qWp4eO+J" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD869C4CEE5; Thu, 27 Mar 2025 16:47:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743094057; bh=gYKYfV2OYauel+0kgAy3Mc+qscvHjlNQmXxQnQumIuc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=qWp4eO+Jdsr0MOeCDqN+g1DpFh4ArPNkSa8bmfH7zB+ajyVr4QUTnBlPMwaMncXXi SsBFRxv98+twNTRIwdw/p7cfOd/SVcMNPSg1Wc7vzVbB3HKvBnBlYKzcPEbiNq8oQP vvAuOn6oTNLwKLE8cnQXgjyGTm3UXSlTna6esqYA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53033: netfilter: nft_payload: incorrect arithmetics when fetching VLAN header bits Date: Thu, 27 Mar 2025 17:44:20 +0100 Message-ID: <2025032721-CVE-2023-53033-9089@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2692; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=gYKYfV2OYauel+0kgAy3Mc+qscvHjlNQmXxQnQumIuc=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlPGzT1Qhadc/c7Wbm78uAJw+cim8xCF+/7LLphQtLPw itmki56HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRqW0M8+x83Xb8aw+0aVP4 LHJrN9//B+GTLzHMjw4re6nw/k/6+9acby/2WF8pX3PZEwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: netfilter: nft_payload: incorrect arithmetics when fetching VLAN header bits If the offset + length goes over the ethernet + vlan header, then the length is adjusted to copy the bytes that are within the boundaries of the vlan_ethhdr scratchpad area. The remaining bytes beyond ethernet + vlan header are copied directly from the skbuff data area. Fix incorrect arithmetic operator: subtract, not add, the size of the vlan header in case of double-tagged packets to adjust the length accordingly to address CVE-2023-0179. The Linux kernel CVE team has assigned CVE-2023-53033 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit f6ae9f120dada00abfb47313364c35118469455f and fixed in 5.10.164 with commit 550efeff989b041f3746118c0ddd863c39ddc1aa Issue introduced in 5.5 with commit f6ae9f120dada00abfb47313364c35118469455f and fixed in 5.15.89 with commit a8acfe2c6fb99f9375a9325807a179cd8c32e6e3 Issue introduced in 5.5 with commit f6ae9f120dada00abfb47313364c35118469455f and fixed in 6.1.7 with commit 76ef74d4a379faa451003621a84e3498044e7aa3 Issue introduced in 5.5 with commit f6ae9f120dada00abfb47313364c35118469455f and fixed in 6.2 with commit 696e1a48b1a1b01edad542a1ef293665864a4dd0 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-2023-53033 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/netfilter/nft_payload.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/550efeff989b041f3746118c0ddd863c39ddc1aa https://git.kernel.org/stable/c/a8acfe2c6fb99f9375a9325807a179cd8c32e6e3 https://git.kernel.org/stable/c/76ef74d4a379faa451003621a84e3498044e7aa3 https://git.kernel.org/stable/c/696e1a48b1a1b01edad542a1ef293665864a4dd0