Magma Blocks is the block that do not deal any damage if you sneak while going through them.
Berry Bushes, Campfires, Cactus, Fire, and Lava do not suffer from this.
Here is a streamable video demonstrating the very bug:https://streamable.com/0ldj3
Related issues
Comments

See MC-102040.
This is intended