vxlan: vnifilter: enforce exact length of GROUP/GROUP6 attributes
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ f9c4bb0b245cee35ef66f75bf409c9573d934cf9 · < 984f831dda31b3a18f47454cf64989f65402879e| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
vxlan: vnifilter: enforce exact length of GROUP/GROUP6 attributes
The VXLAN VNI filter entry policy declares the GROUP/GROUP6 address attributes as NLA_BINARY with only a maximum length, so validate_nla() accepts a payload shorter than the address. The GROUP consumer reads it with nla_get_in_addr(), an unconditional 4-byte load, so a short attribute over-reads up to 3 bytes of uninitialised slab data, which are stored into remote_ip and echoed back via RTM_GETTUNNEL, disclosing kernel memory.
Switch both entries to NLA_POLICY_EXACT_LEN() so the validator rejects any GROUP/GROUP6 that is not exactly 4 / 16 bytes; a valid address is always sent at full width.
From the CVE record · Linux
The Linux kernel's VXLAN VNI filter accepts GROUP or GROUP6 address attributes that are shorter than the required length. A short GROUP attribute can cause an out-of-bounds read of uninitialised kernel data, which is stored in a remote address and returned through RTM_GETTUNNEL. The input does not specify authentication or user-interaction requirements.
Teams running the Linux kernel should check their versions for this VXLAN VNI filter issue; affected versions are not specified.