Loosely speaking, any system where the degrees of freedom can exchange energy with each other and is in equilibrium has a temperature.
A "system" here is a collection of particles, fields, etc. that you can draw a conceptual box around. "Equilibrium" means the populations of the states that can exchange energy with each other are not varying in time. When that's true, the relative probability of two states is the famous Boltzmann Factor, $\exp \left( -\frac{\Delta E}{k_\text{B} T} \right)$.
A consequence is you can sum $\exp \left( \frac{E}{k_\text{B} T} \right)$ over all possible configurations of the system (positions, velocities, numbers of neutrinos of all energies, etc.) to get the partition function $Z$.
Then you can prove that energy $U$, entropy $S$, heat capacity, and so on are all mathematically computable from $Z$. I'd argue in my (somewhat) humble opinion that $Z$ is the cornerstone of thermodynamics. Most everything else is
- add-ons to $Z$, such as the grand partition function
- derivations of $Z$, such as $S = \frac{U}{T} + k_\text{B} \ln \left( Z \right)$
- empirical relationships like $P \, V = N \, R \, T$ discovered before we knew about microstates and $Z$
The confusion in themodynamics is the clash between the last two. Our modern understanding derives macroscopic properties from microscopic ones. But historically we saw the macroscopic ones first and invented empirical relationships among them. Science tends to be taught in historical order for some reason so we learn special cases before the general theories.
The word temperature usually refers to the average velocity of massive particles, correct?
So with that long tangent out of the way: you're right that it's usually understood that way. But we now also see that velocity of particles is just one property among many that contribute to the total number of states and their energies. It's just part of the overall story. Sometimes a negligible part. So in general the statement "temperature refers to the average velocity of massive particles" is false. Sometimes it's true. Other times, like in blackbody radiation, velocity is irrelevant.
Do individual particles have a temperature? Rarely. Temperature is a property of many individual states being in equilibrium. Complicated particles with many degrees of freedom could have their own temperature if those states exchange energy among themselves. But most microscopic particles are simple, with few degrees of freedom, and those degrees of freedom don't exchange energy among themselves. Usually it takes a lot of particles to build up a statistical ensemble. Then you have enough states to have a meaningful average energy of the states and an equilibrium.
A collection of neutrinos can therefore therefore have a temperature when they're at thermal equilibrium. They're like any other system, it's just that the specific degrees of freedom and interactions that are different. But the overall phenomenon of microstates and exchanging energy and an equilibrium with the Boltzmann factor is the same!