bonding: alb: fix uninitialized transport header access in alb_determine_nd()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0da8aa00bfcfeb3f4e6537dd8e2001e0727ba549 · < 70f3995830d3f1e79faa14eb0605914f778feca9| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
bonding: alb: fix uninitialized transport header access in alb_determine_nd()
alb_determine_nd() uses icmp6_hdr(skb) to inspect ICMPv6 headers. However, in xmit paths (e.g. packets sent via AF_PACKET / raw sockets or forwarded packets), skb->transport_header is not guaranteed to be initialized. While pskb_network_may_pull() ensures the packet data is linear starting from the network header, it does not set or adjust the transport header offset.
Dereferencing icmp6_hdr(skb) can therefore access out-of-bounds memory.
Fetch the icmp6hdr directly after ipv6hdr following pskb_network_may_pull(), and reload ipv6hdr in case pskb_may_pull() reallocated skb->head. Also remove the unused bond argument from alb_determine_nd().
From the CVE record · Linux
The Linux kernel's bonding alb code can access out-of-bounds memory when it inspects an ICMPv6 header without an initialized transport-header offset. This can occur on packet transmit paths, including packets sent through AF_PACKET or raw sockets and forwarded packets; the input does not specify authentication requirements or user interaction.
Engineers running Linux kernel systems that use bonding alb should check their kernel; affected versions are not specified.