ipv6: fix another slab-out-of-bounds in fib6_nh_flush_exceptions
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ipv6: fix another slab-out-of-bounds in fib6_nh_flush_exceptions
While running the self-tests on a KASAN enabled kernel, I observed a slab-out-of-bounds splat very similar to the one reported in commit 821bbf79fe46 ("ipv6: Fix KASAN: slab-out-of-bounds Read in fib6_nh_flush_exceptions").
We additionally need to take care of fib6_metrics initialization failure when the caller provides an nh.
The fix is similar, explicitly free the route instead of calling fib6_info_release on a half-initialized object.
From the CVE record · Linux
The Linux kernel can make an out-of-bounds read in IPv6 route exception handling when fib6_metrics initialization fails and the caller provides an nh. The issue was observed during self-tests on a KASAN-enabled kernel; the input does not establish how an attacker could trigger it or whether access or user interaction is required.
Engineers running Linux kernels should check whether their kernel includes the fix; affected versions are not specified.