CVE-2026-143218: net: require a full socket in sock_confirm_neigh()

Published Dec 3, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

net: require a full socket in sockconfirmneigh()

An skb can retain dstpendingconfirm after its original output and socket owner have changed. For example, a raw MSGCONFIRM packet can cross veth, have a TCP request socket assigned by TPROXY, and be bridged into gretap. Neighbor output for the outer packet then calls sockconfirmneigh() with the request socket in skb->sk.

The helper unconditionally treats a non-NULL skb->sk as a full socket when accessing skdstpendingconfirm. TCP request and TIMEWAIT sockets do not contain that field. This produces an out-of-bounds four-byte read and, if the word is nonzero, an out-of-bounds four-byte zero write. A KASAN-enabled kernel reports:

BUG: KASAN: slab-out-of-bounds in ipfinishoutput2+0xc9f/0xd60 Read of size 4 at addr ffff8880bdc3d880 by task tproxydstconf/1771

Require skfullsock() before accessing the socket field, moving the existing helper earlier in the header to make it available here. Keep neighconfirm() independent of the socket type so the skb's neighbor confirmation still works, including for socketless packets. This also covers the IPv6, VRF, and BPF neighbor-output callers.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In the Linux kernel, update sock_confirm_neigh() to require sk_fullsock() before accessing sk_dst_pending_confirm; keep neighbor confirmation independent of socket type so it also works for socketless packets.

Event History

Dec 3, 2026
CVE Published
via MITRE·09:20 AM
Data Sourced
via MITRE·09:20 AM
Description

Frequently Asked Questions

1

What network configuration and traffic path can trigger this issue?

The described trigger involves a raw MSG_CONFIRM packet crossing a veth interface, receiving a TCP request socket through TPROXY, and then being bridged into gretap. The resulting outer-packet neighbor output can invoke the affected code with a TCP request socket attached to the skb.

2

How can I tell whether the issue has occurred?

On a KASAN-enabled kernel, the condition can be reported as a slab-out-of-bounds read in ip_finish_output2. The report describes a four-byte out-of-bounds read and, when the accessed word is nonzero, a four-byte out-of-bounds zero write.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203