ip_gre: Reject enabling collect metadata through changelink
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 2e15ea390e6f4466655066d97e22ec66870a042c · < bdd41b96e814300c66222cf4e47ecb8aef995656| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ip_gre: Reject enabling collect metadata through changelink
ipgre_netlink_parms() can enable collect_md on an existing GRE, GRETAP or ERSPAN device. Unlike newlink, changelink does not enforce metadata tunnel uniqueness. Converting a non-metadata device can therefore replace the metadata receive entry for another device of the same type in the same netns. Deleting either device then clears the shared entry, breaking metadata receive lookup for the surviving device.
If parameter validation fails after collect_md is set, deleting the modified device can also clear an entry it never owned.
Reject enabling metadata mode in both changelink callbacks before any encapsulation or tunnel parameters are modified. Allow requests that repeat the metadata attribute on an existing metadata device.
From the CVE record · Linux
The Linux kernel's ip_gre changelink path can enable metadata mode on an existing GRE, GRETAP, or ERSPAN device without enforcing metadata tunnel uniqueness. A changelink request can replace another device's metadata receive entry in the same network namespace; deleting either device can then break metadata receive lookup for the surviving device. The input does not specify the access needed to make the request.
Engineers running Linux kernels with GRE, GRETAP, or ERSPAN devices should check whether their kernel includes this fix; affected versions are not specified.