| From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2023-53033: netfilter: nft_payload: incorrect arithmetics when fetching VLAN header bits |
| |
| 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 |