Imagine a system of your two masses $m$ and one spring, spring constant $\kappa$ but with two other spring, spring constant $k$, attached to the masses as shown in the diagram below.
This system certainly has two degrees of freedom.
You have two masses and a displacement along a straight line for each of the masses with the spring providing the interaction between the masses.
It can be shown that there are two normal modes for this system and the frequencies of these modes are $\omega_1 = \sqrt{\dfrac{k+2\kappa}{m}}$ and $\omega_2 = \sqrt{\dfrac{k}{m}}$
If $k \rightarrow 0$, which is equivalent to not having the two outer springs there, then:
$\omega_1 \rightarrow \sqrt{\dfrac{2\kappa}{m}}$ which is the motion
about the centre of mass of the system
$\omega_2 \rightarrow 0$ which is the masses being displaced and/or
given a velocity which would then result in a motion of the centre of
mass of the system with no restoring force.