net: remove WARN_ON_ONCE() from sk_mc_loop()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ f60e5990d9c1424af9dbca60a23ba2a1c7c1ce90 · < c8f256dc849205ccb2bd78bd99a3497b972b44e0| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: remove WARN_ON_ONCE() from sk_mc_loop()
sk_mc_loop() can be called for sockets that are neither AF_INET nor AF_INET6 (e.g. AF_PACKET sockets when sending packets via raw/packet socket over virtual devices such as VRF or ipvlan).
In such cases, sk_family is not AF_INET/AF_INET6 and sk_mc_loop() falls through the switch statement and triggers WARN_ON_ONCE(1).
Non-INET sockets do not support IP_MULTICAST_LOOP or IPV6_MULTICAST_LOOP options, so loopback should default to true without generating a warning.
From the CVE record · Linux
The Linux kernel’s sk_mc_loop() can trigger a warning when called for a socket that is neither AF_INET nor AF_INET6. This can occur when sending packets through a raw or packet socket over a virtual device such as VRF or ipvlan. The input does not specify authentication requirements or user interaction.
Operators running the Linux kernel should check their versions; affected versions are not specified.