net: ipv6: clear suppressed fib6 rule result
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ cdef485217d30382f3bf6448c54b4401648fe3f1 · < dc3ab04220667f254f4348572b2a0b3febff89fb| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: ipv6: clear suppressed fib6 rule result
fib6_rule_suppress() drops a suppressed route with ip6_rt_put_flags(), but leaves res->rt6 pointing at the released rt6_info.
If no later rule supplies a replacement, fib6_rule_lookup() still sees res.rt6 and returns that stale dst to its caller. A suppressing rule can therefore leak a released route back to rt6_lookup(), and the next put hits rcuref_put_slowpath() from dst_release().
Clear res->rt6 when suppressing the route so suppressed lookups fall through to the null dst instead of reusing the released one.
From the CVE record · Linux
An IPv6 routing lookup can retain a pointer to a released route after a suppressing rule drops it. If no later rule supplies a replacement, the lookup can return that stale route to its caller; the input does not specify attacker access requirements or user interaction.
Engineers running the Linux kernel should check their IPv6 routing exposure; affected versions are not specified.