Versions Affected : All versions prior to TrueNAS 12.0-U1
When an ICMPv6 error message is received, the FreeBSD ICMPv6 stack may extract information from the message to hand to upper-layer protocols.
As a part of this operation, it may parse IPv6 header options from a packet embedded in the ICMPv6 message. The handler for a routing option caches a pointer into the packet buffer holding the ICMPv6 message. However, when processing subsequent options the packet buffer may be freed, rendering the cached pointer invalid. The network stack may later dereference the pointer, potentially triggering a use-after-free.
No workaround is available except to disable IPv6 on the system’s network interfaces.
- Upgrade to TrueNAS 12.0-U1 or later.