ipv6: xfrm6: release dst on error in xfrm6_rcv_encap()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0146dca70b877b73c5fd9c67912b8a0ca8a7bac7 · < 9d5047782f9bd2829e529df69209bf3232eb561f| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ipv6: xfrm6: release dst on error in xfrm6_rcv_encap()
xfrm6_rcv_encap() performs an IPv6 route lookup when the skb does not already have a dst attached. ip6_route_input_lookup() returns a referenced dst entry even when the lookup resolves to an error route.
If dst->error is set, xfrm6_rcv_encap() drops the skb without attaching the dst to the skb and without releasing the reference returned by the lookup. Repeated packets hitting this path therefore leak dst entries.
Release the dst before jumping to the drop path.
From the CVE record · Linux
In the Linux kernel, xfrm6_rcv_encap() can fail to release a referenced route entry when an IPv6 route lookup returns an error route. Repeated packets reaching this path can leak route entries; the input does not specify authentication or user-interaction requirements.
Engineers running Linux kernels with the affected IPv6 xfrm6 code should check their versions; no affected versions are specified.