xfrm: Fix skb double-free in xfrm_dev_direct_output()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
d1d673a5bede3767252cff19c0ab1e5387c6f43f| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
xfrm: Fix skb double-free in xfrm_dev_direct_output()
A return value other than 1 from local_out() means that the skb has been consumed or its ownership was transferred. xfrm_dev_direct_output() nevertheless frees the skb on this path, causing a double-free when netfilter drops the packet and invalidating any other owner.
Return the local_out() result directly, matching the ownership handling in xfrm_output_resume().
From the CVE record · Linux
The Linux kernel's xfrm_dev_direct_output() incorrectly frees a packet after local_out() has consumed it or transferred ownership. When netfilter drops the packet, this causes a double-free; the input does not specify how an attacker could trigger it or what access is required.
Teams running the Linux kernel should check their versions; affected versions are not specified.