net: garp: fix unsigned integer underflow in garp_pdu_parse_attr
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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.
Timeline
- CVE published
Affected versions
- Linux Linux
Version range not reported
- Linux Linux
2.6.27
References 8
git.kernel.org
- stable/c/29f28172afb2ae7b31e9bf3e978396f20b381688
- stable/c/973cf7c433d27f4d9556d0b7c332543be7ed7a6e
- stable/c/d8dcd14aa886b8effd83022c550669f4f262854b
- stable/c/74e02121be1dcc0efcd56ebdf0171d6129105659
- stable/c/d4c86ea09ae3e63ee5aa86e941fcc38e0e39874a
- stable/c/04e22fefac1af3e32f245e9045382348773b5d59
- stable/c/a11f1a671b1361f0f1278dc0041374f2730df73f
- stable/c/16e408e607a94b646fb14a2a98422c6877ae4b3c