know slightly

“I know the professor only slightly.”
Is this sentence correct?
How do English natives say this?

I think it is correct. As an English native (or at least a native English speaker) this is how I would say it.