net: garp: fix unsigned integer underflow in garp_pdu_parse_attr
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ eca9ebac651f774d8b10fce7c5d173c3c3d3394f · < 04e22fefac1af3e32f245e9045382348773b5d59| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: garp: fix unsigned integer underflow in garp_pdu_parse_attr
The receive-side GARP attribute parser computes dlen with reversed operands:
dlen = sizeof(*ga) - ga->len;
ga->len is the on-wire attribute length and includes the GARP attribute header. For normal attributes with data, ga->len is larger than sizeof(*ga), so the subtraction underflows in unsigned arithmetic.
The resulting value is later passed to garp_attr_lookup(), whose length argument is u8. After truncation, the parsed data length usually no longer matches the length stored for locally registered attributes, so received Join/Leave events are ignored. This breaks the GARP receive path for common attributes, such as GVRP VLAN registration attributes.
Compute the data length as the attribute length minus the header length.
From the CVE record · Linux
The Linux kernel's GARP receive-side parser underflows when calculating the data length of normal attributes. As a result, received Join/Leave events can be ignored, disrupting functions such as GVRP VLAN registration. This occurs when affected systems receive GARP attributes; the input does not specify authentication or user-interaction requirements.
Engineers running Linux kernels with the affected GARP parser should check their versions; affected versions are not specified.