In the Linux kernel, the following vulnerability has been resolved: ipv6: fix cached route reuse for control messages A connected IPv6 UDP or ping socket can reuse its cached route when an SO_MARK cmsg requests another mark. A packet can then bypass a prohibit rule instead of failing with EACCES. ip6_sk_dst_lookup_flow() reads the cache even when connected is false. UDP clears connected after parsing IP or socket control messages. Ping always passes false. Only read the cache when connected is true. Ordinary connected UDP sends keep using the cache. Ping sends do a fresh lookup. Found during code review of IPv6 UDP route caching. On UML, the same connected-socket selftest fails four IPv6 cases before the fix and passes all 54 with it.
https://git.kernel.org/stable/c/f778e80b3daf5033fb996f45c2b5d0ce1e82c0a7
https://git.kernel.org/stable/c/d626c4ed3a39f57b51b1f8767799fff2975e28f1
https://git.kernel.org/stable/c/c3e7d0e8dfecf4c23ae2dc7832229c224fd08855
https://git.kernel.org/stable/c/b3dd341a15ca7e30c48368ef5f45c05e2fdc1395
https://git.kernel.org/stable/c/762b0863d1c3b3b50f0ee5a493bab885b1d724c9
https://git.kernel.org/stable/c/5eeb982f3e377477067ca087b12b24b6c77b129f