There is true instability (giving out/buckling) related to a ligament injury.
This can be the anterior cruciate ligament or the medial collateral ligament. A good physical exam by a trained physician usually diagnosis this problem and it can be confirmed by an mri
. Instability can also come from weakness related to pain from arthritis
and the quads muscle group being inhibited.