Minecraft wiki entry for Polar_Bear, associated text: In Java Edition, adult polar bears attack any fox that stays near it for a while, hitting it once every few seconds. Cubs are more aggressive and attack foxes within 16 blocks.
In Bedrock Edition, adult polar bears attack foxes within 16 blocks. Cubs do not attack foxes.