Osteochondritis dissecans (OCD) occurs in joints when the blood supply is cut. This causes a small segment of bone to separate from the surrounding region. OCD lesions may detach and float around inside the knee. This is most likely caused by repeated stress to the knee bones.
X-ray showing knee OCD of the lateral femur
MRI of an unstable knee OCD
Link to procedure here.