Let's say a have a piston with adiabatic walls which contains a gas. The piston has two stops. If I release the first stop against vacuum and it stops at the second stop, that means the gas has expanded against vacuum so work is zero. Heat is also zero since the walls are adiabatic. However, the state of the system changed. There is a different volume, pressure and temperature. Since internal energy is also a state function, it means it has also changed. So the summary is:
q = 0, w = 0, ΔU≠0
How?
Does this mean there some value for w since it is impossible for q. Irreversible work? Free expansion work is not equal to zero? Or is it that p, T and V changed in some way that U is the same?