udp: call skb_orphan() before skb_attempt_defer_free()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
udp: call skb_orphan() before skb_attempt_defer_free()
Standard UDP receive path does not use skb->destructor.
But skmsg layer does use it, since it calls skb_set_owner_sk_safe() from udp_read_skb().
This then triggers this warning in skb_attempt_defer_free():
DEBUG_NET_WARN_ON_ONCE(skb->destructor);
We must call skb_orphan() to fix this issue.
From the CVE record · Linux
The Linux kernel UDP receive path can trigger a warning when the skmsg layer sets an skb destructor and skb_attempt_defer_free() encounters it. The input does not describe an attacker action or specify network access, authentication, or user-interaction requirements.
Engineers running the Linux kernel should check their vendor advisory for affected versions; none are specified in the input.