Description
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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
c6af0c227a22bb6bb8ff72f043e0fb6d99fd6515 to < b3dd341a15ca7e30c48368ef5f45c05e2fdc1395affectedc6af0c227a22bb6bb8ff72f043e0fb6d99fd6515 to < 762b0863d1c3b3b50f0ee5a493bab885b1d724c9affectedc6af0c227a22bb6bb8ff72f043e0fb6d99fd6515 to < d626c4ed3a39f57b51b1f8767799fff2975e28f1affectedc6af0c227a22bb6bb8ff72f043e0fb6d99fd6515 to < c3e7d0e8dfecf4c23ae2dc7832229c224fd08855affectedc6af0c227a22bb6bb8ff72f043e0fb6d99fd6515 to < 5eeb982f3e377477067ca087b12b24b6c77b129faffectedc6af0c227a22bb6bb8ff72f043e0fb6d99fd6515 to < f778e80b3daf5033fb996f45c2b5d0ce1e82c0a7affected
Linux Linux
Default version status: affected
5.4affected0 to < 5.4unaffected5.10.276 to ≤ 5.10.*unaffected5.15.227 to ≤ 5.15.*unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/b3dd341a15ca7e30c48368ef5f45c05e2fdc1395 ↗
- https://git.kernel.org/stable/c/762b0863d1c3b3b50f0ee5a493bab885b1d724c9 ↗
- https://git.kernel.org/stable/c/d626c4ed3a39f57b51b1f8767799fff2975e28f1 ↗
- https://git.kernel.org/stable/c/c3e7d0e8dfecf4c23ae2dc7832229c224fd08855 ↗
- https://git.kernel.org/stable/c/5eeb982f3e377477067ca087b12b24b6c77b129f ↗
- https://git.kernel.org/stable/c/f778e80b3daf5033fb996f45c2b5d0ce1e82c0a7 ↗