netfilter: nft_payload: incorrect arithmetics when fetching VLAN header bits
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's netfilter nft_payload code uses incorrect arithmetic when fetching VLAN header bits from double-tagged packets. This can cause it to calculate the length of data copied from the VLAN header incorrectly. The input does not specify an attacker outcome, access requirements, or user interaction.
Engineers running Linux kernels with the affected netfilter nft_payload code should check their versions; the input does not identify affected versions.