CVE-2026-139370: net: selftests: use skb_share_check() in the loopback receive hook
In the Linux kernel, the following vulnerability has been resolved:
net: selftests: use skbsharecheck() in the loopback receive hook
The loopback hook gets a shared skb when another ETHPIP handler is bound to the device. skbunshare() does not unshare it, so skblinearize() on a non-linear frame hits BUGON(skbshared()).
Use skbsharecheck() instead.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the loopback receive hook, use skb_share_check() to handle the shared skb.
Event History
Frequently Asked Questions
What runtime condition is required for the issue to occur?
The loopback device must have another handler bound for ETH_P_IP, causing the loopback hook to receive a shared skb. The failing path also involves linearizing a non-linear frame.
What is the observed failure mode?
Attempting skb_linearize() on the shared non-linear skb can hit BUG_ON(skb_shared()).