macvlan: fix error recovery in macvlan_common_newlink()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ aa5fd0fb77486b8a6764ead8627baa14790e4280 · < cdedcd5aa3f3cb8b7ae0f87ab3a936d0bd583d66| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
macvlan: fix error recovery in macvlan_common_newlink()
valis provided a nice repro to crash the kernel:
ip link add p1 type veth peer p2 ip link set address 00:00:00:00:00:20 dev p1 ip link set up dev p1 ip link set up dev p2
ip link add mv0 link p2 type macvlan mode source ip link add invalid% link p2 type macvlan mode source macaddr add 00:00:00:00:00:20
ping -c1 -I p1 1.2.3.4
He also gave a very detailed analysis:
<quote valis>
From the CVE record · Linux
The Linux kernel's macvlan link-creation error path can leave a reference to freed memory when registration of a source-mode macvlan link fails under the described conditions. A subsequent packet with a matching source MAC address can trigger a use-after-free and crash the kernel. The described trigger requires creating a macvlan link; the input does not specify authentication requirements.
Engineers running Linux kernels with macvlan support should check their versions against the vendor advisory; affected versions are not specified.